summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjia lin <lin.a.jia@intel.com>2019-03-04 07:01:31 +0000
committerXinfengZhang <carl.zhang@intel.com>2019-05-08 17:16:49 +0800
commitb2e1965026c17066733ddd097be915308e1079f8 (patch)
tree79b7acee72b9cd0ef949cb648a38544e0a2f7bcd
parent93c52a17b8d2fdd22e92734caba0d462aef3bf55 (diff)
downloadlibva-b2e1965026c17066733ddd097be915308e1079f8.tar.gz
Add newformat foucc defination2.5.0.pre2
Add Y8/Y16/VYUY/YVYU/ARGB64/ABGR64 foucc defination
-rw-r--r--va/va.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/va/va.h b/va/va.h
index 342ac8a..a7f1916 100644
--- a/va/va.h
+++ b/va/va.h
@@ -3925,6 +3925,36 @@ VAStatus vaQuerySurfaceError(
* 10-bit Pixel RGB formats.
*/
#define VA_FOURCC_A2R10G10B10 0x30335241 /* VA_FOURCC('A','R','3','0') */
+/** Y8: 8-bit greyscale.
+ *
+ * Only a single sample, 8 bit Y plane for monochrome images
+ */
+#define VA_FOURCC_Y8 0x20203859
+/** Y16: 16-bit greyscale.
+ *
+ * Only a single sample, 16 bit Y plane for monochrome images
+ */
+#define VA_FOURCC_Y16 0x20363159
+/** VYUV: packed 8-bit YUV 4:2:2.
+ *
+ * Four bytes per pair of pixels: V, Y, U, V.
+ */
+#define VA_FOURCC_VYUY 0x59555956
+/** YVYU: packed 8-bit YUV 4:2:2.
+ *
+ * Four bytes per pair of pixels: Y, V, Y, U.
+ */
+#define VA_FOURCC_YVYU 0x55595659
+/** AGRB64: three-plane 16-bit ARGB 16:16:16:16
+ *
+ * The four planes contain: alpha, red, green, blue respectively.
+ */
+#define VA_FOURCC_ARGB64 0x34475241
+/** ABGR64: three-plane 16-bit ABGR 16:16:16:16
+ *
+ * The four planes contain: alpha, blue, green, red respectively.
+ */
+#define VA_FOURCC_ABGR64 0x34474241
/* byte order */
#define VA_LSB_FIRST 1