summaryrefslogtreecommitdiffstats
path: root/src/db-image-parser.h
diff options
context:
space:
mode:
authorjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-09-22 18:16:50 +0000
committerjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-09-22 18:16:50 +0000
commitda83c8e68edfca1b740b95fe045b5bd32c8ab56d (patch)
treedd5f9c7eb78249d02e1a80a8a7447c2bcc0fd4c9 /src/db-image-parser.h
parentf3ffd45a6e75de502d9c1e913d7b701fef725d34 (diff)
downloadlibgpod-da83c8e68edfca1b740b95fe045b5bd32c8ab56d.tar.gz
libgpod-da83c8e68edfca1b740b95fe045b5bd32c8ab56d.tar.xz
libgpod-da83c8e68edfca1b740b95fe045b5bd32c8ab56d.zip
* 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
Diffstat (limited to 'src/db-image-parser.h')
-rw-r--r--src/db-image-parser.h22
1 files changed, 20 insertions, 2 deletions
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