€•övŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”ŒE/translations/zh_CN/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒE/translations/zh_TW/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒE/translations/it_IT/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒE/translations/ja_JP/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒE/translations/ko_KR/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒE/translations/pt_BR/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒE/translations/sp_SP/userspace-api/media/v4l/vidioc-subdev-g-selection”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later”h]”hŒ8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ_/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-subdev-g-selection.rst”h´KubhŒtarget”“”)”}”(hŒ.. _VIDIOC_SUBDEV_G_SELECTION:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œvidioc-subdev-g-selection”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ:ioctl VIDIOC_SUBDEV_G_SELECTION, VIDIOC_SUBDEV_S_SELECTION”h]”hŒ:ioctl VIDIOC_SUBDEV_G_SELECTION, VIDIOC_SUBDEV_S_SELECTION”…””}”(hhÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒName”h]”hŒName”…””}”(hhîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhëh²hh³hÇh´K ubhŒ paragraph”“”)”}”(hŒgVIDIOC_SUBDEV_G_SELECTION - VIDIOC_SUBDEV_S_SELECTION - Get or set selection rectangles on a subdev pad”h]”hŒgVIDIOC_SUBDEV_G_SELECTION - VIDIOC_SUBDEV_S_SELECTION - Get or set selection rectangles on a subdev pad”…””}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K hhëh²hubeh}”(h]”Œname”ah ]”h"]”Œname”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K ubh×)”}”(hhh]”(hÜ)”}”(hŒSynopsis”h]”hŒSynopsis”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²hh³hÇh´KubhŒindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œ'V4L.VIDIOC_SUBDEV_G_SELECTION (C macro)”Œc.V4L.VIDIOC_SUBDEV_G_SELECTION”hNt”auh1j%hjh²hh³Nh´NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒVIDIOC_SUBDEV_G_SELECTION”h]”hŒdesc_signature_line”“”)”}”(hŒVIDIOC_SUBDEV_G_SELECTION”h]”hŒ desc_name”“”)”}”(hŒVIDIOC_SUBDEV_G_SELECTION”h]”hŒ desc_sig_name”“”)”}”(hj?h]”hŒVIDIOC_SUBDEV_G_SELECTION”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1jMhjIubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”hÅhÆuh1jGhjCh²hh³hÇh´Kubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒ add_permalink”ˆuh1jAŒsphinx_line_type”Œ declarator”hj=h²hh³hÇh´Kubah}”(h]”j4ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j;h³hÇh´Khj8h²hubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhj8h²hh³hÇh´Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”j‡Œobjtype”jˆŒdesctype”jˆŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j6h²hhjh³Nh´Nubhý)”}”(hŒT``int ioctl(int fd, VIDIOC_SUBDEV_G_SELECTION, struct v4l2_subdev_selection *argp)``”h]”hŒliteral”“”)”}”(hj”h]”hŒPint ioctl(int fd, VIDIOC_SUBDEV_G_SELECTION, struct v4l2_subdev_selection *argp)”…””}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj’ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjh²hubj&)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(j2Œ'V4L.VIDIOC_SUBDEV_S_SELECTION (C macro)”Œc.V4L.VIDIOC_SUBDEV_S_SELECTION”hNt”auh1j%hjh²hh³Nh´Nubj7)”}”(hhh]”(j<)”}”(hŒVIDIOC_SUBDEV_S_SELECTION”h]”jB)”}”(hŒVIDIOC_SUBDEV_S_SELECTION”h]”jH)”}”(hŒVIDIOC_SUBDEV_S_SELECTION”h]”jN)”}”(hj¾h]”hŒVIDIOC_SUBDEV_S_SELECTION”…””}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”jYah"]”h$]”h&]”uh1jMhjÄubah}”(h]”h ]”(j`jaeh"]”h$]”h&]”hÅhÆuh1jGhjÀh²hh³hÇh´Kubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆjkˆuh1jAjljmhj¼h²hh³hÇh´Kubah}”(h]”j·ah ]”(jqjreh"]”h$]”h&]”jvˆjw)jxhuh1j;h³hÇh´Khj¹h²hubjz)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhj¹h²hh³hÇh´Kubeh}”(h]”h ]”(j‡Œmacro”eh"]”h$]”h&]”jŒj‡jjójŽjój‰j‰j‘‰uh1j6h²hhjh³Nh´Nubhý)”}”(hŒT``int ioctl(int fd, VIDIOC_SUBDEV_S_SELECTION, struct v4l2_subdev_selection *argp)``”h]”j—)”}”(hjùh]”hŒPint ioctl(int fd, VIDIOC_SUBDEV_S_SELECTION, struct v4l2_subdev_selection *argp)”…””}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjh²hubeh}”(h]”Œsynopsis”ah ]”h"]”Œsynopsis”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒ Arguments”h]”hŒ Arguments”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²hh³hÇh´KubhŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hŒ5``fd`` File descriptor returned by :c:func:`open()`. ”h]”(hŒterm”“”)”}”(hŒ``fd``”h]”j—)”}”(hj6h]”hŒfd”…””}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj4ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´Khj.ubhŒ definition”“”)”}”(hhh]”hý)”}”(hŒ-File descriptor returned by :c:func:`open()`.”h]”(hŒFile descriptor returned by ”…””}”(hjPh²hh³Nh´Nubh)”}”(hŒ:c:func:`open()`”h]”j—)”}”(hjZh]”hŒopen()”…””}”(hj\h²hh³Nh´Nubah}”(h]”h ]”(Œxref”j‡Œc-func”eh"]”h$]”h&]”uh1j–hjXubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ1userspace-api/media/v4l/vidioc-subdev-g-selection”Œ refdomain”j‡Œreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”jyŒ ASTIdentifier”“”)”}”Œ identifier”ŒV4L”sbN†”asbŒ reftarget”Œopen”uh1hh³hÇh´KhjPubhŒ.”…””}”(hjPh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KhjMubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj.ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´Khj)ubj-)”}”(hŒ<``argp`` Pointer to struct :c:type:`v4l2_subdev_selection`. ”h]”(j3)”}”(hŒ``argp``”h]”j—)”}”(hj¥h]”hŒargp”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj£ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´K!hjŸubjL)”}”(hhh]”hý)”}”(hŒ2Pointer to struct :c:type:`v4l2_subdev_selection`.”h]”(hŒPointer to struct ”…””}”(hj½h²hh³Nh´Nubh)”}”(hŒ:c:type:`v4l2_subdev_selection`”h]”j—)”}”(hjÇh]”hŒv4l2_subdev_selection”…””}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”(jfj‡Œc-type”eh"]”h$]”h&]”uh1j–hjÅubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jxj|j‡Œv4l2_subdev_selection”uh1hh³hÇh´K!hj½ubhŒ.”…””}”(hj½h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K!hjºubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjŸubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´K!hj)h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j'hjh²hh³hÇh´Nubeh}”(h]”Œ arguments”ah ]”h"]”Œ arguments”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒ Description”h]”hŒ Description”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²hh³hÇh´K$ubhý)”}”(hŒ¼The selections are used to configure various image processing functionality performed by the subdevs which affect the image size. This currently includes cropping, scaling and composition.”h]”hŒ¼The selections are used to configure various image processing functionality performed by the subdevs which affect the image size. This currently includes cropping, scaling and composition.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K&hjh²hubhý)”}”(hŒ¢The selection API replaces :ref:`the old subdev crop API `. All the function of the crop API, and more, are supported by the selections API.”h]”(hŒThe selection API replaces ”…””}”(hj'h²hh³Nh´Nubh)”}”(hŒ5:ref:`the old subdev crop API `”h]”hŒinline”“”)”}”(hj1h]”hŒthe old subdev crop API”…””}”(hj5h²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hj/ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j?Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj‡Œvidioc_subdev_g_crop”uh1hh³hÇh´K*hj'ubhŒR. All the function of the crop API, and more, are supported by the selections API.”…””}”(hj'h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K*hjh²hubhý)”}”(hŒSee :ref:`subdev` for more information on how each selection target affects the image processing pipeline inside the subdevice.”h]”(hŒSee ”…””}”(hj[h²hh³Nh´Nubh)”}”(hŒ :ref:`subdev`”h]”j4)”}”(hjeh]”hŒsubdev”…””}”(hjgh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hjcubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”jqŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj‡Œsubdev”uh1hh³hÇh´K.hj[ubhŒn for more information on how each selection target affects the image processing pipeline inside the subdevice.”…””}”(hj[h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K.hjh²hubhý)”}”(hŒÿIf the subdev device node has been registered in read-only mode, calls to ``VIDIOC_SUBDEV_S_SELECTION`` are only valid if the ``which`` field is set to ``V4L2_SUBDEV_FORMAT_TRY``, otherwise an error is returned and the errno variable is set to ``-EPERM``.”h]”(hŒJIf the subdev device node has been registered in read-only mode, calls to ”…””}”(hjh²hh³Nh´Nubj—)”}”(hŒ``VIDIOC_SUBDEV_S_SELECTION``”h]”hŒVIDIOC_SUBDEV_S_SELECTION”…””}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjubhŒ are only valid if the ”…””}”(hjh²hh³Nh´Nubj—)”}”(hŒ ``which``”h]”hŒwhich”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjubhŒ field is set to ”…””}”(hjh²hh³Nh´Nubj—)”}”(hŒ``V4L2_SUBDEV_FORMAT_TRY``”h]”hŒV4L2_SUBDEV_FORMAT_TRY”…””}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjubhŒB, otherwise an error is returned and the errno variable is set to ”…””}”(hjh²hh³Nh´Nubj—)”}”(hŒ ``-EPERM``”h]”hŒ-EPERM”…””}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjubhŒ.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K1hjh²hubh×)”}”(hhh]”(hÜ)”}”(hŒTypes of selection targets”h]”hŒTypes of selection targets”…””}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjãh²hh³hÇh´K7ubhý)”}”(hŒÔThere are two types of selection targets: actual and bounds. The actual targets are the targets which configure the hardware. The BOUNDS target will return a rectangle that contain all possible actual rectangles.”h]”hŒÔThere are two types of selection targets: actual and bounds. The actual targets are the targets which configure the hardware. The BOUNDS target will return a rectangle that contain all possible actual rectangles.”…””}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K9hjãh²hubeh}”(h]”Œtypes-of-selection-targets”ah ]”h"]”Œtypes of selection targets”ah$]”h&]”uh1hÖhjh²hh³hÇh´K7ubh×)”}”(hhh]”(hÜ)”}”(hŒDiscovering supported features”h]”hŒDiscovering supported features”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj h²hh³hÇh´K>ubhý)”}”(hŒ“To discover which targets are supported, the user can perform ``VIDIOC_SUBDEV_G_SELECTION`` on them. Any unsupported target will return ``EINVAL``.”h]”(hŒ>To discover which targets are supported, the user can perform ”…””}”(hjh²hh³Nh´Nubj—)”}”(hŒ``VIDIOC_SUBDEV_G_SELECTION``”h]”hŒVIDIOC_SUBDEV_G_SELECTION”…””}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjubhŒ- on them. Any unsupported target will return ”…””}”(hjh²hh³Nh´Nubj—)”}”(hŒ ``EINVAL``”h]”hŒEINVAL”…””}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjubhŒ.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K@hj h²hubhý)”}”(hŒLSelection targets and flags are documented in :ref:`v4l2-selections-common`.”h]”(hŒ.Selection targets and flags are documented in ”…””}”(hjMh²hh³Nh´Nubh)”}”(hŒ:ref:`v4l2-selections-common`”h]”j4)”}”(hjWh]”hŒv4l2-selections-common”…””}”(hjYh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hjUubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”jcŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj‡Œv4l2-selections-common”uh1hh³hÇh´KDhjMubhŒ.”…””}”(hjMh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KDhj h²hubj&)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(j2Œ"V4L.v4l2_subdev_selection (C type)”Œc.V4L.v4l2_subdev_selection”hNt”auh1j%hj h²hh³Nh´Nubj7)”}”(hhh]”(j<)”}”(hŒv4l2_subdev_selection”h]”jB)”}”(hŒtype v4l2_subdev_selection”h]”(hŒdesc_sig_keyword”“”)”}”(hŒtype”h]”hŒtype”…””}”(hjšh²hh³Nh´Nubah}”(h]”h ]”Œk”ah"]”h$]”h&]”uh1j˜hj”h²hh³hÇh´KGubhŒdesc_sig_space”“”)”}”(hŒ ”h]”hŒ ”…””}”(hj«h²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1j©hj”h²hh³hÇh´KGubjH)”}”(hŒv4l2_subdev_selection”h]”jN)”}”(hj’h]”hŒv4l2_subdev_selection”…””}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”jYah"]”h$]”h&]”uh1jMhjºubah}”(h]”h ]”(j`jaeh"]”h$]”h&]”hÅhÆuh1jGhj”h²hh³hÇh´KGubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆjkˆuh1jAjljmhjh²hh³hÇh´KGubah}”(h]”j‹ah ]”(jqjreh"]”h$]”h&]”jvˆjw)jxhuh1j;h³hÇh´KGhjh²hubjz)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhjh²hh³hÇh´KGubeh}”(h]”h ]”(j‡Œtype”eh"]”h$]”h&]”jŒj‡jjéjŽjéj‰j‰j‘‰uh1j6h²hhj h³Nh´NubhŒtabular_col_spec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œspec”Œ|p{4.4cm}|p{4.4cm}|p{8.5cm}|”uh1jíh³hÇh´KIhj h²hubhŒtable”“”)”}”(hhh]”(hÜ)”}”(hŒstruct v4l2_subdev_selection”h]”hŒstruct v4l2_subdev_selection”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛh³hÇh´KKhjüubhŒtgroup”“”)”}”(hhh]”(hŒcolspec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jhjubj)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jhjubj)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jhjubhŒtbody”“”)”}”(hhh]”(hŒrow”“”)”}”(hhh]”(hŒentry”“”)”}”(hhh]”hý)”}”(hŒ__u32”h]”hŒ__u32”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KPhj>ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj9ubj=)”}”(hhh]”hý)”}”(hŒ ``which``”h]”j—)”}”(hjZh]”hŒwhich”…””}”(hj\h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjXubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KQhjUubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj9ubj=)”}”(hhh]”hý)”}”(hŒ`Active or try selection, from enum :ref:`v4l2_subdev_format_whence `.”h]”(hŒ#Active or try selection, from enum ”…””}”(hjxh²hh³Nh´Nubh)”}”(hŒ<:ref:`v4l2_subdev_format_whence `”h]”j4)”}”(hj‚h]”hŒv4l2_subdev_format_whence”…””}”(hj„h²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hj€ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”jŽŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj‡Œv4l2-subdev-format-whence”uh1hh³hÇh´KRhjxubhŒ.”…””}”(hjxh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KRhjuubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj9ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒ__u32”h]”hŒ__u32”…””}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KThj¹ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj¶ubj=)”}”(hhh]”hý)”}”(hŒ``pad``”h]”j—)”}”(hjÕh]”hŒpad”…””}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjÓubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KUhjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj¶ubj=)”}”(hhh]”hý)”}”(hŒ.Pad number as reported by the media framework.”h]”hŒ.Pad number as reported by the media framework.”…””}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KVhjðubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj¶ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒ__u32”h]”hŒ__u32”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KWhjubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj ubj=)”}”(hhh]”hý)”}”(hŒ ``target``”h]”j—)”}”(hj,h]”hŒtarget”…””}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj*ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KXhj'ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj ubj=)”}”(hhh]”hý)”}”(hŒ>Target selection rectangle. See :ref:`v4l2-selections-common`.”h]”(hŒ Target selection rectangle. See ”…””}”(hjJh²hh³Nh´Nubh)”}”(hŒ:ref:`v4l2-selections-common`”h]”j4)”}”(hjTh]”hŒv4l2-selections-common”…””}”(hjVh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hjRubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j`Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj‡Œv4l2-selections-common”uh1hh³hÇh´KYhjJubhŒ.”…””}”(hjJh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KYhjGubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒ__u32”h]”hŒ__u32”…””}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KZhj‹ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjˆubj=)”}”(hhh]”hý)”}”(hŒ ``flags``”h]”j—)”}”(hj§h]”hŒflags”…””}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj¥ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K[hj¢ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjˆubj=)”}”(hhh]”hý)”}”(hŒ'Flags. See :ref:`v4l2-selection-flags`.”h]”(hŒ Flags. See ”…””}”(hjÅh²hh³Nh´Nubh)”}”(hŒ:ref:`v4l2-selection-flags`”h]”j4)”}”(hjÏh]”hŒv4l2-selection-flags”…””}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hjÍubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”jÛŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj‡Œv4l2-selection-flags”uh1hh³hÇh´K\hjÅubhŒ.”…””}”(hjÅh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K\hjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjˆubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒstruct :c:type:`v4l2_rect`”h]”(hŒstruct ”…””}”(hj h²hh³Nh´Nubh)”}”(hŒ:c:type:`v4l2_rect`”h]”j—)”}”(hjh]”hŒ v4l2_rect”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jfj‡Œc-type”eh"]”h$]”h&]”uh1j–hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jxj|j‡Œ v4l2_rect”uh1hh³hÇh´K]hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K]hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjubj=)”}”(hhh]”hý)”}”(hŒ``r``”h]”j—)”}”(hjAh]”hŒr”…””}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj?ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K^hj<ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjubj=)”}”(hhh]”hý)”}”(hŒSelection rectangle, in pixels.”h]”hŒSelection rectangle, in pixels.”…””}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K_hj\ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒ__u32”h]”hŒ__u32”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K`hj|ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjyubj=)”}”(hhh]”hý)”}”(hŒ ``stream``”h]”j—)”}”(hj˜h]”hŒstream”…””}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj–ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Kahj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjyubj=)”}”(hhh]”hý)”}”(hŒStream identifier.”h]”hŒStream identifier.”…””}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Kbhj³ubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjyubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hhh]”(j=)”}”(hhh]”hý)”}”(hŒ__u32”h]”hŒ__u32”…””}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KchjÓubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjÐubj=)”}”(hhh]”hý)”}”(hŒ``reserved``\ [7]”h]”(j—)”}”(hŒ ``reserved``”h]”hŒreserved”…””}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjíubhŒ [7]”…””}”(hjíh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Kdhjêubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjÐubj=)”}”(hhh]”hý)”}”(hŒTReserved for future extensions. Applications and drivers must set the array to zero.”h]”hŒTReserved for future extensions. Applications and drivers must set the array to zero.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Kehjubah}”(h]”h ]”h"]”h$]”h&]”uh1j<hjÐubeh}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j2hjubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1j hjüubeh}”(h]”Œid1”ah ]”h"]”h$]”h&]”uh1júhj h²hh³Nh´Nubeh}”(h]”Œdiscovering-supported-features”ah ]”h"]”Œdiscovering supported features”ah$]”h&]”uh1hÖhjh²hh³hÇh´K>ubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K$ubh×)”}”(hhh]”(hÜ)”}”(hŒ Return Value”h]”hŒ Return Value”…””}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjPh²hh³hÇh´Kiubhý)”}”(hŒ´On 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 ”…””}”(hjah²hh³Nh´Nubj—)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjaubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjah²hh³Nh´Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”j4)”}”(hj}h]”hŒGeneric Error Codes”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jfŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j3hj{ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j‰Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj‡Œ gen-errors”uh1hh³hÇh´KkhjaubhŒ chapter.”…””}”(hjah²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KkhjPh²hubj()”}”(hhh]”(j-)”}”(hX#EBUSY The selection rectangle can't be changed because the pad is currently busy. This can be caused, for instance, by an active video stream on the pad. The ioctl must not be retried without performing another action to fix the problem first. Only returned by ``VIDIOC_SUBDEV_S_SELECTION`` ”h]”(j3)”}”(hŒEBUSY”h]”hŒEBUSY”…””}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´Kthj¨ubjL)”}”(hhh]”hý)”}”(hXThe selection rectangle can't be changed because the pad is currently busy. This can be caused, for instance, by an active video stream on the pad. The ioctl must not be retried without performing another action to fix the problem first. Only returned by ``VIDIOC_SUBDEV_S_SELECTION``”h]”(hXThe selection rectangle can’t be changed because the pad is currently busy. This can be caused, for instance, by an active video stream on the pad. The ioctl must not be retried without performing another action to fix the problem first. Only returned by ”…””}”(hj½h²hh³Nh´Nubj—)”}”(hŒ``VIDIOC_SUBDEV_S_SELECTION``”h]”hŒVIDIOC_SUBDEV_S_SELECTION”…””}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj½ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Kphjºubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj¨ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´Kthj¥ubj-)”}”(hŒÉEINVAL The struct :c:type:`v4l2_subdev_selection` ``pad`` references a non-existing pad, the ``which`` field has an unsupported value, or the selection target is not supported on the given subdev pad. ”h]”(j3)”}”(hŒEINVAL”h]”hŒEINVAL”…””}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´KyhjåubjL)”}”(hhh]”hý)”}”(hŒÁThe struct :c:type:`v4l2_subdev_selection` ``pad`` references a non-existing pad, the ``which`` field has an unsupported value, or the selection target is not supported on the given subdev pad.”h]”(hŒ The struct ”…””}”(hjúh²hh³Nh´Nubh)”}”(hŒ:c:type:`v4l2_subdev_selection`”h]”j—)”}”(hj h]”hŒv4l2_subdev_selection”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”(jfj‡Œc-type”eh"]”h$]”h&]”uh1j–hj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jrŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jxj|j‡Œv4l2_subdev_selection”uh1hh³hÇh´KwhjúubhŒ ”…””}”(hjúh²hh³Nh´Nubj—)”}”(hŒ``pad``”h]”hŒpad”…””}”(hj% h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjúubhŒ$ references a non-existing pad, the ”…””}”(hjúh²hh³Nh´Nubj—)”}”(hŒ ``which``”h]”hŒwhich”…””}”(hj7 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjúubhŒb field has an unsupported value, or the selection target is not supported on the given subdev pad.”…””}”(hjúh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Kwhj÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjåubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´Kyhj¥h²hubj-)”}”(hŒ—EPERM The ``VIDIOC_SUBDEV_S_SELECTION`` ioctl has been called on a read-only subdevice and the ``which`` field is set to ``V4L2_SUBDEV_FORMAT_ACTIVE``.”h]”(j3)”}”(hŒEPERM”h]”hŒEPERM”…””}”(hj_ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2h³hÇh´K|hj[ ubjL)”}”(hhh]”hý)”}”(hŒ‘The ``VIDIOC_SUBDEV_S_SELECTION`` ioctl has been called on a read-only subdevice and the ``which`` field is set to ``V4L2_SUBDEV_FORMAT_ACTIVE``.”h]”(hŒThe ”…””}”(hjp h²hh³Nh´Nubj—)”}”(hŒ``VIDIOC_SUBDEV_S_SELECTION``”h]”hŒVIDIOC_SUBDEV_S_SELECTION”…””}”(hjx h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjp ubhŒ8 ioctl has been called on a read-only subdevice and the ”…””}”(hjp h²hh³Nh´Nubj—)”}”(hŒ ``which``”h]”hŒwhich”…””}”(hjŠ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjp ubhŒ field is set to ”…””}”(hjp h²hh³Nh´Nubj—)”}”(hŒ``V4L2_SUBDEV_FORMAT_ACTIVE``”h]”hŒV4L2_SUBDEV_FORMAT_ACTIVE”…””}”(hjœ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjp ubhŒ.”…””}”(hjp h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K|hjm ubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj[ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j,h³hÇh´K|hj¥h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j'hjPh²hh³hÇh´Nubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kiubeh}”(h]”(Œ9ioctl-vidioc-subdev-g-selection-vidioc-subdev-s-selection”hÕeh ]”h"]”(Œ:ioctl vidioc_subdev_g_selection, vidioc_subdev_s_selection”Œvidioc_subdev_g_selection”eh$]”h&]”uh1hÖhhh²hh³hÇh´KŒexpect_referenced_by_name”}”jÔ hÊsŒexpect_referenced_by_id”}”hÕhÊsubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÛNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”j<Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jý Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”hÕ]”hÊasŒnameids”}”(jÔ hÕjÓ jÐ jjjjjjjMjJjjjEjBjË jÈ uŒ nametypes”}”(jÔ ˆjÓ ‰j‰j‰j‰jM‰j‰jE‰jË ‰uh}”(hÕhØjÐ hØjhëjjj4j=j·j¼jjjJjjjãjBj j‹jjÈ jPj;jüuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”j Ks…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hý)”}”(hhh]”hŒ?Hyperlink target "vidioc-subdev-g-selection" is not referenced.”…””}”hjg sbah}”(h]”h ]”h"]”h$]”h&]”uh1hühjd ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1jb ubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.