From cd8696d2b2cd8957a78cfad4570a40f5d177ac51 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Fri, 8 Mar 2019 12:26:37 +0800 Subject: [PATCH] msdk: map GST_VIDEO_FORMAT_VUYA to VA_FOURCC_AYUV --- sys/msdk/gstmsdkallocator_libva.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index 848de68..02fcf51 100644 --- a/sys/msdk/gstmsdkallocator_libva.c +++ b/sys/msdk/gstmsdkallocator_libva.c @@ -462,6 +462,11 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context, va_fourcc = VA_FOURCC_RGB565; break; #endif + case GST_VIDEO_FORMAT_VUYA: + va_chroma = VA_RT_FORMAT_YUV444; + va_fourcc = VA_FOURCC_AYUV; + break; + default: goto error_unsupported_format; } -- 2.7.4