From f7316591125fa93b2e64f14e4b3090efc9c28fa3 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 12 Dec 2008 13:57:11 +0000 Subject: Add hardcoded tables for nano4g artwork git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2167 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 7 +++++++ src/itdb_device.c | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/ChangeLog b/ChangeLog index a32aab3..4bf0278 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-12 Christophe Fergeau + + * 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 * src/itdb_device.c: add serial number for 16GB Orange Nano 4g, 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 }, -- cgit