Commit a3f8faa6 authored by Haihao Xiang's avatar Haihao Xiang Committed by Víctor Manuel Jáquez Leal

msdk: set right BitDepth and Shift for Y210 mfx frame

BitDepth is 10 and Shitf must be set to 1 when creating Y210 mfx
frame in MSDK
parent 32fce730
...@@ -282,10 +282,19 @@ gst_msdk_set_mfx_frame_info_from_video_info (mfxFrameInfo * mfx_info, ...@@ -282,10 +282,19 @@ gst_msdk_set_mfx_frame_info_from_video_info (mfxFrameInfo * mfx_info,
mfx_info->ChromaFormat = mfx_info->ChromaFormat =
gst_msdk_get_mfx_chroma_from_format (GST_VIDEO_INFO_FORMAT (info)); gst_msdk_get_mfx_chroma_from_format (GST_VIDEO_INFO_FORMAT (info));
if (mfx_info->FourCC == MFX_FOURCC_P010) { switch (mfx_info->FourCC) {
mfx_info->BitDepthLuma = 10; case MFX_FOURCC_P010:
mfx_info->BitDepthChroma = 10; #if (MFX_VERSION >= 1027)
mfx_info->Shift = 1; case MFX_FOURCC_Y210:
#endif
mfx_info->BitDepthLuma = 10;
mfx_info->BitDepthChroma = 10;
mfx_info->Shift = 1;
break;
default:
break;
} }
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment