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.zip
rockbox-f577a6a22c646669e56c5436859d2f5ec8b421e8.tar.gz
rockbox-f577a6a22c646669e56c5436859d2f5ec8b421e8.tar.bz2
rockbox-f577a6a22c646669e56c5436859d2f5ec8b421e8.tar.xz
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 b99d4d0..8d20882 100644
--- a/apps/metadata.h
+++ b/apps/metadata.h
@@ -190,6 +190,22 @@ enum {
ID3_VER_2_4
};
+#ifdef HAVE_ALBUMART
+enum mp3_aa_type {
+ AA_TYPE_UNSYNC = -1,
+ AA_TYPE_UNKNOWN,
+ AA_TYPE_BMP,
+ AA_TYPE_PNG,
+ AA_TYPE_JPG,
+};
+
+struct mp3_albumart {
+ enum mp3_aa_type type;
+ int size;
+ off_t pos;
+};
+#endif
+
struct mp3entry {
char path[MAX_PATH];
char* title;
@@ -277,6 +293,11 @@ struct mp3entry {
long album_peak;
#endif
+#ifdef HAVE_ALBUMART
+ bool embed_albumart;
+ struct mp3_albumart albumart;
+#endif
+
/* Cuesheet support */
struct cuesheet *cuesheet;