• Home
  • Raw
  • Download

Lines Matching +full:sub +full:- +full:frame

1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_SUBDEV_G_FMT - VIDIOC_SUBDEV_S_FMT - Get or set the data format on a subdev pad
38 These ioctls are used to negotiate the frame format at specific subdev
59 and stored in the sub-device file handle. Two applications querying the
60 same sub-device would thus not interact with each other.
62 For instance, to try a format at the output pad of a sub-device,
63 applications would first set the try format at the sub-device input with
70 current links configuration or sub-device controls value. For instance,
71 a low-pass noise filter might crop pixels at the frame boundaries,
72 modifying its output frame size.
74 If the subdev device node has been registered in read-only mode, calls to
77 variable is set to ``-EPERM``.
88 .. flat-table:: struct v4l2_subdev_format
89 :header-rows: 0
90 :stub-columns: 0
93 * - __u32
94 - ``pad``
95 - Pad number as reported by the media controller API.
96 * - __u32
97 - ``which``
98 - Format to modified, from enum
99 :ref:`v4l2_subdev_format_whence <v4l2-subdev-format-whence>`.
100 * - struct :c:type:`v4l2_mbus_framefmt`
101 - ``format``
102 - Definition of an image format, see :c:type:`v4l2_mbus_framefmt` for
104 * - __u32
105 - ``reserved``\ [8]
106 - Reserved for future extensions. Applications and drivers must set
112 .. _v4l2-subdev-format-whence:
114 .. flat-table:: enum v4l2_subdev_format_whence
115 :header-rows: 0
116 :stub-columns: 0
119 * - V4L2_SUBDEV_FORMAT_TRY
120 - 0
121 - Try formats, used for querying device capabilities.
122 * - V4L2_SUBDEV_FORMAT_ACTIVE
123 - 1
124 - Active formats, applied to the hardware.
129 On success 0 is returned, on error -1 and the ``errno`` variable is set
131 :ref:`Generic Error Codes <gen-errors>` chapter.
141 ``pad`` references a non-existing pad, or the ``which`` field
142 references a non-existing format.
145 The ``VIDIOC_SUBDEV_S_FMT`` ioctl has been called on a read-only subdevice
150 On success 0 is returned, on error -1 and the ``errno`` variable is set
152 :ref:`Generic Error Codes <gen-errors>` chapter.