From ba24af0490206e4e1e2910a53bb41664c6a09ed2 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Mon, 3 Jun 2019 14:05:07 +0800 Subject: [PATCH] msdk: set right BitDepth and Shift for Y410 mfx frame BitDepth is 10 and Shitf must be set to 0 when creating Y410 mfx frame in MSDK --- sys/msdk/msdk.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/msdk/msdk.c b/sys/msdk/msdk.c index bdbc75f..de186a6 100644 --- a/sys/msdk/msdk.c +++ b/sys/msdk/msdk.c @@ -294,6 +294,15 @@ gst_msdk_set_mfx_frame_info_from_video_info (mfxFrameInfo * mfx_info, break; +#if (MFX_VERSION >= 1027) + case MFX_FOURCC_Y410: + mfx_info->BitDepthLuma = 10; + mfx_info->BitDepthChroma = 10; + mfx_info->Shift = 0; + + break; +#endif + default: break; } -- 2.7.4