summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-11 12:29:37 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-11 12:29:37 +0000
commit9d4bed7ff06818b098926932db824a8d6532bfee (patch)
tree0a1cfa6a98a75a2badc1a8d2a2d7839454522beb /firmware
parentf34720b163aff1d167ae031f23f3250356aa2c1b (diff)
downloadrockbox-9d4bed7ff06818b098926932db824a8d6532bfee.tar.gz
rockbox-9d4bed7ff06818b098926932db824a8d6532bfee.zip
Album art support. Based on FS#3045, but heavily modified to adapt to MoB and for cleanness.
The cover pictures are loaded from external bitmaps. JPEG and embedded art are not supported. The pictures will only be drawn on the main display. There is no resizing but it is possible to specify the WPS bitmap size in the bitmap names (e.g. cover.100x100.bmp). The bitmaps are stored in the main buffer and read directly from there. Currently, duplicate bitmaps will simply be present several times in the buffer, but this will be improved. To enable for a target, #define HAVE_ALBUMART in its config file. For more information, see the wiki page: http://www.rockbox.org/wiki/AlbumArt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15572 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/audio.h3
-rw-r--r--firmware/export/config-c200.h3
-rw-r--r--firmware/export/config-e200.h3
-rw-r--r--firmware/export/config-gigabeat.h3
-rw-r--r--firmware/export/config-h10.h3
-rw-r--r--firmware/export/config-h100.h3
-rw-r--r--firmware/export/config-h10_5gb.h3
-rw-r--r--firmware/export/config-h120.h3
-rw-r--r--firmware/export/config-h300.h3
-rw-r--r--firmware/export/config-iaudiom5.h3
-rw-r--r--firmware/export/config-iaudiox5.h3
-rw-r--r--firmware/export/config-ipod1g2g.h3
-rw-r--r--firmware/export/config-ipod3g.h3
-rw-r--r--firmware/export/config-ipod4g.h3
-rw-r--r--firmware/export/config-ipodcolor.h3
-rw-r--r--firmware/export/config-ipodmini.h3
-rw-r--r--firmware/export/config-ipodmini2g.h3
-rw-r--r--firmware/export/config-ipodnano.h3
-rw-r--r--firmware/export/config-ipodvideo.h3
19 files changed, 57 insertions, 0 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h
index 84275cca2a..468856a87a 100644
--- a/firmware/export/audio.h
+++ b/firmware/export/audio.h
@@ -91,6 +91,9 @@ void audio_pre_ff_rewind(void); /* SWCODEC only */
91#endif /* CONFIG_CODEC == SWCODEC */ 91#endif /* CONFIG_CODEC == SWCODEC */
92void audio_ff_rewind(long newtime); 92void audio_ff_rewind(long newtime);
93void audio_flush_and_reload_tracks(void); 93void audio_flush_and_reload_tracks(void);
94#ifdef HAVE_ALBUMART
95int audio_current_aa_hid(void);
96#endif
94struct mp3entry* audio_current_track(void); 97struct mp3entry* audio_current_track(void);
95struct mp3entry* audio_next_track(void); 98struct mp3entry* audio_next_track(void);
96bool audio_has_changed_track(void); 99bool audio_has_changed_track(void);
diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h
index 2e3423c79f..8a1d6a37fa 100644
--- a/firmware/export/config-c200.h
+++ b/firmware/export/config-c200.h
@@ -26,6 +26,9 @@
26/* define this if you have a colour LCD */ 26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR 27#define HAVE_LCD_COLOR
28 28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
29/* define this if you have a light associated with the buttons */ 32/* define this if you have a light associated with the buttons */
30#define HAVE_BUTTON_LIGHT 33#define HAVE_BUTTON_LIGHT
31 34
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h
index 5e9103b002..e2274bc956 100644
--- a/firmware/export/config-e200.h
+++ b/firmware/export/config-e200.h
@@ -26,6 +26,9 @@
26/* define this if you have a colour LCD */ 26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR 27#define HAVE_LCD_COLOR
28 28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
29/* define this if you have a light associated with the buttons */ 32/* define this if you have a light associated with the buttons */
30#define HAVE_BUTTON_LIGHT 33#define HAVE_BUTTON_LIGHT
31 34
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h
index ba6b714a17..2e3ea07b36 100644
--- a/firmware/export/config-gigabeat.h
+++ b/firmware/export/config-gigabeat.h
@@ -14,6 +14,9 @@
14/* define this if you have a colour LCD */ 14/* define this if you have a colour LCD */
15#define HAVE_LCD_COLOR 15#define HAVE_LCD_COLOR
16 16
17/* define this if you want album art for this target */
18#define HAVE_ALBUMART
19
17/* define this if you have access to the quickscreen */ 20/* define this if you have access to the quickscreen */
18#define HAVE_QUICKSCREEN 21#define HAVE_QUICKSCREEN
19 22
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h
index 8054152c77..039ebc588f 100644
--- a/firmware/export/config-h10.h
+++ b/firmware/export/config-h10.h
@@ -26,6 +26,9 @@
26/* define this if you have a colour LCD */ 26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR 27#define HAVE_LCD_COLOR
28 28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
29/* define this if you have access to the quickscreen */ 32/* define this if you have access to the quickscreen */
30#define HAVE_QUICKSCREEN 33#define HAVE_QUICKSCREEN
31 34
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index c661e1df14..f6f53f64d0 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -15,6 +15,9 @@
15/* define this if you have a bitmap LCD display */ 15/* define this if you have a bitmap LCD display */
16#define HAVE_LCD_BITMAP 16#define HAVE_LCD_BITMAP
17 17
18/* define this if you want album art for this target */
19#define HAVE_ALBUMART
20
18/* define this if you can flip your LCD */ 21/* define this if you can flip your LCD */
19#define HAVE_LCD_FLIP 22#define HAVE_LCD_FLIP
20 23
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h
index cb5d4ecae0..3d10af26cf 100644
--- a/firmware/export/config-h10_5gb.h
+++ b/firmware/export/config-h10_5gb.h
@@ -26,6 +26,9 @@
26/* define this if you have a colour LCD */ 26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR 27#define HAVE_LCD_COLOR
28 28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
29/* define this if you have access to the quickscreen */ 32/* define this if you have access to the quickscreen */
30#define HAVE_QUICKSCREEN 33#define HAVE_QUICKSCREEN
31 34
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index 6fc9aa2406..c347cd6ae0 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -10,6 +10,9 @@
10/* define this if you have a bitmap LCD display */ 10/* define this if you have a bitmap LCD display */
11#define HAVE_LCD_BITMAP 11#define HAVE_LCD_BITMAP
12 12
13/* define this if you want album art for this target */
14#define HAVE_ALBUMART
15
13/* define this if you can flip your LCD */ 16/* define this if you can flip your LCD */
14#define HAVE_LCD_FLIP 17#define HAVE_LCD_FLIP
15 18
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h
index 483582080e..de478aa163 100644
--- a/firmware/export/config-h300.h
+++ b/firmware/export/config-h300.h
@@ -13,6 +13,9 @@
13/* define this if you have a colour LCD */ 13/* define this if you have a colour LCD */
14#define HAVE_LCD_COLOR 14#define HAVE_LCD_COLOR
15 15
16/* define this if you want album art for this target */
17#define HAVE_ALBUMART
18
16/* define this if you can flip your LCD */ 19/* define this if you can flip your LCD */
17#define HAVE_LCD_FLIP 20#define HAVE_LCD_FLIP
18 21
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h
index 3e98f4e748..9330315305 100644
--- a/firmware/export/config-iaudiom5.h
+++ b/firmware/export/config-iaudiom5.h
@@ -22,6 +22,9 @@
22/* define this if you have a bitmap LCD display */ 22/* define this if you have a bitmap LCD display */
23#define HAVE_LCD_BITMAP 23#define HAVE_LCD_BITMAP
24 24
25/* define this if you want album art for this target */
26#define HAVE_ALBUMART
27
25/* define this if you can flip your LCD */ 28/* define this if you can flip your LCD */
26#define HAVE_LCD_FLIP 29#define HAVE_LCD_FLIP
27 30
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h
index c78137c721..d6fe68b1ac 100644
--- a/firmware/export/config-iaudiox5.h
+++ b/firmware/export/config-iaudiox5.h
@@ -28,6 +28,9 @@
28/* define this if you have a colour LCD */ 28/* define this if you have a colour LCD */
29#define HAVE_LCD_COLOR 29#define HAVE_LCD_COLOR
30 30
31/* define this if you want album art for this target */
32#define HAVE_ALBUMART
33
31/* define this if you can invert the colours on your LCD */ 34/* define this if you can invert the colours on your LCD */
32#define HAVE_LCD_INVERT 35#define HAVE_LCD_INVERT
33 36
diff --git a/firmware/export/config-ipod1g2g.h b/firmware/export/config-ipod1g2g.h
index 138ef8dc77..c003805986 100644
--- a/firmware/export/config-ipod1g2g.h
+++ b/firmware/export/config-ipod1g2g.h
@@ -14,6 +14,9 @@
14/* define this if you have a bitmap LCD display */ 14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP 15#define HAVE_LCD_BITMAP
16 16
17/* define this if you want album art for this target */
18#define HAVE_ALBUMART
19
17/* define this if you can invert the colours on your LCD */ 20/* define this if you can invert the colours on your LCD */
18#define HAVE_LCD_INVERT 21#define HAVE_LCD_INVERT
19 22
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h
index e3c2a922d9..c3c6114d16 100644
--- a/firmware/export/config-ipod3g.h
+++ b/firmware/export/config-ipod3g.h
@@ -14,6 +14,9 @@
14/* define this if you have a bitmap LCD display */ 14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP 15#define HAVE_LCD_BITMAP
16 16
17/* define this if you want album art for this target */
18#define HAVE_ALBUMART
19
17/* define this if you can invert the colours on your LCD */ 20/* define this if you can invert the colours on your LCD */
18#define HAVE_LCD_INVERT 21#define HAVE_LCD_INVERT
19 22
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h
index 7d58992ee8..8bdc053563 100644
--- a/firmware/export/config-ipod4g.h
+++ b/firmware/export/config-ipod4g.h
@@ -24,6 +24,9 @@
24/* define this if you have a bitmap LCD display */ 24/* define this if you have a bitmap LCD display */
25#define HAVE_LCD_BITMAP 25#define HAVE_LCD_BITMAP
26 26
27/* define this if you want album art for this target */
28#define HAVE_ALBUMART
29
27/* define this if you can invert the colours on your LCD */ 30/* define this if you can invert the colours on your LCD */
28#define HAVE_LCD_INVERT 31#define HAVE_LCD_INVERT
29 32
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index a5850904fa..0aba8c34d6 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -27,6 +27,9 @@
27/* define this if you have a colour LCD */ 27/* define this if you have a colour LCD */
28#define HAVE_LCD_COLOR 28#define HAVE_LCD_COLOR
29 29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
30/* define this if you have access to the quickscreen */ 33/* define this if you have access to the quickscreen */
31#define HAVE_QUICKSCREEN 34#define HAVE_QUICKSCREEN
32/* define this if you have access to the pitchscreen */ 35/* define this if you have access to the pitchscreen */
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h
index 5cab1767e3..4a3edbfb5f 100644
--- a/firmware/export/config-ipodmini.h
+++ b/firmware/export/config-ipodmini.h
@@ -14,6 +14,9 @@
14/* define this if you have a bitmap LCD display */ 14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP 15#define HAVE_LCD_BITMAP
16 16
17/* define this if you want album art for this target */
18#define HAVE_ALBUMART
19
17/* define this if you can invert the colours on your LCD */ 20/* define this if you can invert the colours on your LCD */
18#define HAVE_LCD_INVERT 21#define HAVE_LCD_INVERT
19 22
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h
index 77299dda01..0f82d099b9 100644
--- a/firmware/export/config-ipodmini2g.h
+++ b/firmware/export/config-ipodmini2g.h
@@ -14,6 +14,9 @@
14/* define this if you have a bitmap LCD display */ 14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP 15#define HAVE_LCD_BITMAP
16 16
17/* define this if you want album art for this target */
18#define HAVE_ALBUMART
19
17/* define this if you can invert the colours on your LCD */ 20/* define this if you can invert the colours on your LCD */
18#define HAVE_LCD_INVERT 21#define HAVE_LCD_INVERT
19 22
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index fcba445bce..4fcb8f69dc 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -27,6 +27,9 @@
27/* define this if you have a colour LCD */ 27/* define this if you have a colour LCD */
28#define HAVE_LCD_COLOR 28#define HAVE_LCD_COLOR
29 29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
30/* define this if you have access to the quickscreen */ 33/* define this if you have access to the quickscreen */
31#define HAVE_QUICKSCREEN 34#define HAVE_QUICKSCREEN
32/* define this if you have access to the pitchscreen */ 35/* define this if you have access to the pitchscreen */
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 9ba479246b..eecb65c809 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -27,6 +27,9 @@
27/* define this if you have a colour LCD */ 27/* define this if you have a colour LCD */
28#define HAVE_LCD_COLOR 28#define HAVE_LCD_COLOR
29 29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
30/* define this if you have access to the quickscreen */ 33/* define this if you have access to the quickscreen */
31#define HAVE_QUICKSCREEN 34#define HAVE_QUICKSCREEN
32/* define this if you have access to the pitchscreen */ 35/* define this if you have access to the pitchscreen */