[Ffmpeg-devel] Re: [BUG] TSCC wrong colors on PPC

Michael Niedermayer michaelni
Sun Jan 8 17:39:14 CET 2006


Hi

On Sun, Jan 08, 2006 at 05:46:34PM +0200, Kostya wrote:
> Sorry for not answering, was far away from computer for a week.
> >It looks like our TSCC decoder has some endianess issues still.  I get
> >wrong colors when I play on my PPC, while my x86 is fine.
> [...]
> >Interestingly it seems that only 32bpp and 16bpp TSCC samples are
> >affected.  The 24bpp sample I have is fine.
> That's because of used output colorspaces PIX_FMT_RGB555 and 
> PIX_FMT_RGBA32. Comments in avcodec.h tell these colorspaces are 
> cpu-endian depended.
> Possible solutions:
> * Convert output pixels to native endianness.
> * Assume these colorspaces always to be little-endian.

a RGB/BGR555 / 565 in non cpu endian is pretty meaningless as the components
would be chopped up and reshuffled if read as 16bit:
RRRRRGGGGGGBBBBB vs. GGGBBBBBRRRRRGGG

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list