diff options
author | He Junyan <junyan.he@intel.com> | 2021-06-16 16:43:40 +0800 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-06-16 14:12:59 +0000 |
commit | 0849583210f0454600e1fec12809dfb164b425a4 (patch) | |
tree | d8f1e20d8f3e681ab18f4055722234311207daae /sys | |
parent | 1b4c9eaebb335c6a64f549133f4192b1a7717076 (diff) | |
download | gstreamer-plugins-bad-0849583210f0454600e1fec12809dfb164b425a4.tar.gz |
va: Add 12 bits rt_format setting in H265.
In order to support 12 bits format decoding, we need to add the
support for 12 bits rt_format in H265.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2332>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/va/gstvah265dec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/va/gstvah265dec.c b/sys/va/gstvah265dec.c index 1e60e6b5d..32ddde16a 100644 --- a/sys/va/gstvah265dec.c +++ b/sys/va/gstvah265dec.c @@ -865,6 +865,14 @@ _get_rtformat (GstVaH265Dec * self, guint8 bit_depth_luma, guint8 chroma_format_idc) { switch (bit_depth_luma) { + case 12: + if (chroma_format_idc == 3) + return VA_RT_FORMAT_YUV444_12; + if (chroma_format_idc == 2) + return VA_RT_FORMAT_YUV422_12; + else + return VA_RT_FORMAT_YUV420_12; + break; case 10: if (chroma_format_idc == 3) return VA_RT_FORMAT_YUV444_10; |