Revision: 2060
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2060&view=rev
Author: jcsjcs
Date: 2008-07-20 14:43:19 +0000 (Sun, 20 Jul 2008)
Log Message:
-----------
* src/ithumb-writer.c (pack_RGB_565), (pack_RGB_555)
(pack_RGB_888): handle horizontal padding correctly
(affected pictures in portrait format).
* src/itdb_device.c: added some comments.
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/src/itdb_device.c
libgpod/trunk/src/ithumb-writer.c
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2008-07-20 12:49:55 UTC (rev 2059)
+++ libgpod/trunk/ChangeLog 2008-07-20 14:43:19 UTC (rev 2060)
@@ -1,3 +1,11 @@
+2008-07-20 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * src/ithumb-writer.c (pack_RGB_565), (pack_RGB_555)
+ (pack_RGB_888): handle horizontal padding correctly
+ (affected pictures in portrait format).
+
+ * src/itdb_device.c: added some comments.
+
2008-07-18 Jorg Schuler <jcsjcs at users.sourceforge.net>
* src/itdb_device.c (itdb_device_set_timezone_info): avoid g_stat
Modified: libgpod/trunk/src/itdb_device.c
===================================================================
--- libgpod/trunk/src/itdb_device.c 2008-07-20 12:49:55 UTC (rev 2059)
+++ libgpod/trunk/src/itdb_device.c 2008-07-20 14:43:19 UTC (rev 2060)
@@ -357,6 +357,7 @@
{ -1, -1, -1, -1}
};
+/* also used for 3G Nano */
static const Itdb_ArtworkFormat ipod_classic_1_cover_art_info[] = {
/* officially 55x55 -- verify! */
{1061, 56, 56, THUMB_FORMAT_RGB565_LE},
@@ -365,6 +366,7 @@
{ -1, -1, -1, -1}
};
+/* also used for 3G Nano */
static const Itdb_ArtworkFormat ipod_classic_1_photo_info[] = {
{1067, 720, 480, THUMB_FORMAT_I420_LE},
{1024, 320, 240, THUMB_FORMAT_RGB565_LE},
@@ -372,6 +374,7 @@
{ -1, -1, -1, -1}
};
+/* also used for 3G Nano */
static const Itdb_ArtworkFormat ipod_classic_1_chapter_image_info[] = {
/* These are the same as for the iPod video... -- labeled by the iPod as
"chapter images" */
Modified: libgpod/trunk/src/ithumb-writer.c
===================================================================
--- libgpod/trunk/src/ithumb-writer.c 2008-07-20 12:49:55 UTC (rev 2059)
+++ libgpod/trunk/src/ithumb-writer.c 2008-07-20 14:43:19 UTC (rev 2060)
@@ -154,7 +154,8 @@
} else {
guchar *cur_pixel;
- cur_pixel = &pixels[h*row_stride + w*channels];
+ cur_pixel = &pixels[h*row_stride +
+ (w - horizontal_padding)*channels];
packed_pixel = get_RGB_565_pixel (cur_pixel, byte_order);
}
result[line + w] = packed_pixel;
@@ -260,7 +261,8 @@
} else {
guchar *cur_pixel;
- cur_pixel = &pixels[h*row_stride + w*channels];
+ cur_pixel = &pixels[h*row_stride +
+ (w-horizontal_padding)*channels];
packed_pixel = get_RGB_555_pixel (cur_pixel, byte_order,
FALSE);
}
@@ -356,7 +358,8 @@
} else {
guchar *cur_pixel;
- cur_pixel = &pixels[h*row_stride + w*channels];
+ cur_pixel = &pixels[h*row_stride +
+ (w-horizontal_padding)*channels];
packed_pixel = get_RGB_888_pixel (cur_pixel, byte_order,
FALSE);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2