From 62e6b48dcd1c3b91123c196c3fe5a1477621593b Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Mon, 20 Jan 2020 15:41:59 +0800 Subject: [PATCH 1/4] vo_xv: Support NV12 Change-Id: If9c0d94de98f3f9b0b5af046140f4f69dc475335 Signed-off-by: Jeffy Chen --- video/out/vo_xv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c index e75a653d65..f37a8d1228 100644 --- a/video/out/vo_xv.c +++ b/video/out/vo_xv.c @@ -100,6 +100,7 @@ struct xvctx { #define MP_FOURCC_I420 MP_FOURCC('I', '4', '2', '0') #define MP_FOURCC_IYUV MP_FOURCC('I', 'Y', 'U', 'V') #define MP_FOURCC_UYVY MP_FOURCC('U', 'Y', 'V', 'Y') +#define MP_FOURCC_NV12 MP_FOURCC('N', 'V', '1', '2') struct fmt_entry { int imgfmt; @@ -109,6 +110,7 @@ static const struct fmt_entry fmt_table[] = { {IMGFMT_420P, MP_FOURCC_YV12}, {IMGFMT_420P, MP_FOURCC_I420}, {IMGFMT_UYVY, MP_FOURCC_UYVY}, + {IMGFMT_NV12, MP_FOURCC_NV12}, {0} }; -- 2.17.1