diff options
author | Christophe Fergeau <teuf@gnome.org> | 2008-05-24 09:18:42 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2008-05-24 09:18:42 +0000 |
commit | ca87d0695fcc9324e3a7bbef1b34fb09cb0a9110 (patch) | |
tree | 61adff2ba2b8057426609036e969ccee7b0de94d /src/itdb_device.c | |
parent | 9ff3586627cd3044062b384ee411154fcbe2fd6f (diff) | |
download | libgpod-ca87d0695fcc9324e3a7bbef1b34fb09cb0a9110.tar.gz libgpod-ca87d0695fcc9324e3a7bbef1b34fb09cb0a9110.tar.xz libgpod-ca87d0695fcc9324e3a7bbef1b34fb09cb0a9110.zip |
Handle cropping for thumbnails needing it
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1976 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_device.c')
-rw-r--r-- | src/itdb_device.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/itdb_device.c b/src/itdb_device.c index 2116fe5..3b5e7e3 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -306,9 +306,20 @@ static const Itdb_ArtworkFormat ipod_touch_1_artwork_info[] = { {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}, + + /* In the album list, if a photo is being used to represent a whole album, + PHOTO_SMALL is used. We specify TRUE for the crop option so we fill + the square completely. */ + {ITDB_THUMB_PHOTO_SMALL, 56, 55, 3004, THUMB_FORMAT_RGB555_LE, 8192, TRUE}, + /* In thumbnail view, PHOTO_LARGE is used. It's actually 79x79, with a 4px + white border on the right and bottom. We specify TRUE for the crop option + so we fill the square completely. */ + {ITDB_THUMB_PHOTO_LARGE, 80, 79, 3011, THUMB_FORMAT_RGB555_LE, 0, TRUE}, {ITDB_THUMB_PHOTO_FULL_SCREEN,160, 120, 3009, THUMB_FORMAT_RGB555_LE}, + /* When viewing an individual photo, PHOTO_TV_SCREEN is used. Note that it + is acceptable to write a thumbnail less than the specified width or + height, the iPhone / iTouch will scale it to fit the screen. This is + important for images that are taller than they wide. */ {ITDB_THUMB_PHOTO_TV_SCREEN, 640, 480, 3008, THUMB_FORMAT_RGB555_LE}, {-1, -1, -1, -1, -1} }; |