codecs: h265decocer: Rework for DPB management
authorSeungha Yang <seungha@centricular.com>
Sat, 31 Oct 2020 11:36:13 +0000 (20:36 +0900)
committerSeungha Yang <seungha@centricular.com>
Sun, 1 Nov 2020 12:46:12 +0000 (21:46 +0900)
commiteeffd91109a409063e866337452eedd392649775
tree10c3da52de2cbbb6155a7bf2e74909d72a126d4d
parent0bb73ec8007fa8bf47c3bdb23f732a0c80b11aa2
codecs: h265decocer: Rework for DPB management

* Move all DPB bumping process into GstH265Dpb internal
* Handle DPB add process in GstH265Dpb struct
* Make implementation to be 1:1 mappable with hevc specification
* Fix wrong DPB bumping implementation especially when no_output_of_prior_pics_flag
  was specified.

With fixes from Nicolas Dufresne <nicolas.dufresne@collabora.com>

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1748>
gst-libs/gst/codecs/gsth265decoder.c
gst-libs/gst/codecs/gsth265picture.c
gst-libs/gst/codecs/gsth265picture.h