From 95fdc2e98466764d5494722a1a7004dec7b7f640 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Thu, 21 Mar 2019 15:29:15 +0800 Subject: [PATCH] msdk: map GST_VIDEO_FORMAT_BGR10A2_LE to VA_FOURCC_A2R10G10B10 --- sys/msdk/gstmsdkallocator_libva.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index 7208d93..994c1be 100644 --- a/sys/msdk/gstmsdkallocator_libva.c +++ b/sys/msdk/gstmsdkallocator_libva.c @@ -475,7 +475,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context, va_chroma = VA_RT_FORMAT_YUV444; va_fourcc = VA_FOURCC_AYUV; break; - + case GST_VIDEO_FORMAT_BGR10A2_LE: + va_chroma = VA_RT_FORMAT_RGB32_10; + va_fourcc = VA_FOURCC_A2R10G10B10; + break; default: goto error_unsupported_format; } -- 2.7.4