nvdecoder: Fix for HEVC 4:4:4 format decoding
authorSeungha Yang <seungha@centricular.com>
Mon, 31 Jan 2022 15:12:06 +0000 (00:12 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 7 Feb 2022 18:27:48 +0000 (18:27 +0000)
commit80bbc71ec03ac7f0523580f6d61e08c87f9a8cb0
treef5918627208c17d1ce8d87bc7c063ea25ab276b1
parent187dfce793eb75e98e2bae44b3b12b7ac8c8ace7
nvdecoder: Fix for HEVC 4:4:4 format decoding

Map chroma_format_idc == 3 (which means 4:4:4 subsampling) correctly,
also pass coded bitdepth for decoder initialization instead of
inferring it from output format since they can be different.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/949
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1612>
subprojects/gst-plugins-bad/sys/nvcodec/gstnvdecoder.c
subprojects/gst-plugins-bad/sys/nvcodec/gstnvdecoder.h
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.c
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265dec.c
subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp8dec.c
subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp9dec.c