diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-09-22 18:16:50 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-09-22 18:16:50 +0000 |
commit | 32fdf71f74fee4e0774d7ae5167447c70cd83b7c (patch) | |
tree | dd5f9c7eb78249d02e1a80a8a7447c2bcc0fd4c9 /src/db-image-parser.h | |
parent | fba33d9b3d03cb92df15904c045fcfe93d251fa4 (diff) | |
download | libgpod-32fdf71f74fee4e0774d7ae5167447c70cd83b7c.tar.gz libgpod-32fdf71f74fee4e0774d7ae5167447c70cd83b7c.tar.xz libgpod-32fdf71f74fee4e0774d7ae5167447c70cd83b7c.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.h | 22 |
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 |