mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
msdk: adjust the RT format for P010 surface
According to VA API, VA_RT_FORMAT_YUV420_10 is expected for P010 surface
This commit is contained in:
parent
eeb58f64c2
commit
27ab7fb40f
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ gst_msdk_frame_alloc (mfxHDL pthis, mfxFrameAllocRequest * req,
|
|||
format =
|
||||
gst_msdk_get_va_rt_format_from_mfx_rt_format (req->Info.ChromaFormat);
|
||||
|
||||
if (format == VA_RT_FORMAT_YUV420 && va_fourcc == VA_FOURCC_P010)
|
||||
format = VA_RT_FORMAT_YUV420_10;
|
||||
|
||||
va_status = vaCreateSurfaces (gst_msdk_context_get_handle (context),
|
||||
format,
|
||||
req->Info.Width, req->Info.Height, surfaces, surfaces_num, &attrib, 1);
|
||||
|
|
Loading…
Reference in a new issue