msdk: map MFX_FOURCC_Y410 to VA_FOURCC_Y410

This commit is contained in:
Haihao Xiang 2019-05-31 15:26:50 +08:00 committed by Víctor Manuel Jáquez Leal
parent 365f6cf0c8
commit bc3a43bdb4
2 changed files with 3 additions and 0 deletions

View file

@ -106,6 +106,8 @@ gst_msdk_frame_alloc (mfxHDL pthis, mfxFrameAllocRequest * req,
#if ((MFX_VERSION >= 1027) && VA_CHECK_VERSION(1, 2, 0))
if (format == VA_RT_FORMAT_YUV422 && va_fourcc == VA_FOURCC_Y210)
format = VA_RT_FORMAT_YUV422_10;
else if (format == VA_RT_FORMAT_YUV444 && va_fourcc == VA_FOURCC_Y410)
format = VA_RT_FORMAT_YUV444_10;
#endif
va_status = vaCreateSurfaces (gst_msdk_context_get_handle (context),

View file

@ -71,6 +71,7 @@ static const struct fourcc_map gst_msdk_fourcc_mfx_to_va[] = {
#endif
#if ((MFX_VERSION >= 1027) && VA_CHECK_VERSION(1, 2, 0))
FOURCC_MFX_TO_VA (Y210, Y210),
FOURCC_MFX_TO_VA (Y410, Y410),
#endif
{0, 0}
};