projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda4918
)
msdk: set right BitDepth and Shift for P010 mfx frame
author
Xiang, Haihao
<haihao.xiang@intel.com>
Mon, 19 Nov 2018 14:24:33 +0000
(22:24 +0800)
committer
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Mon, 26 Nov 2018 16:47:17 +0000
(16:47 +0000)
BitDepth is 10 and Shitf must be set to 1 when creating P010 mfx
frame in MSDK
sys/msdk/msdk.c
patch
|
blob
|
history
diff --git
a/sys/msdk/msdk.c
b/sys/msdk/msdk.c
index
28ba199
..
0be07cb
100644
(file)
--- a/
sys/msdk/msdk.c
+++ b/
sys/msdk/msdk.c
@@
-274,6
+274,12
@@
gst_msdk_set_mfx_frame_info_from_video_info (mfxFrameInfo * mfx_info,
mfx_info->ChromaFormat =
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;
}