codecs: h264dec: Add a flag to record whether picture is reference.
authorHe Junyan <junyan.he@intel.com>
Tue, 20 Jul 2021 15:36:38 +0000 (23:36 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Jul 2021 15:23:17 +0000 (15:23 +0000)
commitbe223ad316bbd044dd9e3ea51e33b53edcd00b2b
treee8d8cf1e5f369e83bc2de623dd6fc06d6a3c1ca8
parentb4e388744944b851872b4e8f5338ef8d3e72cd7d
codecs: h264dec: Add a flag to record whether picture is reference.

The picture->ref field will change from time to time according to decoder's
state and reference sliding window. We need another flag to record whether
the picture is a reference picture when it is created, and this can help
the bumping check.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2373>
gst-libs/gst/codecs/gsth264decoder.c
gst-libs/gst/codecs/gsth264picture.c
gst-libs/gst/codecs/gsth264picture.h