[Libva] [PATCH] Add R8G8B8A8 and A8Y8U8V8 RT format definition for video process.

Bian, Jonathan jonathan.bian at intel.com
Fri Aug 24 16:48:31 PDT 2012


Xiaowei,

RT format is meant to convey sampling ratios of the components, and VASurfaceAttribPixelFormat is used to indicate pixel formats supported by the implementation or preferred by the application. In the case of A8Y8U8V8 and R8G8B8A8, these are considered pixel formats (which are defined as fourcc codes) and not RT formats. We do need to add a couple of RT formats for RGB such as:

#define VA_RT_FORMAT_RGB32 0x00010000
#define VA_RT_FORMAT_RGB16 0x00020000

Regards,
Jonathan

-----Original Message-----
From: libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org [mailto:libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org] On Behalf Of Li,Xiaowei
Sent: Thursday, August 23, 2012 2:30 AM
To: libva at lists.freedesktop.org
Subject: [Libva] [PATCH] Add R8G8B8A8 and A8Y8U8V8 RT format definition for video process.

From: "Li,Xiaowei" <xiaowei.a.li at intel.com>

signed-off-by Li,Xiaowei <xiaowei.a.li at intel.com>
---
 va/va.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/va/va.h b/va/va.h
index 1b9919c..ad890b9 100644
--- a/va/va.h
+++ b/va/va.h
@@ -406,6 +406,8 @@ typedef struct _VAConfigAttrib {
 #define VA_RT_FORMAT_YUV420	0x00000001	
 #define VA_RT_FORMAT_YUV422	0x00000002
 #define VA_RT_FORMAT_YUV444	0x00000004
+#define VA_RT_FORMAT_A8Y8U8V8	0x00000008
+#define VA_RT_FORMAT_R8G8B8A8	0x00000010
 #define VA_RT_FORMAT_PROTECTED	0x80000000
 
 /** @name Attribute values for VAConfigAttribRateControl */
-- 
1.7.12-rc1

_______________________________________________
Libva mailing list
Libva at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


More information about the Libva mailing list