From: <jc...@us...> - 2007-11-10 04:32:01
|
Revision: 1769 http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1769&view=rev Author: jcsjcs Date: 2007-11-09 20:32:04 -0800 (Fri, 09 Nov 2007) Log Message: ----------- * src/itdb_device.c: added photo thumbnail definitions for iPod Touch. I'm not sure how reasonable the "PHOTO_LARGE, _FULL_SCREEN, _TV_SCREEN" classification is, however... Modified Paths: -------------- libgpod/trunk/ChangeLog libgpod/trunk/src/itdb_device.c Modified: libgpod/trunk/ChangeLog =================================================================== --- libgpod/trunk/ChangeLog 2007-11-10 03:56:11 UTC (rev 1768) +++ libgpod/trunk/ChangeLog 2007-11-10 04:32:04 UTC (rev 1769) @@ -5,6 +5,10 @@ handled, the rest (type 2: image transition style) are being discarded. + * src/itdb_device.c: added photo thumbnail definitions for iPod + Touch. I'm not sure how reasonable the "PHOTO_LARGE, + _FULL_SCREEN, _TV_SCREEN" classification is, however... + 2007-11-09 Jorg Schuler <jcsjcs at users.sourceforge.net> * src/db-parse-context.c (db_parse_context_get_m_header_internal): Modified: libgpod/trunk/src/itdb_device.c =================================================================== --- libgpod/trunk/src/itdb_device.c 2007-11-10 03:56:11 UTC (rev 1768) +++ libgpod/trunk/src/itdb_device.c 2007-11-10 04:32:04 UTC (rev 1769) @@ -307,6 +307,20 @@ {-1, -1, -1, -1, -1} }; +static const Itdb_ArtworkFormat ipod_touch_1_artwork_info[] = { + {ITDB_THUMB_COVER_LARGE, 256, 256, 3001, THUMB_FORMAT_REC_RGB555_LE}, + {ITDB_THUMB_COVER_MEDIUM, 128, 128, 3002, THUMB_FORMAT_REC_RGB555_LE}, + {ITDB_THUMB_COVER_SMALL, 64, 64, 3003, THUMB_FORMAT_REC_RGB555_LE}, + {ITDB_THUMB_COVER_XLARGE, 320, 320, 3005, THUMB_FORMAT_RGB555_LE}, + {ITDB_THUMB_COVER_XSMALL, 56, 56, 3006, THUMB_FORMAT_RGB555_LE, 8192}, /*pad data to 8192 bytes */ + {ITDB_THUMB_COVER_SMEDIUM, 88, 88, 3007, THUMB_FORMAT_RGB555_LE, 16364}, /*pad data to 16384 bytes */ + {ITDB_THUMB_PHOTO_SMALL, 56, 55, 3004, THUMB_FORMAT_RGB555_LE, 8192}, + {ITDB_THUMB_PHOTO_LARGE, 80, 79, 3011, THUMB_FORMAT_RGB555_LE}, + {ITDB_THUMB_PHOTO_FULL_SCREEN,160, 120, 3009, THUMB_FORMAT_RGB555_LE}, + {ITDB_THUMB_PHOTO_TV_SCREEN, 640, 480, 3008, THUMB_FORMAT_RGB555_LE}, + {-1, -1, -1, -1, -1} +}; + static const Itdb_ArtworkFormat ipod_classic_1_artwork_info[] = { /* officially 55x55 -- verify! */ {ITDB_THUMB_COVER_XSMALL, 56, 56, 1061, THUMB_FORMAT_RGB565_LE}, @@ -682,7 +696,7 @@ case ITDB_IPOD_GENERATION_CLASSIC_1: return ipod_classic_1_artwork_info; case ITDB_IPOD_GENERATION_TOUCH_1: - return ipod_iphone_1_artwork_info; + return ipod_touch_1_artwork_info; case ITDB_IPOD_GENERATION_FIFTH: case ITDB_IPOD_GENERATION_SIXTH: return NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |