Lines Matching +full:ref +full:- +full:pad
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_SUBDEV_G_CROP - VIDIOC_SUBDEV_S_CROP - Get or set the crop rectangle on a subdev pad
40 This is an :ref:`obsolete` interface and may be removed in the future. It is
41 superseded by :ref:`the selection API <VIDIOC_SUBDEV_G_SELECTION>`. No new
44 To retrieve the current crop rectangle applications set the ``pad``
46 desired pad number as reported by the media API and the ``which`` field
51 on the given pad.
53 To change the current crop rectangle applications set both the ``pad``
65 crop rectangles and stored in the sub-device file handle. Two
66 applications querying the same sub-device would thus not interact with
69 If the subdev device node has been registered in read-only mode, calls to
72 variable is set to ``-EPERM``.
83 .. flat-table:: struct v4l2_subdev_crop
84 :header-rows: 0
85 :stub-columns: 0
88 * - __u32
89 - ``pad``
90 - Pad number as reported by the media framework.
91 * - __u32
92 - ``which``
93 - Crop rectangle to get or set, from enum
94 :ref:`v4l2_subdev_format_whence <v4l2-subdev-format-whence>`.
95 * - struct :c:type:`v4l2_rect`
96 - ``rect``
97 - Crop rectangle boundaries, in pixels.
98 * - __u32
99 - ``stream``
100 - Stream identifier.
101 * - __u32
102 - ``reserved``\ [7]
103 - Reserved for future extensions. Applications and drivers must set
109 On success 0 is returned, on error -1 and the ``errno`` variable is set
111 :ref:`Generic Error Codes <gen-errors>` chapter.
114 The crop rectangle can't be changed because the pad is currently
116 the pad. The ioctl must not be retried without performing another
121 The struct :c:type:`v4l2_subdev_crop` ``pad`` references a non-existing pad,
123 on the given subdev pad.
126 The ``VIDIOC_SUBDEV_S_CROP`` ioctl has been called on a read-only subdevice