omxvideodec: support interlace-mode=interleaved input
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 5 Oct 2020 10:32:10 +0000 (12:32 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 5 Oct 2020 10:38:18 +0000 (12:38 +0200)
commit9192ad0eeb445bee8dff3989217639f495b35c3a
treef0c5042ae34c1dddf03220d8e0389e33944295e3
parent47c7814ee1eba3b60f0cd7c9f539c833e8b4cfbc
omxvideodec: support interlace-mode=interleaved input

interlace-mode=alternate is a special case of interlace-mode=interleaved
where the fields are split using two different buffers.

The Zynq decoder always produces alternate content and we
used to assume that upstream will set interlace-mode=alternate in its
caps as well.
This is no longer the case as h265parse is now setting
alternate-mode=interleaved on alternate content to not break compat with
elements not supporting alternate.
As a result the decoder now accept both 'interleaved' and 'alternate' on
its input and ensures that its ouput has interlace-mode=alternate.

Needed to fix https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/825

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-omx/-/merge_requests/72>
omx/gstomxvideodec.c