diff options
Diffstat (limited to 'recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch')
-rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch new file mode 100644 index 00000000..e0958558 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 3a6fe85a5f123f53319b5be8a69666174cad09cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Julien Isorce <julien.isorce@gmail.com> | ||
3 | Date: Thu, 6 Sep 2018 15:38:13 -0700 | ||
4 | Subject: [PATCH 1/8] xfree86: define FOURCC_NV12 and XVIMAGE_NV12 | ||
5 | |||
6 | Useful for glamor. | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Signed-off-by: Julien Isorce <jisorce@oblong.com> | ||
10 | Tested-by: Olivier Fourdan <ofourdan@redhat.com> | ||
11 | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> | ||
12 | --- | ||
13 | hw/xfree86/common/fourcc.h | 20 ++++++++++++++++++++ | ||
14 | 1 file changed, 20 insertions(+) | ||
15 | |||
16 | diff --git a/hw/xfree86/common/fourcc.h b/hw/xfree86/common/fourcc.h | ||
17 | index e6126b7fe..a19e6869e 100644 | ||
18 | --- a/hw/xfree86/common/fourcc.h | ||
19 | +++ b/hw/xfree86/common/fourcc.h | ||
20 | @@ -156,4 +156,24 @@ | ||
21 | XvTopToBottom \ | ||
22 | } | ||
23 | |||
24 | +#define FOURCC_NV12 0x3231564e | ||
25 | +#define XVIMAGE_NV12 \ | ||
26 | + { \ | ||
27 | + FOURCC_NV12, \ | ||
28 | + XvYUV, \ | ||
29 | + LSBFirst, \ | ||
30 | + {'N','V','1','2', \ | ||
31 | + 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \ | ||
32 | + 12, \ | ||
33 | + XvPlanar, \ | ||
34 | + 2, \ | ||
35 | + 0, 0, 0, 0, \ | ||
36 | + 8, 8, 8, \ | ||
37 | + 1, 2, 2, \ | ||
38 | + 1, 2, 2, \ | ||
39 | + {'Y','U','V', \ | ||
40 | + 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}, \ | ||
41 | + XvTopToBottom \ | ||
42 | + } | ||
43 | + | ||
44 | #endif /* _XF86_FOURCC_H_ */ | ||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||