commit 3566705bbe266f8e449aabe0cc96dced1df979f1 Author: Nikias Bassen <nik...@gmx.li> Date: Wed Aug 25 04:20:13 2010 +0200
parse RowBytesAlignment from SysInfoExtended This key is used on at least iOS4, and we need to handle it to write 110x110 thumbnails that are found in the album list. src/itdb_device.h | 2 ++ src/itdb_sysinfo_extended_parser.c | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) --- diff --git a/src/itdb_device.h b/src/itdb_device.h index 7692b80..6a68a5d 100644 --- a/src/itdb_device.h +++ b/src/itdb_device.h @@ -137,6 +137,7 @@ struct _Itdb_Device * @gamma: Gamma value for the thumbails * (not currently used) * @associated_format: Unknown (not currently used) + * @row_bytes_alignment: Specifies the number of bytes a pixel row must be aligned to * * Structure representing the characteristics of the thumbnails to * write to a given .ithmb file. The format of the structure is based @@ -158,6 +159,7 @@ struct _Itdb_ArtworkFormat { gint color_adjustment; gdouble gamma; gint associated_format; + gint row_bytes_alignment; }; /* Error domain */ diff --git a/src/itdb_sysinfo_extended_parser.c b/src/itdb_sysinfo_extended_parser.c index a1f5cb2..a4721fd 100644 --- a/src/itdb_sysinfo_extended_parser.c +++ b/src/itdb_sysinfo_extended_parser.c @@ -241,6 +241,7 @@ static const DictFieldMapping sysinfo_image_format_fields_mapping[] = { { "ColorAdjustment", G_TYPE_INT, G_STRUCT_OFFSET (Itdb_ArtworkFormat, color_adjustment) }, { "GammaAdjustment", G_TYPE_DOUBLE, G_STRUCT_OFFSET (Itdb_ArtworkFormat, gamma) }, { "AssociatedFormat", G_TYPE_INT, G_STRUCT_OFFSET (Itdb_ArtworkFormat, associated_format) }, + { "RowBytesAlignment", G_TYPE_INT, G_STRUCT_OFFSET (Itdb_ArtworkFormat, row_bytes_alignment) }, { NULL, G_TYPE_NONE, 0 } }; ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2