codecs: h264decoder: Store reference picture type using enum value
authorSeungha Yang <seungha@centricular.com>
Thu, 5 Nov 2020 16:45:36 +0000 (01:45 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 Nov 2020 15:25:42 +0000 (15:25 +0000)
commit7a53d7a4aa7b55880805a09a702c00f90e6d5610
treef3b6246d28f4a998084ee2adcd5e16cb6589f7cf
parent157210eb1949421f6f307d1d2f070b2380199d5d
codecs: h264decoder: Store reference picture type using enum value

Managing reference picture type by using two variables
(ref and long_term) seems to be redundant and that can be
represented by using a single enum value.

This is to sync this implementation with gstreamer-vaapi so that
make comparison between this and gstreamer-vaapi easier and also
in order to minimize the change required for subclass to be able
to support interlaced.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
gst-libs/gst/codecs/gsth264decoder.c
gst-libs/gst/codecs/gsth264picture.c
gst-libs/gst/codecs/gsth264picture.h
sys/d3d11/gstd3d11h264dec.c
sys/nvcodec/gstnvh264dec.c
sys/v4l2codecs/gstv4l2codech264dec.c
sys/va/gstvah264dec.c