commit 8765ee293e40848a320ecb44e837cf4ca46c1295
Author: Christophe Fergeau <[email protected]>
Date: Mon Nov 2 00:47:29 2009 +0100
parse iphone artwork formats from SysInfoExtended
src/itdb_sysinfo_extended_parser.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/itdb_sysinfo_extended_parser.c
b/src/itdb_sysinfo_extended_parser.c
index f996b53..c194f36 100644
--- a/src/itdb_sysinfo_extended_parser.c
+++ b/src/itdb_sysinfo_extended_parser.c
@@ -398,11 +398,18 @@ set_pixel_format (Itdb_ArtworkFormat *img_spec,
GHashTable *dict)
img_spec->format = THUMB_FORMAT_RGB565_LE;
} else if (strcmp (pixel_format, "79343230" /* y420 */) == 0) {
img_spec->format = THUMB_FORMAT_I420_LE;
+ } else if (strcmp (pixel_format, "4C353535" /* L555 */) == 0) {
+ if (g_hash_table_lookup (dict, "PixelOrder") != NULL) {
+ img_spec->format = THUMB_FORMAT_REC_RGB555_LE;
+ } else {
+ img_spec->format = THUMB_FORMAT_RGB555_LE;
+ }
} else {
g_free (pixel_format);
return FALSE;
}
g_hash_table_remove (dict, "PixelFormat");
+ g_hash_table_remove (dict, "PixelOrder");
g_free (pixel_format);
return TRUE;
}
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2