[vlc-devel] [PATCH]OpenGL video output colorspace correction

Kaarlo Räihä agent_007 at luukku.com
Sun Jul 6 15:52:58 CEST 2008


Someone pointed out that OpenGL video output swaps red and blue components in nightlies
http://forum.videolan.org/viewtopic.php?f=14&t=47935&start=0&st=0&sk=t&sd=a
I checked with Vista+Nvidia and XP+ATI to make sure it isn't driver or OS related issues.

I don't know what has caused this issue (in 0.8.6 it works without this) but at least this patch fixes it under Windows. Patch should affect to Linux/Unix also (I don't have GUI box to check it out), so please someone check if it does break Linux/Unix OpenGL. If it does, you can fix it by making sure that Linux/Unix uses

#define VLCGL_FORMAT VLCGL_RGB_FORMAT
#define VLCGL_TYPE   VLCGL_RGB_TYPE


Because of GL_BGRA, the output should work little faster under Windows but difference is minimal.
http://www.gamedev.net/community/forums/topic.asp?topic_id=327540

...................................................................
Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-OpenGL-RGBA-to-BGRA-change-to-fix-wrong-colorspace.patch
Type: application/octet-stream
Size: 1146 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080706/b51be038/attachment.obj>


More information about the vlc-devel mailing list