v4l2codec: h264: Implement support for split fields
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 19 Aug 2021 15:40:22 +0000 (11:40 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 20 Aug 2021 19:29:53 +0000 (19:29 +0000)
commitad5dcfb0912a17d4f8a77c59750bcdfee399b175
tree4abde7800c2a4971891a7f277f6531f778fad903
parent0b05b9b3e68334d94cc47129aa0648e58482733e
v4l2codec: h264: Implement support for split fields

When a frame is composed of two fields, the base class now split the
picture in two. In order to support this, we need to ensure that picture
buffer is held in VB2 queue so that the second field get decoded into
it. This also implements the new_field_picture() virtual and sets the
previous request on the new picture.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2474>
sys/v4l2codecs/gstv4l2codech264dec.c