diff options
author | Julien Isorce <[email protected]> | 2015-10-30 11:42:46 +0000 |
---|---|---|
committer | Christian König <[email protected]> | 2015-10-30 13:19:54 +0100 |
commit | adf11331186b1e63ed3cadbcea102ecdd18627e3 (patch) | |
tree | bf1e60d665eb60bd2c0db87d7d5f63f4691fd887 /src/gallium/state_trackers/va/picture.c | |
parent | d42029d2d9bc6b65ccf847dc9ba2e70b496d0299 (diff) |
st/va: implement VaCreateSurfaces2 and VaQuerySurfaceAttributes
Inspired from http://cgit.freedesktop.org/vaapi/intel-driver/
especially src/i965_drv_video.c::i965_CreateSurfaces2.
This patch is mainly to support gstreamer-vaapi and tools that uses
this newer libva API. The first advantage of using VaCreateSurfaces2
over existing VaCreateSurfaces, is that it is possible to select which
the pixel format for the surface. Indeed with the simple VaCreateSurfaces
function it is only possible to create a NV12 surface. It can be useful
to create a RGBA surface to use with video post processing.
The avaible pixel formats can be query with VaQuerySurfaceAttributes.
Signed-off-by: Julien Isorce <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/picture.c')
0 files changed, 0 insertions, 0 deletions