[Libva] Render to texture
jonathan.bian at intel.com
Wed Mar 17 07:28:57 PDT 2010
Gwenole has proposed a few new APIs to support rendering a decoded surface into a GL texture. See the attached header file as well as the following sample code from Gwenole, and your comments are welcome.
va_dpy = vaGetDisplayGLX();
<setup a BGRA texture for example>
vaCreateSurfaceGLX(va_dpy, GL_TEXTURE_2D, gl_texture, &gl_surface);
vaCreateSurface(va_dpy, 1, &va_surface);
vaBeginPicture(va_dpy, va_context, va_surface);
vaCopySurfaceGLX(va_dpy, gl_surface, va_surface, flags);
From: Zou, Nanhai
Sent: Wednesday, March 17, 2010 1:34 AM
To: Bian, Jonathan
Cc: libva at lists.freedesktop.org
Subject: Render to texture
As we have discussed, people are interested to let libva be able to render to texture object.
Form our driver level, it is pretty easy for our driver to render to a pixmap.
However pixmap is X related concept. From the libva level, it is better to have an ID to represent some kind of texture object. How would you propose the "render to texture" API?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Libva