summaryrefslogtreecommitdiffstats
path: root/src/db-image-parser.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-06-02 18:08:14 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-06-02 18:08:14 +0000
commit6481a383b8749bc1fcbb8bdcdb0dd8b079d6006c (patch)
treed3eba7dc22f321067eef764227db700c484b914c /src/db-image-parser.c
parent452187d90f15acf4bca777b17ec0611a00548ebf (diff)
downloadlibgpod-6481a383b8749bc1fcbb8bdcdb0dd8b079d6006c.tar.gz
libgpod-6481a383b8749bc1fcbb8bdcdb0dd8b079d6006c.tar.xz
libgpod-6481a383b8749bc1fcbb8bdcdb0dd8b079d6006c.zip
* src/db-artwork-writer.c
src/db-image-parser.c src/itdb.h src/ithumb-writer.c: Hopefully do padding right: - read padding fields from mhni header and store them with each thumbnail - calculate padding for PhotoDB only (padding for iTunesDB Artwork does not seem to be necessary) - include the padding into the total width/height It seems to work well on my iPod Nano -- feedback appreciated. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1298 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-image-parser.c')
-rw-r--r--src/db-image-parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db-image-parser.c b/src/db-image-parser.c
index 64c23a3..e845b92 100644
--- a/src/db-image-parser.c
+++ b/src/db-image-parser.c
@@ -101,6 +101,10 @@ ipod_image_new_from_mhni (MhniHeader *mhni, Itdb_DB *db)
img->offset = get_guint32_db (db, mhni->ithmb_offset);
img->width = get_gint16_db (db, mhni->image_width);
img->height = get_gint16_db (db, mhni->image_height);
+ img->horizontal_padding =
+ get_gint16_db (db, mhni->horizontal_padding);
+ img->vertical_padding =
+ get_gint16_db (db, mhni->vertical_padding);
device = db_get_device (db);
g_return_val_if_fail (device, NULL);