msdk: map GST_VIDEO_FORMAT_RGB16 to VA_FOURCC_RGB565

This commit is contained in:
Haihao Xiang 2019-02-25 12:29:25 +08:00 committed by Víctor Manuel Jáquez Leal
parent 197f7f569b
commit a09cff84ce

View file

@ -448,6 +448,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_chroma = VA_RT_FORMAT_YUV422; va_chroma = VA_RT_FORMAT_YUV422;
va_fourcc = VA_FOURCC_UYVY; va_fourcc = VA_FOURCC_UYVY;
break; break;
case GST_VIDEO_FORMAT_RGB16:
va_chroma = VA_RT_FORMAT_RGB16;
va_fourcc = VA_FOURCC_RGB565;
break;
default: default:
goto error_unsupported_format; goto error_unsupported_format;
} }