From ac9423facb28b140fdd650e65d32b140db940ed8 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 2 Jan 2019 19:48:34 +0800 Subject: msdk: map GST_VIDEO_FORMAT_UYVY to VA_FOURCC_UYVY --- sys/msdk/gstmsdkallocator_libva.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index e5200a3fe..44fd578b7 100644 --- a/sys/msdk/gstmsdkallocator_libva.c +++ b/sys/msdk/gstmsdkallocator_libva.c @@ -427,6 +427,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context, va_chroma = VA_RT_FORMAT_YUV420_10; va_fourcc = VA_FOURCC_P010; break; + case GST_VIDEO_FORMAT_UYVY: + va_chroma = VA_RT_FORMAT_YUV422; + va_fourcc = VA_FOURCC_UYVY; + break; default: goto error_unsupported_format; } -- cgit v1.2.3