diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-02-09 20:13:13 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-09 20:13:13 +0000 |
commit | f577a6a22c646669e56c5436859d2f5ec8b421e8 (patch) | |
tree | 04673c08ff7fc1e12ad4eb4147b705e0bd0fd926 /apps/recorder/jpeg_load.h | |
parent | 0d902c8c54bbc36f24b40c49eb9872aa75b779e4 (diff) | |
download | rockbox-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/recorder/jpeg_load.h')
-rw-r--r-- | apps/recorder/jpeg_load.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/recorder/jpeg_load.h b/apps/recorder/jpeg_load.h index 73b6c51bf3..6ff96dabad 100644 --- a/apps/recorder/jpeg_load.h +++ b/apps/recorder/jpeg_load.h @@ -44,4 +44,27 @@ int read_jpeg_fd(int fd, int format, const struct custom_format *cformat); +/** + * read embedded jpeg files as above. Needs an offset and length into + * the file + **/ +int clip_jpeg_file(const char* filename, + int offset, + unsigned long jpeg_size, + struct bitmap *bm, + int maxsize, + int format, + const struct custom_format *cformat); + +/** + * read embedded jpeg files as above. Needs an open file descripter, and + * assumes the caller has lseek()'d to the start of the jpeg blob + **/ +int clip_jpeg_fd(int fd, + unsigned long jpeg_size, + struct bitmap *bm, + int maxsize, + int format, + const struct custom_format *cformat); + #endif /* _JPEG_JPEG_DECODER_H */ |