From f577a6a22c646669e56c5436859d2f5ec8b421e8 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 9 Feb 2011 20:13:13 +0000 Subject: 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 --- apps/metadata.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'apps/metadata.h') 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 { 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; -- cgit v1.2.3