msdk: map GST_VIDEO_FORMAT_BGR10A2_LE to VA_FOURCC_A2R10G10B10

This commit is contained in:
Haihao Xiang 2019-03-21 15:29:15 +08:00 committed by Víctor Manuel Jáquez Leal
parent 53fd4a1564
commit 95fdc2e984

View file

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