v4l2src: Add support for cropping at capture source input
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 14 Oct 2021 08:22:19 +0000 (17:22 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Mar 2022 15:02:08 +0000 (15:02 +0000)
commit70086fda22d9e90befdb12f65ef382f1806f7ae1
treed52bd0b48af041848626cb2181018b3482540011
parentceff3e8ff7a47dad552a020d7c3fd295c74ad194
v4l2src: Add support for cropping at capture source input

Add properties to control input cropping in the V4L2 device.
The input cropping is applied before composing the result to the
capture buffer.  By default the capture size will be set to the same
size as the crop region, but it can be scaled to a different output
frame size if supported by the V4L2 device.
If scaling is not supported, the cropped image will
be composed as is into the top-left corner of the capture buffer.

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