summaryrefslogtreecommitdiff
path: root/apps/metadata.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-02-09 20:13:13 +0000
committerThomas Martitz <kugel@rockbox.org>2011-02-09 20:13:13 +0000
commitf577a6a22c646669e56c5436859d2f5ec8b421e8 (patch)
tree04673c08ff7fc1e12ad4eb4147b705e0bd0fd926 /apps/metadata.h
parent0d902c8c54bbc36f24b40c49eb9872aa75b779e4 (diff)
downloadrockbox-f577a6a22c646669e56c5436859d2f5ec8b421e8.tar.gz
rockbox-f577a6a22c646669e56c5436859d2f5ec8b421e8.zip
Embedded album art support in MP3/ID3v2 tags.
- Support is limited to non-desync jpeg in id3v2 tags. Other formats (hopefully) follow in the future. - Embedded album art takes precedence over files in album art files. - No additional buffers are used, the jpeg is read directly from the audio file. Flyspray: FS#11216 Author: Yoshihisa Uchida and I git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29259 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.h')
-rw-r--r--apps/metadata.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/metadata.h b/apps/metadata.h
index b99d4d09d6..8d20882835 100644
--- a/apps/metadata.h
+++ b/apps/metadata.h
@@ -190,6 +190,22 @@ enum {
190 ID3_VER_2_4 190 ID3_VER_2_4
191}; 191};
192 192
193#ifdef HAVE_ALBUMART
194enum mp3_aa_type {
195 AA_TYPE_UNSYNC = -1,
196 AA_TYPE_UNKNOWN,
197 AA_TYPE_BMP,
198 AA_TYPE_PNG,
199 AA_TYPE_JPG,
200};
201
202struct mp3_albumart {
203 enum mp3_aa_type type;
204 int size;
205 off_t pos;
206};
207#endif
208
193struct mp3entry { 209struct mp3entry {
194 char path[MAX_PATH]; 210 char path[MAX_PATH];
195 char* title; 211 char* title;
@@ -277,6 +293,11 @@ struct mp3entry {
277 long album_peak; 293 long album_peak;
278#endif 294#endif
279 295
296#ifdef HAVE_ALBUMART
297 bool embed_albumart;
298 struct mp3_albumart albumart;
299#endif
300
280 /* Cuesheet support */ 301 /* Cuesheet support */
281 struct cuesheet *cuesheet; 302 struct cuesheet *cuesheet;
282 303