Ùsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftargetH/translations/zh_CN/userspace-api/media/v4l/vidioc-subdev-enum-mbus-codemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetH/translations/zh_TW/userspace-api/media/v4l/vidioc-subdev-enum-mbus-codemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetH/translations/it_IT/userspace-api/media/v4l/vidioc-subdev-enum-mbus-codemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetH/translations/ja_JP/userspace-api/media/v4l/vidioc-subdev-enum-mbus-codemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetH/translations/ko_KR/userspace-api/media/v4l/vidioc-subdev-enum-mbus-codemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetH/translations/sp_SP/userspace-api/media/v4l/vidioc-subdev-enum-mbus-codemodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-laterh]h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhb/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-subdev-enum-mbus-code.rsthKubhtarget)}(h!.. _VIDIOC_SUBDEV_ENUM_MBUS_CODE:h]h}(h]h ]h"]h$]h&]refidvidioc-subdev-enum-mbus-codeuh1hhKhhhhhhubhsection)}(hhh](htitle)}(h"ioctl VIDIOC_SUBDEV_ENUM_MBUS_CODEh]h"ioctl VIDIOC_SUBDEV_ENUM_MBUS_CODE}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hNameh]hName}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(h:VIDIOC_SUBDEV_ENUM_MBUS_CODE - Enumerate media bus formatsh]h:VIDIOC_SUBDEV_ENUM_MBUS_CODE - Enumerate media bus formats}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubeh}(h]nameah ]h"]nameah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hSynopsish]hSynopsis}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](single*V4L.VIDIOC_SUBDEV_ENUM_MBUS_CODE (C macro)"c.V4L.VIDIOC_SUBDEV_ENUM_MBUS_CODEhNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(hVIDIOC_SUBDEV_ENUM_MBUS_CODEh]hdesc_signature_line)}(hVIDIOC_SUBDEV_ENUM_MBUS_CODEh]h desc_name)}(hVIDIOC_SUBDEV_ENUM_MBUS_CODEh]h desc_sig_name)}(hj+h]hVIDIOC_SUBDEV_ENUM_MBUS_CODE}(hj;hhhNhNubah}(h]h ]nah"]h$]h&]uh1j9hj5ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1j3hj/hhhhhKubah}(h]h ]h"]h$]h&]hh add_permalinkuh1j-sphinx_line_type declaratorhj)hhhhhKubah}(h]j ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j'hhhKhj$hhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1jehj$hhhhhKubeh}(h]h ](cmacroeh"]h$]h&]domainjsobjtypejtdesctypejtnoindex noindexentrynocontentsentryuh1j"hhhjhNhNubh)}(h]``int ioctl(int fd, VIDIOC_SUBDEV_ENUM_MBUS_CODE, struct v4l2_subdev_mbus_code_enum * argp)``h]hliteral)}(hjh]hYint ioctl(int fd, VIDIOC_SUBDEV_ENUM_MBUS_CODE, struct v4l2_subdev_mbus_code_enum * argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]synopsisah ]h"]synopsisah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Argumentsh]h Arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhdefinition_list)}(hhh](hdefinition_list_item)}(h5``fd`` File descriptor returned by :c:func:`open()`. h](hterm)}(h``fd``h]j)}(hjh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hjhhhNhNubh)}(h:c:func:`open()`h]j)}(hjh]hopen()}(hjhhhNhNubah}(h]h ](xrefjsc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoc4userspace-api/media/v4l/vidioc-subdev-enum-mbus-code refdomainjsreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)} identifierV4LsbNasb reftargetopenuh1hhhhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hA``argp`` Pointer to struct :c:type:`v4l2_subdev_mbus_code_enum`. h](j)}(h``argp``h]j)}(hj.h]hargp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhhhKhj(ubj)}(hhh]h)}(h7Pointer to struct :c:type:`v4l2_subdev_mbus_code_enum`.h](hPointer to struct }(hjFhhhNhNubh)}(h$:c:type:`v4l2_subdev_mbus_code_enum`h]j)}(hjPh]hv4l2_subdev_mbus_code_enum}(hjRhhhNhNubah}(h]h ](jjsc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjsreftypetype refexplicitrefwarnjjjv4l2_subdev_mbus_code_enumuh1hhhhKhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjCubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h] argumentsah ]h"] argumentsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(hiThis call is used by the application to access the enumeration of media bus formats for the selected pad.h]hiThis call is used by the application to access the enumeration of media bus formats for the selected pad.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubh)}(hThe enumerations are defined by the driver, and indexed using the ``index`` field of struct :c:type:`v4l2_subdev_mbus_code_enum`. Each enumeration starts with the ``index`` of 0, and the lowest invalid index marks the end of enumeration.h](hBThe enumerations are defined by the driver, and indexed using the }(hjhhhNhNubj)}(h ``index``h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh field of struct }(hjhhhNhNubh)}(h$:c:type:`v4l2_subdev_mbus_code_enum`h]j)}(hjh]hv4l2_subdev_mbus_code_enum}(hjhhhNhNubah}(h]h ](jjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjsreftypetype refexplicitrefwarnjjjv4l2_subdev_mbus_code_enumuh1hhhhK%hjubh#. Each enumeration starts with the }(hjhhhNhNubj)}(h ``index``h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA of 0, and the lowest invalid index marks the end of enumeration.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK%hjhhubh)}(hXTherefore, to enumerate media bus formats available at a given sub-device pad, initialize the ``pad``, and ``which`` fields to desired values, and set ``index`` to 0. Then call the :ref:`VIDIOC_SUBDEV_ENUM_MBUS_CODE` ioctl with a pointer to this structure.h](h^Therefore, to enumerate media bus formats available at a given sub-device pad, initialize the }(hjhhhNhNubj)}(h``pad``h]hpad}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and }(hjhhhNhNubj)}(h ``which``h]hwhich}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# fields to desired values, and set }(hjhhhNhNubj)}(h ``index``h]hindex}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to 0. Then call the }(hjhhhNhNubh)}(h#:ref:`VIDIOC_SUBDEV_ENUM_MBUS_CODE`h]hinline)}(hjEh]hVIDIOC_SUBDEV_ENUM_MBUS_CODE}(hjIhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjCubah}(h]h ]h"]h$]h&]refdocj refdomainjSreftyperef refexplicitrefwarnjvidioc_subdev_enum_mbus_codeuh1hhhhK*hjubh( ioctl with a pointer to this structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK*hjhhubh)}(hA successful call will return with the ``code`` field filled in with a mbus code value. Repeat with increasing ``index`` until ``EINVAL`` is received. ``EINVAL`` means that either ``pad`` is invalid, or that there are no more codes available at this pad.h](h'A successful call will return with the }(hjohhhNhNubj)}(h``code``h]hcode}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh@ field filled in with a mbus code value. Repeat with increasing }(hjohhhNhNubj)}(h ``index``h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh until }(hjohhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh is received. }(hjohhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh means that either }(hjohhhNhNubj)}(h``pad``h]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhC is invalid, or that there are no more codes available at this pad.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK0hjhhubh)}(h\The driver must not return the same value of ``code`` for different indices at the same pad.h](h-The driver must not return the same value of }(hjhhhNhNubj)}(h``code``h]hcode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' for different indices at the same pad.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK6hjhhubh)}(hAvailable media bus formats may depend on the current 'try' formats at other pads of the sub-device, as well as on the current active links. See :ref:`VIDIOC_SUBDEV_G_FMT` for more information about the try formats.h](hAvailable media bus formats may depend on the current ‘try’ formats at other pads of the sub-device, as well as on the current active links. See }(hjhhhNhNubh)}(h:ref:`VIDIOC_SUBDEV_G_FMT`h]jH)}(hjh]hVIDIOC_SUBDEV_G_FMT}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjvidioc_subdev_g_fmtuh1hhhhK9hjubh, for more information about the try formats.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK9hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'V4L.v4l2_subdev_mbus_code_enum (C type) c.V4L.v4l2_subdev_mbus_code_enumhNtauh1jhjhhhNhNubj#)}(hhh](j()}(hv4l2_subdev_mbus_code_enumh]j.)}(htype v4l2_subdev_mbus_code_enumh](hdesc_sig_keyword)}(htypeh]htype}(hjDhhhNhNubah}(h]h ]kah"]h$]h&]uh1jBhj>hhhhhK>ubhdesc_sig_space)}(h h]h }(hjUhhhNhNubah}(h]h ]wah"]h$]h&]uh1jShj>hhhhhK>ubj4)}(hv4l2_subdev_mbus_code_enumh]j:)}(hj<h]hv4l2_subdev_mbus_code_enum}(hjhhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjdubah}(h]h ](jLjMeh"]h$]h&]hhuh1j3hj>hhhhhK>ubeh}(h]h ]h"]h$]h&]hhjWuh1j-jXjYhj:hhhhhK>ubah}(h]j5ah ](j]j^eh"]h$]h&]jbjc)jdhuh1j'hhhK>hj7hhubjf)}(hhh]h}(h]h ]h"]h$]h&]uh1jehj7hhhhhK>ubeh}(h]h ](jstypeeh"]h$]h&]jxjsjyjjzjj{j|j}uh1j"hhhjhNhNubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{4.4cm}|p{4.4cm}|p{8.5cm}|uh1jhhhK@hjhhubhtable)}(hhh](h)}(h!struct v4l2_subdev_mbus_code_enumh]h!struct v4l2_subdev_mbus_code_enum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubhtgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h``pad``h]j)}(hjh]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hQPad number as reported by the media controller API. Filled in by the application.h]hQPad number as reported by the media controller API. Filled in by the application.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h__u32h]h__u32}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhj?ubah}(h]h ]h"]h$]h&]uh1jhj<ubj)}(hhh]h)}(h ``index``h]j)}(hj[h]hindex}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhhhKLhjVubah}(h]h ]h"]h$]h&]uh1jhj<ubj)}(hhh]h)}(hcIndex of the mbus code in the enumeration belonging to the given pad. Filled in by the application.h]hcIndex of the mbus code in the enumeration belonging to the given pad. Filled in by the application.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjvubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h``code``h]j)}(hjh]hcode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKPhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hZThe media bus format code, as defined in :ref:`v4l2-mbus-format`. Filled in by the driver.h](h)The media bus format code, as defined in }(hjhhhNhNubh)}(h:ref:`v4l2-mbus-format`h]jH)}(hjh]hv4l2-mbus-format}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjv4l2-mbus-formatuh1hhhhKQhjubh. Filled in by the driver.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h ``which``h]j)}(hj-h]hwhich}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhhhKThj(ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hpMedia bus format codes to be enumerated, from enum :ref:`v4l2_subdev_format_whence `.h](h3Media bus format codes to be enumerated, from enum }(hjKhhhNhNubh)}(h<:ref:`v4l2_subdev_format_whence `h]jH)}(hjUh]hv4l2_subdev_format_whence}(hjWhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjareftyperef refexplicitrefwarnjv4l2-subdev-format-whenceuh1hhhhKUhjKubh.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKUhjHubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKWhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h ``flags``h]j)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKXhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h&See :ref:`v4l2-subdev-mbus-code-flags`h](hSee }(hjhhhNhNubh)}(h":ref:`v4l2-subdev-mbus-code-flags`h]jH)}(hjh]hv4l2-subdev-mbus-code-flags}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjv4l2-subdev-mbus-code-flagsuh1hhhhKYhjubeh}(h]h ]h"]h$]h&]uh1hhhhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h ``stream``h]j)}(hjh]hstream}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hStream identifier.h]hStream identifier.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h__u32h]h__u32}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hhh]h)}(h``reserved``\ [6]h](j)}(h ``reserved``h]hreserved}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh [6]}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK^hjqubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hhh]h)}(hTReserved for future extensions. Applications and drivers must set the array to zero.h]hTReserved for future extensions. Applications and drivers must set the array to zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubeh}(h]id1ah ]h"]h$]h&]uh1jhjhhhNhNubhraw)}(h \footnotesizeh]h \footnotesize}hjsbah}(h]h ]h"]h$]h&]formatlatexhhuh1jhhhKdhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]j|p{8.8cm}|p{2.2cm}|p{6.3cm}|uh1jhhhKhhjhhubh)}(h .. _v4l2-subdev-mbus-code-flags:h]h}(h]h ]h"]h$]h&]hv4l2-subdev-mbus-code-flagsuh1hhKjhjhhhhubj)}(hhh](h)}(h%Subdev Media Bus Code Enumerate Flagsh]h%Subdev Media Bus Code Enumerate Flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjubj)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h$V4L2_SUBDEV_MBUS_CODE_CSC_COLORSPACEh]h$V4L2_SUBDEV_MBUS_CODE_CSC_COLORSPACE}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhj&ubah}(h]h ]h"]h$]h&]uh1jhj#ubj)}(hhh]h)}(h 0x00000001h]h 0x00000001}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhj=ubah}(h]h ]h"]h$]h&]uh1jhj#ubj)}(hhh]h)}(hXSThe driver allows the application to try to change the default colorspace encoding. The application can ask to configure the colorspace of the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT ` ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC ` set. See :ref:`v4l2-mbus-format` on how to do this.h](hThe driver allows the application to try to change the default colorspace encoding. The application can ask to configure the colorspace of the subdevice when calling the }(hjWhhhNhNubh)}(h0:ref:`VIDIOC_SUBDEV_S_FMT `h]jH)}(hjah]hVIDIOC_SUBDEV_S_FMT}(hjchhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftyperef refexplicitrefwarnjvidioc_subdev_g_fmtuh1hhhhKshjWubh ioctl with }(hjWhhhNhNubh)}(h9:ref:`V4L2_MBUS_FRAMEFMT_SET_CSC `h]jH)}(hjh]hV4L2_MBUS_FRAMEFMT_SET_CSC}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjmbus-framefmt-set-cscuh1hhhhKshjWubh set. See }(hjWhhhNhNubh)}(h:ref:`v4l2-mbus-format`h]jH)}(hjh]hv4l2-mbus-format}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjv4l2-mbus-formatuh1hhhhKshjWubh on how to do this.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKshjTubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h#V4L2_SUBDEV_MBUS_CODE_CSC_XFER_FUNCh]h#V4L2_SUBDEV_MBUS_CODE_CSC_XFER_FUNC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h 0x00000002h]h 0x00000002}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hXZThe driver allows the application to try to change the default transform function. The application can ask to configure the transform function of the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT ` ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC ` set. See :ref:`v4l2-mbus-format` on how to do this.h](hThe driver allows the application to try to change the default transform function. The application can ask to configure the transform function of the subdevice when calling the }(hj hhhNhNubh)}(h0:ref:`VIDIOC_SUBDEV_S_FMT `h]jH)}(hj h]hVIDIOC_SUBDEV_S_FMT}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj' reftyperef refexplicitrefwarnjvidioc_subdev_g_fmtuh1hhhhKzhj ubh ioctl with }(hj hhhNhNubh)}(h9:ref:`V4L2_MBUS_FRAMEFMT_SET_CSC `h]jH)}(hj? h]hV4L2_MBUS_FRAMEFMT_SET_CSC}(hjA hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj= ubah}(h]h ]h"]h$]h&]refdocj refdomainjK reftyperef refexplicitrefwarnjmbus-framefmt-set-cscuh1hhhhKzhj ubh set. See }(hj hhhNhNubh)}(h:ref:`v4l2-mbus-format`h]jH)}(hjc h]hv4l2-mbus-format}(hje hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhja ubah}(h]h ]h"]h$]h&]refdocj refdomainjo reftyperef refexplicitrefwarnjv4l2-mbus-formatuh1hhhhKzhj ubh on how to do this.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKzhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h#V4L2_SUBDEV_MBUS_CODE_CSC_YCBCR_ENCh]h#V4L2_SUBDEV_MBUS_CODE_CSC_YCBCR_ENC}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h 0x00000004h]h 0x00000004}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hXTThe driver allows the application to try to change the default Y'CbCr encoding. The application can ask to configure the Y'CbCr encoding of the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT ` ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC ` set. See :ref:`v4l2-mbus-format` on how to do this.h](hThe driver allows the application to try to change the default Y’CbCr encoding. The application can ask to configure the Y’CbCr encoding of the subdevice when calling the }(hj hhhNhNubh)}(h0:ref:`VIDIOC_SUBDEV_S_FMT `h]jH)}(hj h]hVIDIOC_SUBDEV_S_FMT}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjvidioc_subdev_g_fmtuh1hhhhKhj ubh ioctl with }(hj hhhNhNubh)}(h9:ref:`V4L2_MBUS_FRAMEFMT_SET_CSC `h]jH)}(hj h]hV4L2_MBUS_FRAMEFMT_SET_CSC}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjmbus-framefmt-set-cscuh1hhhhKhj ubh set. See }(hj hhhNhNubh)}(h:ref:`v4l2-mbus-format`h]jH)}(hj h]hv4l2-mbus-format}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj) reftyperef refexplicitrefwarnjv4l2-mbus-formatuh1hhhhKhj ubh on how to do this.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h!V4L2_SUBDEV_MBUS_CODE_CSC_HSV_ENCh]h!V4L2_SUBDEV_MBUS_CODE_CSC_HSV_ENC}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjT ubah}(h]h ]h"]h$]h&]uh1jhjQ ubj)}(hhh]h)}(h 0x00000004h]h 0x00000004}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjk ubah}(h]h ]h"]h$]h&]uh1jhjQ ubj)}(hhh]h)}(hXNThe driver allows the application to try to change the default HSV encoding. The application can ask to configure the HSV encoding of the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT ` ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC ` set. See :ref:`v4l2-mbus-format` on how to do this.h](hThe driver allows the application to try to change the default HSV encoding. The application can ask to configure the HSV encoding of the subdevice when calling the }(hj hhhNhNubh)}(h0:ref:`VIDIOC_SUBDEV_S_FMT `h]jH)}(hj h]hVIDIOC_SUBDEV_S_FMT}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjvidioc_subdev_g_fmtuh1hhhhKhj ubh ioctl with }(hj hhhNhNubh)}(h9:ref:`V4L2_MBUS_FRAMEFMT_SET_CSC `h]jH)}(hj h]hV4L2_MBUS_FRAMEFMT_SET_CSC}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjmbus-framefmt-set-cscuh1hhhhKhj ubh set. See }(hj hhhNhNubh)}(h:ref:`v4l2-mbus-format`h]jH)}(hj h]hv4l2-mbus-format}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjv4l2-mbus-formatuh1hhhhKhj ubh on how to do this.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjQ ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](j)}(hhh]h)}(h&V4L2_SUBDEV_MBUS_CODE_CSC_QUANTIZATIONh]h&V4L2_SUBDEV_MBUS_CODE_CSC_QUANTIZATION}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h 0x00000008h]h 0x00000008}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj% ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hXNThe driver allows the application to try to change the default quantization. The application can ask to configure the quantization of the subdevice when calling the :ref:`VIDIOC_SUBDEV_S_FMT ` ioctl with :ref:`V4L2_MBUS_FRAMEFMT_SET_CSC ` set. See :ref:`v4l2-mbus-format` on how to do this.h](hThe driver allows the application to try to change the default quantization. The application can ask to configure the quantization of the subdevice when calling the }(hj? hhhNhNubh)}(h0:ref:`VIDIOC_SUBDEV_S_FMT `h]jH)}(hjI h]hVIDIOC_SUBDEV_S_FMT}(hjK hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjG ubah}(h]h ]h"]h$]h&]refdocj refdomainjU reftyperef refexplicitrefwarnjvidioc_subdev_g_fmtuh1hhhhKhj? ubh ioctl with }(hj? hhhNhNubh)}(h9:ref:`V4L2_MBUS_FRAMEFMT_SET_CSC `h]jH)}(hjm h]hV4L2_MBUS_FRAMEFMT_SET_CSC}(hjo hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhjk ubah}(h]h ]h"]h$]h&]refdocj refdomainjy reftyperef refexplicitrefwarnjmbus-framefmt-set-cscuh1hhhhKhj? ubh set. See }(hj? hhhNhNubh)}(h:ref:`v4l2-mbus-format`h]jH)}(hj h]hv4l2-mbus-format}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnjv4l2-mbus-formatuh1hhhhKhj? ubh on how to do this.}(hj? hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj< ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubeh}(h](id2jeh ]h"]v4l2-subdev-mbus-code-flagsah$]h&]uh1jhjhhhNhNexpect_referenced_by_name}j jsexpect_referenced_by_id}jjsubj)}(h \normalsizeh]h \normalsize}hj sbah}(h]h ]h"]h$]h&]formatlatexhhuh1jhhhKhjhhubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h Return Valueh]h Return Value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hOn success 0 is returned, on error -1 and the ``errno`` variable is set appropriately. The generic error codes are described at the :ref:`Generic Error Codes ` chapter.h](h.On success 0 is returned, on error -1 and the }(hj hhhNhNubj)}(h ``errno``h]herrno}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhM variable is set appropriately. The generic error codes are described at the }(hj hhhNhNubh)}(h':ref:`Generic Error Codes `h]jH)}(hj# h]hGeneric Error Codes}(hj% hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jGhj! ubah}(h]h ]h"]h$]h&]refdocj refdomainj/ reftyperef refexplicitrefwarnj gen-errorsuh1hhhhKhj ubh chapter.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj)}(hhh]j)}(hEINVAL The struct :c:type:`v4l2_subdev_mbus_code_enum` ``pad`` references a non-existing pad, the ``which`` field has an unsupported value, or the ``index`` field is out of bounds.h](j)}(hEINVALh]hEINVAL}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjN ubj)}(hhh]h)}(hThe struct :c:type:`v4l2_subdev_mbus_code_enum` ``pad`` references a non-existing pad, the ``which`` field has an unsupported value, or the ``index`` field is out of bounds.h](h The struct }(hjc hhhNhNubh)}(h$:c:type:`v4l2_subdev_mbus_code_enum`h]j)}(hjm h]hv4l2_subdev_mbus_code_enum}(hjo hhhNhNubah}(h]h ](jjsc-typeeh"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]refdocj refdomainjsreftypetype refexplicitrefwarnjjjv4l2_subdev_mbus_code_enumuh1hhhhKhjc ubh }(hjc hhhNhNubj)}(h``pad``h]hpad}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc ubh$ references a non-existing pad, the }(hjc hhhNhNubj)}(h ``which``h]hwhich}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc ubh( field has an unsupported value, or the }(hjc hhhNhNubj)}(h ``index``h]hindex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc ubh field is out of bounds.}(hjc hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj` ubah}(h]h ]h"]h$]h&]uh1jhjN ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjK ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubeh}(h] return-valueah ]h"] return valueah$]h&]uh1hhhhhhhhKubeh}(h]("ioctl-vidioc-subdev-enum-mbus-codeheh ]h"]("ioctl vidioc_subdev_enum_mbus_codevidioc_subdev_enum_mbus_codeeh$]h&]uh1hhhhhhhhKj }j hsj }hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}(h]haj]jaunameids}(j hj j hhjjjjj j j jj j u nametypes}(j j hjjj j j uh}(hhj hhhjjj j)jjj jj5j:jjj j jjj ju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j KsRparse_messages]transform_messages](hsystem_message)}(hhh]h)}(hhh]hBHyperlink target "vidioc-subdev-enum-mbus-code" is not referenced.}hj| sbah}(h]h ]h"]h$]h&]uh1hhjy ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1jw ubjx )}(hhh]h)}(hhh]hAHyperlink target "v4l2-subdev-mbus-code-flags" is not referenced.}hj sbah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKjuh1jw ube transformerN include_log] decorationNhhub.