From: Haihao Xiang Date: Thu, 12 Mar 2020 05:21:02 +0000 (+0800) Subject: msdk: map Y412_LE to VA_FOURCC_Y416 X-Git-Tag: 1.19.3~507^2~2092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d756c07b0ab8364156e6efd83c01ee93028ec5d;p=platform%2Fupstream%2Fgstreamer.git msdk: map Y412_LE to VA_FOURCC_Y416 In media driver, VA_FOURCC_Y416 is used for packed 12 bits 4:4:4:4 YUV format, the corresponding RT format is VA_RT_FORMAT_YUV442_12 --- diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index 23f090b..90d8c36 100644 --- a/sys/msdk/gstmsdkallocator_libva.c +++ b/sys/msdk/gstmsdkallocator_libva.c @@ -601,6 +601,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context, va_chroma = VA_RT_FORMAT_YUV422_12; va_fourcc = VA_FOURCC_Y216; break; + case GST_VIDEO_FORMAT_Y412_LE: + va_chroma = VA_RT_FORMAT_YUV444_12; + va_fourcc = VA_FOURCC_Y416; + break; #endif default: goto error_unsupported_format;