[Libva] [PATCH Libva-intel-driver 2/4] Export the surface attribute based on YV16 for VPP on Gen7+
Yuan, Feng
feng.yuan at intel.com
Mon Mar 17 00:49:25 PDT 2014
Reviewed-by: Wind Yuan <feng.yuan at intel.com>
Tested-by: Wind Yuan <feng.yuan at intel.com>
>-----Original Message-----
>From: libva-bounces at lists.freedesktop.org
>[mailto:libva-bounces at lists.freedesktop.org] On Behalf Of Zhao Yakui
>Sent: Friday, March 14, 2014 3:21 PM
>To: libva at lists.freedesktop.org
>Subject: [Libva] [PATCH Libva-intel-driver 2/4] Export the surface attribute
>based on YV16 for VPP on Gen7+
>
>Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
>---
> src/i965_drv_video.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
>diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index
>f306d91..14a0926 100755
>--- a/src/i965_drv_video.c
>+++ b/src/i965_drv_video.c
>@@ -4691,6 +4691,12 @@ i965_QuerySurfaceAttributes(VADriverContextP
>ctx,
> attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE |
>VA_SURFACE_ATTRIB_SETTABLE;
> attribs[i].value.value.i = VA_FOURCC('R', 'G', 'B', 'X');
> i++;
>+
>+ attribs[i].type = VASurfaceAttribPixelFormat;
>+ attribs[i].value.type = VAGenericValueTypeInteger;
>+ attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE |
>VA_SURFACE_ATTRIB_SETTABLE;
>+ attribs[i].value.value.i = VA_FOURCC('Y', 'V', '1', '6');
>+ i++;
> }
> }
> } else if (IS_GEN8(i965->intel.device_id)) { @@ -4801,6 +4807,12 @@
>i965_QuerySurfaceAttributes(VADriverContextP ctx,
> attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE |
>VA_SURFACE_ATTRIB_SETTABLE;
> attribs[i].value.value.i = VA_FOURCC('B', 'G', 'R', 'X');
> i++;
>+
>+ attribs[i].type = VASurfaceAttribPixelFormat;
>+ attribs[i].value.type = VAGenericValueTypeInteger;
>+ attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE |
>VA_SURFACE_ATTRIB_SETTABLE;
>+ attribs[i].value.value.i = VA_FOURCC('Y', 'V', '1', '6');
>+ i++;
> }
> }
> }
>--
>1.8.2-rc2
>
>_______________________________________________
>Libva mailing list
>Libva at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/libva
More information about the Libva
mailing list