Isphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget>/translations/zh_CN/userspace-api/media/v4l/vidioc-g-selectionmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/zh_TW/userspace-api/media/v4l/vidioc-g-selectionmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/it_IT/userspace-api/media/v4l/vidioc-g-selectionmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/ja_JP/userspace-api/media/v4l/vidioc-g-selectionmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/ko_KR/userspace-api/media/v4l/vidioc-g-selectionmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/sp_SP/userspace-api/media/v4l/vidioc-g-selectionmodnameN 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:spacepreserveuh1hhhhhhX/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-g-selection.rsthKubhtarget)}(h.. _VIDIOC_G_SELECTION:h]h}(h]h ]h"]h$]h&]refidvidioc-g-selectionuh1hhKhhhhhhubhsection)}(hhh](htitle)}(h,ioctl VIDIOC_G_SELECTION, VIDIOC_S_SELECTIONh]h,ioctl VIDIOC_G_SELECTION, VIDIOC_S_SELECTION}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hNameh]hName}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh paragraph)}(hTVIDIOC_G_SELECTION - VIDIOC_S_SELECTION - Get or set one of the selection rectanglesh]hTVIDIOC_G_SELECTION - VIDIOC_S_SELECTION - Get or set one of the selection rectangles}(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_G_SELECTION (C macro)c.V4L.VIDIOC_G_SELECTIONhNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(hVIDIOC_G_SELECTIONh]hdesc_signature_line)}(hVIDIOC_G_SELECTIONh]h desc_name)}(hVIDIOC_G_SELECTIONh]h desc_sig_name)}(hj+h]hVIDIOC_G_SELECTION}(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)}(hF``int ioctl(int fd, VIDIOC_G_SELECTION, struct v4l2_selection *argp)``h]hliteral)}(hjh]hBint ioctl(int fd, VIDIOC_G_SELECTION, struct v4l2_selection *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j V4L.VIDIOC_S_SELECTION (C macro)c.V4L.VIDIOC_S_SELECTIONhNtauh1jhjhhhNhNubj#)}(hhh](j()}(hVIDIOC_S_SELECTIONh]j.)}(hVIDIOC_S_SELECTIONh]j4)}(hVIDIOC_S_SELECTIONh]j:)}(hjh]hVIDIOC_S_SELECTION}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]hhuh1j3hjhhhhhKubah}(h]h ]h"]h$]h&]hhjWuh1j-jXjYhjhhhhhKubah}(h]jah ](j]j^eh"]h$]h&]jbjc)jdhuh1j'hhhKhjhhubjf)}(hhh]h}(h]h ]h"]h$]h&]uh1jehjhhhhhKubeh}(h]h ](jsmacroeh"]h$]h&]jxjsjyjjzjj{j|j}uh1j"hhhjhNhNubh)}(hF``int ioctl(int fd, VIDIOC_S_SELECTION, struct v4l2_selection *argp)``h]j)}(hjh]hBint ioctl(int fd, VIDIOC_S_SELECTION, struct v4l2_selection *argp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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)}(hj"h]hfd}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hj<hhhNhNubh)}(h:c:func:`open()`h]j)}(hjFh]hopen()}(hjHhhhNhNubah}(h]h ](xrefjsc-funceh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdoc*userspace-api/media/v4l/vidioc-g-selection refdomainjsreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]je ASTIdentifier)} identifierV4LsbNasb reftargetopenuh1hhhhKhj<ubh.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(h5``argp`` Pointer to struct :c:type:`v4l2_selection`. h](j)}(h``argp``h]j)}(hjh]hargp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK!hjubj8)}(hhh]h)}(h+Pointer to struct :c:type:`v4l2_selection`.h](hPointer to struct }(hjhhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hjh]hv4l2_selection}(hjhhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_selectionuh1hhhhK!hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]uh1jhhhK!hjhhubeh}(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)}(h@The ioctls are used to query and configure selection rectangles.h]h@The ioctls are used to query and configure selection rectangles.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjhhubh)}(hXTo query the cropping (composing) rectangle set struct :c:type:`v4l2_selection` ``type`` field to the respective buffer type. The next step is setting the value of struct :c:type:`v4l2_selection` ``target`` field to ``V4L2_SEL_TGT_CROP`` (``V4L2_SEL_TGT_COMPOSE``). Please refer to table :ref:`v4l2-selections-common` or :ref:`selection-api` for additional targets. The ``flags`` and ``reserved`` fields of struct :c:type:`v4l2_selection` are ignored and they must be filled with zeros. The driver fills the rest of the structure or returns EINVAL error code if incorrect buffer type or target was used. If cropping (composing) is not supported then the active rectangle is not mutable and it is always equal to the bounds rectangle. Finally, the struct :c:type:`v4l2_rect` ``r`` rectangle is filled with the current cropping (composing) coordinates. The coordinates are expressed in driver-dependent units. The only exception are rectangles for images in raw formats, whose coordinates are always expressed in pixels.h](h7To query the cropping (composing) rectangle set struct }(hjhhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hjh]hv4l2_selection}(hjhhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_selectionuh1hhhhK(hjubh }(hjhhhNhNubj)}(h``type``h]htype}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS field to the respective buffer type. The next step is setting the value of struct }(hjhhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hjRh]hv4l2_selection}(hjThhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_selectionuh1hhhhK(hjubh }hjsbj)}(h ``target``h]htarget}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh field to }(hjhhhNhNubj)}(h``V4L2_SEL_TGT_CROP``h]hV4L2_SEL_TGT_CROP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (}(hjhhhNhNubj)}(h``V4L2_SEL_TGT_COMPOSE``h]hV4L2_SEL_TGT_COMPOSE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh). Please refer to table }(hjhhhNhNubh)}(h:ref:`v4l2-selections-common`h]hinline)}(hjh]hv4l2-selections-common}(hjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjreftyperef refexplicitrefwarnjsv4l2-selections-commonuh1hhhhK(hjubh or }(hjhhhNhNubh)}(h:ref:`selection-api`h]j)}(hjh]h selection-api}(hjhhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjreftyperef refexplicitrefwarnjs selection-apiuh1hhhhK(hjubh for additional targets. The }(hjhhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h ``reserved``h]hreserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh fields of struct }(hjhhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hjh]hv4l2_selection}(hjhhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_selectionuh1hhhhK(hjubhX< are ignored and they must be filled with zeros. The driver fills the rest of the structure or returns EINVAL error code if incorrect buffer type or target was used. If cropping (composing) is not supported then the active rectangle is not mutable and it is always equal to the bounds rectangle. Finally, the struct }(hjhhhNhNubh)}(h:c:type:`v4l2_rect`h]j)}(hj<h]h v4l2_rect}(hj>hhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjs v4l2_rectuh1hhhhK(hjubh }hjsbj)}(h``r``h]hr}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh rectangle is filled with the current cropping (composing) coordinates. The coordinates are expressed in driver-dependent units. The only exception are rectangles for images in raw formats, whose coordinates are always expressed in pixels.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK(hjhhubh)}(hXTo change the cropping (composing) rectangle set the struct :c:type:`v4l2_selection` ``type`` field to the respective buffer type. The next step is setting the value of struct :c:type:`v4l2_selection` ``target`` to ``V4L2_SEL_TGT_CROP`` (``V4L2_SEL_TGT_COMPOSE``). Please refer to table :ref:`v4l2-selections-common` or :ref:`selection-api` for additional targets. The struct :c:type:`v4l2_rect` ``r`` rectangle need to be set to the desired active area. Field struct :c:type:`v4l2_selection` ``reserved`` is ignored and must be filled with zeros. The driver may adjust coordinates of the requested rectangle. An application may introduce constraints to control rounding behaviour. The struct :c:type:`v4l2_selection` ``flags`` field must be set to one of the following:h](h`.h](hUsed to select between }(hj hhhNhNubh)}(hA:ref:`cropping and composing rectangles `h]j)}(hj h]h!cropping and composing rectangles}(hj hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainj& reftyperef refexplicitrefwarnjsv4l2-selections-commonuh1hhhhKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jZ hj ubeh}(h]h ]h"]h$]h&]uh1jU hjR ubjV )}(hhh](j[ )}(hhh]h)}(h__u32h]h__u32}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjQ ubah}(h]h ]h"]h$]h&]uh1jZ hjN ubj[ )}(hhh]h)}(h ``flags``h]j)}(hjm h]hflags}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1hhhhKhjh ubah}(h]h ]h"]h$]h&]uh1jZ hjN ubj[ )}(hhh]h)}(hnFlags controlling the selection rectangle adjustments, refer to :ref:`selection flags `.h](h@Flags controlling the selection rectangle adjustments, refer to }(hj hhhNhNubh)}(h-:ref:`selection flags `h]j)}(hj h]hselection flags}(hj hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainj reftyperef refexplicitrefwarnjsv4l2-selection-flagsuh1hhhhKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jZ hjN ubeh}(h]h ]h"]h$]h&]uh1jU hjR ubjV )}(hhh](j[ )}(hhh]h)}(hstruct :c:type:`v4l2_rect`h](hstruct }(hj hhhNhNubh)}(h:c:type:`v4l2_rect`h]j)}(hj h]h v4l2_rect}(hj hhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjs v4l2_rectuh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jZ hj ubj[ )}(hhh]h)}(h``r``h]j)}(hj h]hr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jZ hj ubj[ )}(hhh]h)}(hThe selection rectangle.h]hThe selection rectangle.}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj" ubah}(h]h ]h"]h$]h&]uh1jZ hj ubeh}(h]h ]h"]h$]h&]uh1jU hjR ubjV )}(hhh](j[ )}(hhh]h)}(h__u32h]h__u32}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjB ubah}(h]h ]h"]h$]h&]uh1jZ hj? ubj[ )}(hhh]h)}(h``reserved[9]``h]j)}(hj^ h]h reserved[9]}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ ubah}(h]h ]h"]h$]h&]uh1hhhhKhjY ubah}(h]h ]h"]h$]h&]uh1jZ hj? ubj[ )}(hhh]h)}(hNReserved fields for future use. Drivers and applications must zero this array.h]hNReserved fields for future use. Drivers and applications must zero this array.}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjy ubah}(h]h ]h"]h$]h&]uh1jZ hj? ubeh}(h]h ]h"]h$]h&]uh1jU hjR ubeh}(h]h ]h"]h$]h&]uh1jP hj- ubeh}(h]h ]h"]h$]h&]colsKuh1j+ hj ubeh}(h]id2ah ]h"]h$]h&]uh1j hjhhhNhNubhnote)}(hXUnfortunately in the case of multiplanar buffer types (``V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE`` and ``V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE``) this API was messed up with regards to how the :c:type:`v4l2_selection` ``type`` field should be filled in. Some drivers only accepted the ``_MPLANE`` buffer type while other drivers only accepted a non-multiplanar buffer type (i.e. without the ``_MPLANE`` at the end). Starting with kernel 4.13 both variations are allowed.h](h)}(hXUnfortunately in the case of multiplanar buffer types (``V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE`` and ``V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE``) this API was messed up with regards to how the :c:type:`v4l2_selection` ``type`` field should be filled in. Some drivers only accepted the ``_MPLANE`` buffer type while other drivers only accepted a non-multiplanar buffer type (i.e. without the ``_MPLANE`` at the end).h](h7Unfortunately in the case of multiplanar buffer types (}(hj hhhNhNubj)}(h&``V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE``h]h"V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh and }(hj hhhNhNubj)}(h%``V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE``h]h!V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh1) this API was messed up with regards to how the }(hj hhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hj h]hv4l2_selection}(hj hhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjsv4l2_selectionuh1hhhhKhj ubh }(hj hhhNhNubj)}(h``type``h]htype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh; field should be filled in. Some drivers only accepted the }(hj hhhNhNubj)}(h ``_MPLANE``h]h_MPLANE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh_ buffer type while other drivers only accepted a non-multiplanar buffer type (i.e. without the }(hj hhhNhNubj)}(h ``_MPLANE``h]h_MPLANE}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh at the end).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(h6Starting with kernel 4.13 both variations are allowed.h]h6Starting with kernel 4.13 both variations are allowed.}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j hjhhhhhNubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhK$ubh)}(hhh](h)}(h Return Valueh]h Return Value}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW 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 }(hjh hhhNhNubj)}(h ``errno``h]herrno}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh ubhM variable is set appropriately. The generic error codes are described at the }(hjh hhhNhNubh)}(h':ref:`Generic Error Codes `h]j)}(hj h]hGeneric Error Codes}(hj hhhNhNubah}(h]h ](jRstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj^ refdomainj reftyperef refexplicitrefwarnjs gen-errorsuh1hhhhKhjh ubh chapter.}(hjh hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjW hhubj)}(hhh](j)}(hEINVAL Given buffer type ``type`` or the selection target ``target`` is not supported, or the ``flags`` argument is not valid. h](j)}(hEINVALh]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj8)}(hhh]h)}(hwGiven buffer type ``type`` or the selection target ``target`` is not supported, or the ``flags`` argument is not valid.h](hGiven buffer type }(hj hhhNhNubj)}(h``type``h]htype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh or the selection target }(hj hhhNhNubj)}(h ``target``h]htarget}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is not supported, or the }(hj hhhNhNubj)}(h ``flags``h]hflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh argument is not valid.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j7hj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hERANGE It is not possible to adjust struct :c:type:`v4l2_rect` ``r`` rectangle to satisfy all constraints given in the ``flags`` argument. h](j)}(hERANGEh]hERANGE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj8)}(hhh]h)}(hIt is not possible to adjust struct :c:type:`v4l2_rect` ``r`` rectangle to satisfy all constraints given in the ``flags`` argument.h](h$It is not possible to adjust struct }(hj) hhhNhNubh)}(h:c:type:`v4l2_rect`h]j)}(hj3 h]h v4l2_rect}(hj5 hhhNhNubah}(h]h ](jRjsc-typeeh"]h$]h&]uh1jhj1 ubah}(h]h ]h"]h$]h&]refdocj^ refdomainjsreftypetype refexplicitrefwarnjdjhjs v4l2_rectuh1hhhhKhj) ubh }(hj) hhhNhNubj)}(h``r``h]hr}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj) ubh3 rectangle to satisfy all constraints given in the }(hj) hhhNhNubj)}(h ``flags``h]hflags}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj) ubh argument.}(hj) hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj& ubah}(h]h ]h"]h$]h&]uh1j7hj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(h=ENODATA Selection is not supported for this input or output. h](j)}(hENODATAh]hENODATA}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj8)}(hhh]h)}(h4Selection is not supported for this input or output.h]h4Selection is not supported for this input or output.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j7hj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(h|EBUSY It is not possible to apply change of the selection rectangle at the moment. Usually because streaming is in progress.h](j)}(hEBUSYh]hEBUSY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj8)}(hhh]h)}(hvIt is not possible to apply change of the selection rectangle at the moment. Usually because streaming is in progress.h]hvIt is not possible to apply change of the selection rectangle at the moment. Usually because streaming is in progress.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j7hj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h]h ]h"]h$]h&]uh1jhjW hhhhhNubeh}(h] return-valueah ]h"] return valueah$]h&]uh1hhhhhhhhKubeh}(h](+ioctl-vidioc-g-selection-vidioc-s-selectionheh ]h"](,ioctl vidioc_g_selection, vidioc_s_selectionvidioc_g_selectioneh$]h&]uh1hhhhhhhhKj}j hsj}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjZ footnote_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]hajA]j7aunameids}(j hj j hhjjjjjT jQ jjAj j u nametypes}(j j hjjjT jj uh}(hhj hhhjjj j)jjjjjQ jjAjEjjj jW jjJj j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j1KsRparse_messages]transform_messages](hsystem_message)}(hhh]h)}(hhh]h8Hyperlink target "vidioc-g-selection" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1jubj)}(hhh]h)}(hhh]h6Hyperlink target "sel-const-adjust" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineKvuh1jube transformerN include_log] decorationNhhub.