mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-02 09:51:11 +00:00
msdk: set right BitDepth and Shift for P010 mfx frame
BitDepth is 10 and Shitf must be set to 1 when creating P010 mfx frame in MSDK
This commit is contained in:
parent
fda4918cc8
commit
2b0923842a
1 changed files with 6 additions and 0 deletions
|
@ -274,6 +274,12 @@ 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) {
|
||||||
|
mfx_info->BitDepthLuma = 10;
|
||||||
|
mfx_info->BitDepthChroma = 10;
|
||||||
|
mfx_info->Shift = 1;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue