v4l2: object: Fix support for format:Interlaced in caps probe
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 15 Aug 2024 20:01:03 +0000 (16:01 -0400)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Tue, 24 Sep 2024 20:19:12 +0000 (20:19 +0000)
commitd66594b326b08d89278ffef7973df2ea143af968
tree3d047e0bf76f3f0061cf6510eb47216bea814f84
parent44c74e8b3ad93e9c71974743a6bc2a4b1e48c17a
v4l2: object: Fix support for format:Interlaced in caps probe

This notably follow the way we order the template and keeps the
format:Interlaced caps at the end. This change also fixes
an early skip check, that would skip if a driver only supports
alternate interlacing for a specific format. It also fixes
a bug where only the last resolution of a discrete frame size
was allowed to use format:Interlaced. Finally, similar to template
caps code, simplify the caps for earch featurs, making the debug output
manageable and (marginally) improve negotiation speed.

This change will make it easier to introduce memory:DMABuf.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7563>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c