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 | b3adc13acbaa2033a409b253a4881d7714fbe755 (patch) | |
tree | da6b374c3c3d4184c85a743020bbda40465da3ae /src/db-image-parser.c | |
parent | d403405c070835054a9f8de02513c72dd4db7a25 (diff) | |
download | libgpod-b3adc13acbaa2033a409b253a4881d7714fbe755.tar.gz libgpod-b3adc13acbaa2033a409b253a4881d7714fbe755.tar.xz libgpod-b3adc13acbaa2033a409b253a4881d7714fbe755.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"), |