v4l2object: Add function to get crop regions from device
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 13 Oct 2021 08:33:12 +0000 (17:33 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Mar 2022 15:02:08 +0000 (15:02 +0000)
commitceff3e8ff7a47dad552a020d7c3fd295c74ad194
tree8771b7816c48dc4c1eac940ad39c5087ab0dfb7f
parent25f240993c4aff7f97c377bb14fe904a3539ce61
v4l2object: Add function to get crop regions from device

Get the current crop bounding region from the V4L2 device so
that it can be provided to applications and used to validate
crop settings. Also make the default crop region available so
that it can be used to reset the crop when appropriate.

Uses the selection API when available with fallback to the crop
API for older kernels.

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