h264parse: Include coded-picture-structure info in caps
authorVivia Nikolaidou <vivia@ahiru.eu>
Thu, 14 Apr 2022 10:22:03 +0000 (13:22 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Apr 2022 11:00:29 +0000 (11:00 +0000)
commitcb8da91f7a588262d91371b78a22645cdf6ff1aa
tree24de17e35d2099b2fdc1c5b5d90d1a473ea64d10
parent7933fff83cff711330402252b69a6a934fe6c67c
h264parse: Include coded-picture-structure info in caps

This reverts commit 652773de366a98e155332bf8ffb83ee5e6bea9e5 and
modifies it to rename the caps field name to coded-picture-structure.

It was previously removed because it confuses the decoder and we didn't
have a valid use case for including it in the encoded caps at this
stage. We now do have such a use case but still don't want to confuse
the decoder, so the field is renamed.

However, it is still not accurate without looking at the SEI picture
structure of each frame, so it was named coded-picture-structure. If its
value is "frame" it is most likely progressive, if it's "field" it is
most likely interlaced or mixed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2177>
subprojects/gst-integration-testsuites/medias
subprojects/gst-integration-testsuites/testsuites/validate/h264/parse.trickmode_predicted.seek_trickmode_predicted/flow-expectations/log-parse-src-expected
subprojects/gst-integration-testsuites/testsuites/validate/mp4/qtdemux_reverse_playback_full_gop.reverse_playback_full_gop/flow-expectations/log-parse-src-expected
subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c