v4l2src: fix support for bayer format
authorDaniel Morin <daniel.morin@collabora.com>
Thu, 20 Apr 2023 21:31:32 +0000 (17:31 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Jun 2023 09:42:24 +0000 (09:42 +0000)
commit97ca841601a96574f6beab59a0f400640166abfc
tree04364f0e938d0f052742fe1e6ac94be2dd4cc5fc
parent5e73738a3507abef8e4290a62031fe25b0bd5b32
v4l2src: fix support for bayer format

- Define a new function that identify if the v4l2object is raw based
on pixel format
- Only consider setting delta flag on buffer if the video is not raw.

Sponsored by Living Optics Ltd.

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