[FFmpeg-devel] [PATCH] rgb/bgr confusion in swscale or in my head?

Reimar Döffinger Reimar.Doeffinger
Mon Jan 21 22:20:45 CET 2008


Hello,
On Mon, Jan 21, 2008 at 01:16:29PM -0800, Mike Melanson wrote:
> Reimar D?ffinger wrote:
> > if I am correct that e.g. rgb15 means that the _lowest_ 5 bits are red,
> > then swscale currently confuses things a bit and attached patch should
> > fix it.
> > Ok to apply or am I wrong?
> 
> I understand RGB to mean that red is in the higher part of the packed pixel.
> 
> Have you observed incorrect behavior? libavutil.h seems pretty clear on
> the matter:

Right, sorry. I now know where to fix my problem. I was confused due to
reading MPlayer's colorspace.txt and some Microsoft doc only shortly
before which do things exactly the other way round...

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list