[Libva] [PATCH Libva-intel-driver 2/4] Export the surface attribute based on YV16 for VPP on Gen7+

Zhao Yakui yakui.zhao at intel.com
Fri Mar 14 00:21:23 PDT 2014


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



More information about the Libva mailing list