[Libva] Opengl surface to VaSurface

Gwenole Beauchesne gb.devel at gmail.com
Tue Apr 24 00:19:57 PDT 2012


Hi,

2012/4/24 Oliver Seitz <info at vtnd.de>:

>>> Planned scheme: h.264 stream ->vaapi decoder ->  VaSurface ->  OpenGl
>>> Surface
>>> ->  Opengl postprocessing ->  VaSurface ->  vaapi encoder ->  h.264
>>> stream.
>>
>>
>> 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.

Regards,
Gwenole.


More information about the Libva mailing list