codecs: h264decoder: Add more option arguments for reference picture getter
authorSeungha Yang <seungha@centricular.com>
Tue, 17 Nov 2020 09:39:56 +0000 (18:39 +0900)
committerSeungha Yang <seungha@centricular.com>
Tue, 17 Nov 2020 10:44:04 +0000 (19:44 +0900)
commit88ebe8031a50afc47604b36e9f7c472e78f0cc72
treeef8d1f4db929e2cad3a607b3fef392b287a2b1b8
parente1adc572a756ae642e0e35a979904ae9a528c0f0
codecs: h264decoder: Add more option arguments for reference picture getter

In case that "pic_order_cnt_type" is equal to zero, ref picture
list for B slice should not include non-existing picture
as per spec 8.2.4.2.3. And, the second field is not needed
for the process of frame picture reference list construction
since it needs to be frame unit, not field picture in that case.

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