OpenGL color conversion

Does anyone know how to create a texture with a YUV color space so that we can get the YUV to RGB conversion based on hardware without using a flash shader? I am using an NVidia 9400 and I don't see the obvious GL extension that seems to do the trick. I found examples of how to use the fragment shader, but the project I'm working on currently supports OpenGL 1.1, and I don’t have time to convert it to 2.0 and do all the necessary regression tests. It also targets Linux. On other platforms, I use the MESA extension, but it does not work on the Nvidia card.

+3
source share
2 answers

Since you can use extensions, but you are worried about dealing with OpenGL 2.0, consider providing a simple fragment shader using the old-school ARB_fragment_program extension .

Alternatively, you can use a library like DevIL, ImageMagick or FreeImage to do the conversion for you.

+1
source

Did you mention the MESA extension for YCrCb? If your nvidia card does not reveal it, it means that they do not disclose support for this texture format (this is a way of saying that the card supports it).

- . ( GL )

GL - , GL1.1, ( dot3). , .

, , BINK , , MMX ( , ). , , , SSE ​​OpenGL. , .

0

Source: https://habr.com/ru/post/1721204/


All Articles