[vlc-devel] [PATCH] swscale: Fix pixel format for VLC_CODEC_RGBA

Laurent Aimar fenrir at elivagar.org
Thu Dec 20 14:43:03 CET 2012


On Thu, Dec 20, 2012 at 02:29:48PM +0100, falbrechtskirchinger at gmail.com wrote:
> From: Florian Albrechtskirchinger <falbrechtskirchinger at gmail.com>
> 
> Hi,
> 
> this patch resolves inverted reds and blues during XCB screen capture of a semi-transparent window.
> The issue was introduced by commit fb7f014161f68c914e028adbea68b7ee9863c76e, which changed the pixel format from PIX_FMT_RGBA32 to PIX_FMT_BGR32.
 I am not sure that it is right. I fear that the issue is in the XCB module
that declares RGBA but returns data that does not follow the order that
VLC RGBA wants (RGBA is only supported with a fixed order in VLC).

A solution/workaround may be to return RGB32 in the XCB plugin.

I will let courmisch comments.

-- 
fenrir



More information about the vlc-devel mailing list