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
This commit is contained in:
Haihao Xiang 2020-03-12 13:21:02 +08:00
parent 55ed9458b5
commit 4d756c07b0

View file

@ -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;