diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-09-08 15:15:57 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-09-08 15:15:57 +0000 |
commit | e76676a7233fee6a3b7043443dda2bdbfe06703e (patch) | |
tree | da6b374c3c3d4184c85a743020bbda40465da3ae /src/db-image-parser.c | |
parent | 26902285063384bd9e8b962be65c9cd5c1a802b4 (diff) | |
download | libgpod-e76676a7233fee6a3b7043443dda2bdbfe06703e.tar.gz libgpod-e76676a7233fee6a3b7043443dda2bdbfe06703e.tar.xz libgpod-e76676a7233fee6a3b7043443dda2bdbfe06703e.zip |
* src/db-image-parser.c
src/itdb_device.c
src/ithumb-writer.c
src/db-image-parser.h
src/itdb_device.h
src/itdb.h
src/itdb_artwork.c
tests/test-covers.c: added support to read and write coverart on
iPhones. New cover formats are: MEDIUM, XLARGE, XSMALL, SMEDIUM
-- should be renamed if function becomes clearer.
Introduced New image formats for the thumbnails
(THUMB_FORMAT_RGB555, THUMB_FORMAT_REC_RGB555). Coding/decoding
functions are pack_/unpack_RGB_555() and
pack_/unpack_REC_RGB_555().
Introduced possible padding for thumbnail files
(Itdb_ArtworkFormat).
* src/db-artwork-parser.c: make output filename unique.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1691 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-image-parser.c')
-rw-r--r-- | src/db-image-parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db-image-parser.c b/src/db-image-parser.c index 9130bdc..be28838 100644 --- a/src/db-image-parser.c +++ b/src/db-image-parser.c @@ -113,6 +113,11 @@ ipod_image_new_from_mhni (MhniHeader *mhni, Itdb_DB *db) corr_id = get_gint32_db (db, mhni->correlation_id); img->type = image_type_from_corr_id (device, corr_id); +#if DEBUG_ARTWORK + printf ("corr_id: %d, of: %6d sz: %6d, x: %3d, y: %3d, xpad: %3d, ypad: %3d\n", + corr_id, img->offset, img->size, img->width, img->height, img->horizontal_padding, img->vertical_padding); +#endif + if (img->type == -1) { g_warning (_("Unexpected image type in mhni: size: %ux%u (%d), offset: %d\n"), |