msdk: map MFX_FOURCC_A2RGB10 to VA_FOURCC_A2R10G10B10

This commit is contained in:
Haihao Xiang 2019-03-21 15:34:36 +08:00 committed by Víctor Manuel Jáquez Leal
parent 95fdc2e984
commit c40ecbe7f5
2 changed files with 4 additions and 0 deletions

View file

@ -98,6 +98,9 @@ gst_msdk_frame_alloc (mfxHDL pthis, mfxFrameAllocRequest * req,
if (format == VA_RT_FORMAT_YUV420 && va_fourcc == VA_FOURCC_P010)
format = VA_RT_FORMAT_YUV420_10;
if (format == VA_RT_FORMAT_YUV444 && va_fourcc == VA_FOURCC_A2R10G10B10)
format = VA_RT_FORMAT_RGB32_10;
va_status = vaCreateSurfaces (gst_msdk_context_get_handle (context),
format,
req->Info.Width, req->Info.Height, surfaces, surfaces_num, &attrib, 1);

View file

@ -66,6 +66,7 @@ static const struct fourcc_map gst_msdk_fourcc_mfx_to_va[] = {
FOURCC_MFX_TO_VA (RGB565, RGB565),
#endif
FOURCC_MFX_TO_VA (AYUV, AYUV),
FOURCC_MFX_TO_VA (A2RGB10, A2R10G10B10),
{0, 0}
};