summaryrefslogtreecommitdiffstats
path: root/src/db-image-parser.h
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2007-10-27 13:11:35 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2007-10-27 13:11:35 +0000
commit46b4a757c9349b6727b9f25aee4456a2007d6f9c (patch)
tree08fb6aa2409bce45fd4c2eae12d701c86b1cd03a /src/db-image-parser.h
parenta443d5bb4d8f41d3d866a41b6282673e83de771c (diff)
downloadlibgpod-46b4a757c9349b6727b9f25aee4456a2007d6f9c.tar.gz
libgpod-46b4a757c9349b6727b9f25aee4456a2007d6f9c.tar.xz
libgpod-46b4a757c9349b6727b9f25aee4456a2007d6f9c.zip
* src/itdb_device.c (ipod_classic_1_artwork_info)
src/ithumb-writer.c (pack_RGB_888, pack_RGB_565, pack_RGB_555, pack_rec_RGB_555, ithumb_writer_write_thumbnail) src/db-image-parser.h (_888 definitions) src/itdb_device.h (RGB888 thumb format enum definitions) src/itdb_artwork.c (unpack_RGB_888, unpack_experimental, itdb_thumb_get_rgb_data) Partial support for photos on new iPod Nano 3G and iPod Classics. Photos should be displayed correctly on the iPod but the video output will show garbage (couldn't try video output per se, but from the data iTunes produces this is clear). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1741 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-image-parser.h')
-rw-r--r--src/db-image-parser.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/db-image-parser.h b/src/db-image-parser.h
index 79f538e..bd06434 100644
--- a/src/db-image-parser.h
+++ b/src/db-image-parser.h
@@ -61,6 +61,22 @@
#define BLUE_SHIFT_555 0
#define BLUE_MASK_555 (((1 << BLUE_BITS_555)-1) << BLUE_SHIFT_555)
+#define ALPHA_BITS_888 8
+#define ALPHA_SHIFT_888 24
+#define ALPHA_MASK_888 (((1 << ALPHA_BITS_888)-1) << ALPHA_SHIFT_888)
+
+#define RED_BITS_888 8
+#define RED_SHIFT_888 16
+#define RED_MASK_888 (((1 << RED_BITS_888)-1) << RED_SHIFT_888)
+
+#define GREEN_BITS_888 8
+#define GREEN_SHIFT_888 8
+#define GREEN_MASK_888 (((1 << GREEN_BITS_888)-1) << GREEN_SHIFT_888)
+
+#define BLUE_BITS_888 8
+#define BLUE_SHIFT_888 0
+#define BLUE_MASK_888 (((1 << BLUE_BITS_888)-1) << BLUE_SHIFT_888)
+
G_GNUC_INTERNAL Itdb_Thumb *ipod_image_new_from_mhni (MhniHeader *mhni,
Itdb_DB *db);