« Return to Thread: gtkpod with ipod nano 3g

Re: gtkpod with ipod nano 3g

by Eduardo Sztokbant :: Rate this Message:

| View in Thread

Dear friends,

Based on the contents of this thread I finally managed to solve the
same issue, good thumbnails/black full-screen, with an iPod classic.

I did about the same, replaced 1064 by 1024 and got twisted
full-screen pictures and then replaced THUMB_FORMAT_RGB888_LE by
THUMB_FORMAT_RGB565_LE.

Works like a charm! (patch follows)

Thank you,
Happy New Year,
Eduardo!!

Index: src/itdb_device.c

===================================================================

--- src/itdb_device.c   (revision 1866)

+++ src/itdb_device.c   (working copy)

@@ -317,7 +317,7 @@

     {ITDB_THUMB_COVER_MEDIUM,     128, 128, 1055, THUMB_FORMAT_RGB565_LE},

     {ITDB_THUMB_COVER_XLARGE,     320, 320, 1060, THUMB_FORMAT_RGB565_LE},

     {ITDB_THUMB_PHOTO_TV_SCREEN,  720, 480, 1067, THUMB_FORMAT_I420_LE},

-    {ITDB_THUMB_PHOTO_FULL_SCREEN,320, 240, 1064, THUMB_FORMAT_RGB888_LE},

+    {ITDB_THUMB_PHOTO_FULL_SCREEN,320, 240, 1024, THUMB_FORMAT_RGB565_LE},

     {ITDB_THUMB_PHOTO_SMALL,       64,  64, 1066, THUMB_FORMAT_RGB565_LE},

 /*  These are the same as for the iPod video... -- labeled by the iPod as

     "chapter images" */



On Dec 27, 2007 3:25 PM, Tomas Carnecky <tom@...> wrote:

> Dustin Runnells wrote:
> > Tomas Carnecky wrote:
> >> Tomas Carnecky wrote:
> >> /* these are identical... */
> >> #define ipod_nano3_artwork_info ipod_classic_1_artwork_info
> >>
> >> But they apparently are not. iTunes created three .ithmb files, with ids:
> >>   - 1066 for 64x64 images
> >>   - 1024 for 320x240 images  <-- see this one
> >>   - 1067 for 720x480 images
> >>
> >> but ipod_classic_1_artwork_info has 1064 for 320x240 images. After I
> >> changed the correlation id the images started to appear, but corrupted,
> >> so I also changed the colorspace to RGB888_LE and then it worked fully.
> >>
> >>
> >> ... changed to RGB565_LE of course -.-
> >>
> >>
> > This worked for my 3g as well, thanks Tomas!
> >
>
> glad to hear that.
>
> ... speaking of the correlation IDs, these seem to uniquely identify the
> thumbnail format, no matter on what ipod that is, so why not do this:
>
> struct gpod_format_spec specs[] = {
>   { 1024, 340, 280, RGB565_LE },
>   { 1066,  64,  64, RGB565_LE },
>   ... etc
> };
>
> struct gpod_thumb_formats ipod_nano_3g_formats = {
>   { THUMB_FORMAT_FULL_SCREEN, 1024 },
>   { THUMB_FORMAT_COVER_SMALL, 1066 },
>   ... etc
> }
>
> tom
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gtkpod-devel mailing list
> Gtkpod-devel@...
> https://lists.sourceforge.net/lists/listinfo/gtkpod-devel
>


--
 ___
{o,o}
/)  )  Eduardo Sztokbant!! //e-mail/ICQ/MSN: du@...
-"-"-----------------------------------------------------
There is a theory which states that if ever anyone discovers exactly
what the Universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarre and
inexplicable.
There is another theory which states that this has already happened.
                -- Douglas Adams, "The Restaurant at the End of the Universe"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gtkpod-devel mailing list
Gtkpod-devel@...
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel

 « Return to Thread: gtkpod with ipod nano 3g