[Libva] [PATCH] add RGBX/BGRX to supported image list

Zhao Halley halley.zhao at intel.com
Wed Aug 15 23:03:11 PDT 2012


---
 src/i965_drv_video.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index dbf4e44..dd2564e 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -124,6 +124,10 @@ i965_image_formats_map[I965_MAX_IMAGE_FORMATS + 1] = {
       { VA_FOURCC('Y','U','Y','2'), VA_LSB_FIRST, 16, } },
     { I965_SURFACETYPE_YUV,
       { VA_FOURCC('U','Y','V','Y'), VA_LSB_FIRST, 16, } },
+    { I965_SURFACETYPE_RGBA,
+      { VA_FOURCC('R','G','B','X'), VA_LSB_FIRST, 32, 24, 0x000000ff, 0x0000ff00, 0x00ff0000 } },
+    { I965_SURFACETYPE_RGBA,
+      { VA_FOURCC('B','G','R','X'), VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff } },
 };
 
 /* List of supported subpicture formats */
-- 
1.7.9.5



More information about the Libva mailing list