msdkh265enc: add support 12-bit 420 encoding
authorHaihao Xiang <haihao.xiang@intel.com>
Wed, 8 Apr 2020 06:40:56 +0000 (14:40 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Mon, 1 Jun 2020 05:04:30 +0000 (05:04 +0000)
commitf685893ed2181ea3b074950ca0ac9625cc3f7598
tree2e31eaeddf222330a38e8e89e7a03348369c5126
parent52be289847f0ae744d70506c4883288b9a6a33c3
msdkh265enc: add support 12-bit 420 encoding

P016 is used for 12-bit encoding in MediaSDK, so the Shift flag is set
in the mfx parameters

Sample pipeline:
gst-launch-1.0 videotestsrc ! video/x-raw,format=P012_LE ! msdkh265enc ! \
fakesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1174>
sys/msdk/gstmsdkenc.c
sys/msdk/gstmsdkh265enc.c