Lines Matching +full:ref +full:- +full:pad
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_SUBDEV_ENUM_MBUS_CODE - Enumerate media bus formats
35 of media bus formats for the selected pad.
42 Therefore, to enumerate media bus formats available at a given sub-device pad,
43 initialize the ``pad``, and ``which`` fields to desired values,
45 Then call the :ref:`VIDIOC_SUBDEV_ENUM_MBUS_CODE` ioctl
51 ``EINVAL`` means that either ``pad`` is invalid,
52 or that there are no more codes available at this pad.
55 at the same pad.
58 other pads of the sub-device, as well as on the current active links.
59 See :ref:`VIDIOC_SUBDEV_G_FMT` for more
66 .. flat-table:: struct v4l2_subdev_mbus_code_enum
67 :header-rows: 0
68 :stub-columns: 0
71 * - __u32
72 - ``pad``
73 - Pad number as reported by the media controller API. Filled in by the
75 * - __u32
76 - ``index``
77 - Index of the mbus code in the enumeration belonging to the given pad.
79 * - __u32
80 - ``code``
81 - The media bus format code, as defined in
82 :ref:`v4l2-mbus-format`. Filled in by the driver.
83 * - __u32
84 - ``which``
85 - Media bus format codes to be enumerated, from enum
86 :ref:`v4l2_subdev_format_whence <v4l2-subdev-format-whence>`.
87 * - __u32
88 - ``flags``
89 - See :ref:`v4l2-subdev-mbus-code-flags`
90 * - __u32
91 - ``stream``
92 - Stream identifier.
93 * - __u32
94 - ``reserved``\ [6]
95 - Reserved for future extensions. Applications and drivers must set
106 .. _v4l2-subdev-mbus-code-flags:
108 .. flat-table:: Subdev Media Bus Code Enumerate Flags
109 :header-rows: 0
110 :stub-columns: 0
113 * - V4L2_SUBDEV_MBUS_CODE_CSC_COLORSPACE
114 - 0x00000001
115 - The driver allows the application to try to change the default colorspace
117 subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT <VIDIOC_SUBDEV_G_FMT>`
118 ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC <mbus-framefmt-set-csc>` set.
119 See :ref:`v4l2-mbus-format` on how to do this.
120 * - V4L2_SUBDEV_MBUS_CODE_CSC_XFER_FUNC
121 - 0x00000002
122 - The driver allows the application to try to change the default transform function.
124 the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT <VIDIOC_SUBDEV_G_FMT>`
125 ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC <mbus-framefmt-set-csc>` set.
126 See :ref:`v4l2-mbus-format` on how to do this.
127 * - V4L2_SUBDEV_MBUS_CODE_CSC_YCBCR_ENC
128 - 0x00000004
129 - The driver allows the application to try to change the default Y'CbCr
131 subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT <VIDIOC_SUBDEV_G_FMT>`
132 ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC <mbus-framefmt-set-csc>` set.
133 See :ref:`v4l2-mbus-format` on how to do this.
134 * - V4L2_SUBDEV_MBUS_CODE_CSC_HSV_ENC
135 - 0x00000004
136 - The driver allows the application to try to change the default HSV
138 subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT <VIDIOC_SUBDEV_G_FMT>`
139 ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC <mbus-framefmt-set-csc>` set.
140 See :ref:`v4l2-mbus-format` on how to do this.
141 * - V4L2_SUBDEV_MBUS_CODE_CSC_QUANTIZATION
142 - 0x00000008
143 - The driver allows the application to try to change the default
145 the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT <VIDIOC_SUBDEV_G_FMT>`
146 ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC <mbus-framefmt-set-csc>` set.
147 See :ref:`v4l2-mbus-format` on how to do this.
156 On success 0 is returned, on error -1 and the ``errno`` variable is set
158 :ref:`Generic Error Codes <gen-errors>` chapter.
161 The struct :c:type:`v4l2_subdev_mbus_code_enum` ``pad`` references a
162 non-existing pad, the ``which`` field has an unsupported value, or the