[Libva] Opengl surface to VaSurface
gb.devel at gmail.com
Tue Apr 24 00:19:57 PDT 2012
2012/4/24 Oliver Seitz <info at vtnd.de>:
>>> Planned scheme: h.264 stream ->vaapi decoder -> VaSurface -> OpenGl
>>> -> Opengl postprocessing -> VaSurface -> vaapi encoder -> h.264
>> There is work in progress for this use case, through EGL extensions.
> Using this scheme, would this add a possibility to adjust image contrast and
> brightness for VAAPI accelerated playback through OpenGL controls?
If you write the relevant shader code for it, yes. You ultimately get
the Y component in a texture, likewise for the UV components. You just
do whatever you want with them next. And HSBC control is indeed
simpler to perform at the YUV level.
More information about the Libva