mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
msdk: map MFX_FOURCC_A2RGB10 to VA_FOURCC_A2R10G10B10
This commit is contained in:
parent
95fdc2e984
commit
c40ecbe7f5
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue