diff options
author | Christophe Fergeau <teuf@gnome.org> | 2008-12-12 13:57:11 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2008-12-12 13:57:11 +0000 |
commit | f7316591125fa93b2e64f14e4b3090efc9c28fa3 (patch) | |
tree | be77fa63fc3cfd6e5d76d07c90d8872623d8a6af | |
parent | a00460807777d4296f345032510e88c624240ff1 (diff) | |
download | libgpod-tmz-f7316591125fa93b2e64f14e4b3090efc9c28fa3.tar.gz libgpod-tmz-f7316591125fa93b2e64f14e4b3090efc9c28fa3.tar.xz libgpod-tmz-f7316591125fa93b2e64f14e4b3090efc9c28fa3.zip |
Add hardcoded tables for nano4g artwork
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2167 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/itdb_device.c | 24 |
2 files changed, 31 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2008-12-12 Christophe Fergeau <teuf@gnome.org> + * src/itdb_device.c: add hardcoded table for nano4g artwork + formats. I haven't tested I got everything perfectly right so there + might be issues with them. Thanks to Tijs van Roon for pinpointing + these missing tables + +2008-12-12 Christophe Fergeau <teuf@gnome.org> + * src/itdb_device.c: add serial number for 16GB Orange Nano 4g, thanks to Tijs van Roon for providing the data diff --git a/src/itdb_device.c b/src/itdb_device.c index 3f0f5aa..1eace22 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -349,6 +349,29 @@ static const Itdb_ArtworkFormat ipod_nano_photo_info[] = { { -1, -1, -1, -1} }; + +static const Itdb_ArtworkFormat ipod_nano4g_cover_art_info[] = { + {1055, 128, 128, THUMB_FORMAT_RGB565_LE}, + {1068, 128, 128, THUMB_FORMAT_RGB565_BE}, + {1068, 240, 240, THUMB_FORMAT_RGB565_BE}, + {1074, 50, 50, THUMB_FORMAT_RGB565_LE}, + {1078, 80, 80, THUMB_FORMAT_RGB565_LE}, + {1084, 240, 240, THUMB_FORMAT_RGB565_BE}, + { -1, -1, -1, -1} +}; + +static const Itdb_ArtworkFormat ipod_nano4g_photo_info[] = { + {1024, 320, 240, THUMB_FORMAT_RGB565_LE}, + {1066, 64, 64, THUMB_FORMAT_RGB565_LE}, + {1079, 80, 80, THUMB_FORMAT_RGB565_LE}, + {1083, 240, 320, THUMB_FORMAT_RGB565_LE}, + { -1, -1, -1, -1} +}; + +static const Itdb_ArtworkFormat ipod_nano4g_chapter_image_info[] = { + {1071, 240, 240, THUMB_FORMAT_RGB565_LE}, +}; + static const Itdb_ArtworkFormat ipod_video_cover_art_info[] = { {1028, 100, 100, THUMB_FORMAT_RGB565_LE}, {1029, 200, 200, THUMB_FORMAT_RGB565_LE}, @@ -444,6 +467,7 @@ static const ArtworkCapabilities ipod_artwork_capabilities[] = { { ITDB_IPOD_GENERATION_NANO_1, ipod_nano_cover_art_info, ipod_nano_photo_info, NULL }, { ITDB_IPOD_GENERATION_NANO_2, ipod_nano_cover_art_info, ipod_nano_photo_info, NULL }, { ITDB_IPOD_GENERATION_NANO_3, ipod_classic_1_cover_art_info, ipod_classic_1_photo_info, ipod_classic_1_chapter_image_info }, + { ITDB_IPOD_GENERATION_NANO_4, ipod_nano4g_cover_art_info, ipod_nano4g_photo_info, ipod_nano4g_chapter_image_info }, { ITDB_IPOD_GENERATION_CLASSIC_1, ipod_classic_1_cover_art_info, ipod_classic_1_photo_info, ipod_classic_1_chapter_image_info }, { ITDB_IPOD_GENERATION_CLASSIC_2, ipod_classic_1_cover_art_info, ipod_classic_1_photo_info, ipod_classic_1_chapter_image_info }, { ITDB_IPOD_GENERATION_TOUCH_1, ipod_touch_1_cover_art_info, ipod_touch_1_photo_info, NULL }, |