summaryrefslogtreecommitdiff
path: root/hw/xfree86/common
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2018-09-06 15:38:13 -0700
committerAdam Jackson <ajax@redhat.com>2018-09-11 15:54:57 -0400
commitf98ff253c722da3f5ad747e6813752f9e74c54b5 (patch)
tree8795d1dde9183b3997c398e2bd15e265442dfc0a /hw/xfree86/common
parentfc855216028e6a34b667c11e198aea405fb4bc00 (diff)
xfree86: define FOURCC_NV12 and XVIMAGE_NV12
Useful for glamor. Signed-off-by: Julien Isorce <jisorce@oblong.com> Tested-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'hw/xfree86/common')
-rw-r--r--hw/xfree86/common/fourcc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hw/xfree86/common/fourcc.h b/hw/xfree86/common/fourcc.h
index e6126b7fe..a19e6869e 100644
--- a/hw/xfree86/common/fourcc.h
+++ b/hw/xfree86/common/fourcc.h
@@ -156,4 +156,24 @@
XvTopToBottom \
}
+#define FOURCC_NV12 0x3231564e
+#define XVIMAGE_NV12 \
+ { \
+ FOURCC_NV12, \
+ XvYUV, \
+ LSBFirst, \
+ {'N','V','1','2', \
+ 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
+ 12, \
+ XvPlanar, \
+ 2, \
+ 0, 0, 0, 0, \
+ 8, 8, 8, \
+ 1, 2, 2, \
+ 1, 2, 2, \
+ {'Y','U','V', \
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
+ XvTopToBottom \
+ }
+
#endif /* _XF86_FOURCC_H_ */