From da83c8e68edfca1b740b95fe045b5bd32c8ab56d Mon Sep 17 00:00:00 2001 From: jcsjcs Date: Thu, 22 Sep 2005 18:16:50 +0000 Subject: * applied Christophe Fergeau's patch which adds cover art writing support to libgpod -> bump to version 104 git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1098 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/db-image-parser.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/db-image-parser.h') diff --git a/src/db-image-parser.h b/src/db-image-parser.h index 0c36cc4..4c0002e 100644 --- a/src/db-image-parser.h +++ b/src/db-image-parser.h @@ -28,7 +28,25 @@ #include "db-itunes-parser.h" #include "itdb.h" -Itdb_Image *ipod_image_new_from_mhni (MhniHeader *mhni, const char *mount_point); -Itdb_Image *ipod_image_new_from_mhii (MhiiHeader *mhii); +#define RED_BITS 5 +#define RED_SHIFT 11 +#define RED_MASK (((1 << RED_BITS)-1) << RED_SHIFT) + +#define GREEN_BITS 6 +#define GREEN_SHIFT 5 +#define GREEN_MASK (((1 << GREEN_BITS)-1) << GREEN_SHIFT) + +#define BLUE_BITS 5 +#define BLUE_SHIFT 0 +#define BLUE_MASK (((1 << BLUE_BITS)-1) << BLUE_SHIFT) + +G_GNUC_INTERNAL Itdb_Image *ipod_image_new_from_mhni (MhniHeader *mhni, + const char *mount_point); +G_GNUC_INTERNAL char *ipod_image_get_ithmb_filename (const char *mount_point, + gint correlation_id); + +G_GNUC_INTERNAL int itdb_write_ithumb_files (Itdb_iTunesDB *db, + const char *mount_point); + #endif -- cgit