[Libva] copy decoded data back to CPU with help of opengl, is it possible?

Gwenole Beauchesne gb.devel at gmail.com
Tue Jun 26 01:15:19 PDT 2012


Hi,

2012/6/23 hank peng <pengxihan at gmail.com>:

> My application want to get decoded data back using libva just like
> VLC, but I found copy performance from GPU uncached cahe is very slow,

Please try the staging branch. The vaGetImage() / vaPutImage()
implementations there are considered for integration to master. VLC
performance is now reported to match mplayer-vaapi's.

> 1. allocate a buffer that will store decoded data, bind it to opengl surface.
> 2. bind va decoded surface to opengl surface, is it available in libva-egl?
> 3. call opengl routine, let it copy data from the latter opengl

What do you call OpenGL surface? You want an EGLSurface?
libva-egl is not up-to-date yet wrt. VA/EGL API. People reported they
wanted a means to map individual planes as textures. This will be
exposed. The proper interface is still being tested/developed though.

Regards,
Gwenole.


More information about the Libva mailing list