From: Xiang, Haihao Date: Fri, 16 Nov 2018 12:01:52 +0000 (+0800) Subject: msdk: adjust the RT format for P010 surface X-Git-Tag: 1.16.2~465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27ab7fb40fecc984f4f6242f8bcea1d13e93093d;p=platform%2Fupstream%2Fgst-plugins-bad.git msdk: adjust the RT format for P010 surface According to VA API, VA_RT_FORMAT_YUV420_10 is expected for P010 surface --- diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index caa9551..74be0df 100644 --- a/sys/msdk/gstmsdkallocator_libva.c +++ b/sys/msdk/gstmsdkallocator_libva.c @@ -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);