xref: /OK3568_Linux_fs/debian/packages-patches/mpv/0.29.1/0001-vo_xv-Support-NV12.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 62e6b48dcd1c3b91123c196c3fe5a1477621593b Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Mon, 20 Jan 2020 15:41:59 +0800
4Subject: [PATCH 1/4] vo_xv: Support NV12
5
6Change-Id: If9c0d94de98f3f9b0b5af046140f4f69dc475335
7Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
8---
9 video/out/vo_xv.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c
13index e75a653d65..f37a8d1228 100644
14--- a/video/out/vo_xv.c
15+++ b/video/out/vo_xv.c
16@@ -100,6 +100,7 @@ struct xvctx {
17 #define MP_FOURCC_I420  MP_FOURCC('I', '4', '2', '0')
18 #define MP_FOURCC_IYUV  MP_FOURCC('I', 'Y', 'U', 'V')
19 #define MP_FOURCC_UYVY  MP_FOURCC('U', 'Y', 'V', 'Y')
20+#define MP_FOURCC_NV12  MP_FOURCC('N', 'V', '1', '2')
21
22 struct fmt_entry {
23     int imgfmt;
24@@ -109,6 +110,7 @@ static const struct fmt_entry fmt_table[] = {
25     {IMGFMT_420P,       MP_FOURCC_YV12},
26     {IMGFMT_420P,       MP_FOURCC_I420},
27     {IMGFMT_UYVY,       MP_FOURCC_UYVY},
28+    {IMGFMT_NV12,       MP_FOURCC_NV12},
29     {0}
30 };
31
32--
332.17.1
34
35