?sphinx.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]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget>/translations/pt_BR/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_SELECTIONhNtauh1j%hjhhhNhNubhdesc)}(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}(hjOhhhNhNubah}(h]h ]nah"]h$]h&]uh1jMhjIubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jGhjChhhhhKubah}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1jAsphinx_line_type declaratorhj=hhhhhKubah}(h]j4ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j;hhhKhj8hhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1jyhj8hhhhhKubeh}(h]h ](cmacroeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j6hhhjhNhNubh)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj&)}(hhh]h}(h]h ]h"]h$]h&]entries](j2 V4L.VIDIOC_S_SELECTION (C macro)c.V4L.VIDIOC_S_SELECTIONhNtauh1j%hjhhhNhNubj7)}(hhh](j<)}(hVIDIOC_S_SELECTIONh]jB)}(hVIDIOC_S_SELECTIONh]jH)}(hVIDIOC_S_SELECTIONh]jN)}(hjh]hVIDIOC_S_SELECTION}(hjhhhNhNubah}(h]h ]jYah"]h$]h&]uh1jMhjubah}(h]h ](j`jaeh"]h$]h&]hhuh1jGhjhhhhhKubah}(h]h ]h"]h$]h&]hhjkuh1jAjljmhjhhhhhKubah}(h]jah ](jqjreh"]h$]h&]jvjw)jxhuh1j;hhhKhjhhubjz)}(hhh]h}(h]h ]h"]h$]h&]uh1jyhjhhhhhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j6hhhjhNhNubh)}(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)}(hj6h]hfd}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1j2hhhKhj.ubh definition)}(hhh]h)}(h-File descriptor returned by :c:func:`open()`.h](hFile descriptor returned by }(hjPhhhNhNubh)}(h:c:func:`open()`h]j)}(hjZh]hopen()}(hj\hhhNhNubah}(h]h ](xrefjc-funceh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdoc*userspace-api/media/v4l/vidioc-g-selection refdomainjreftypefunc refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]jy ASTIdentifier)} identifierV4LsbNasb reftargetopenuh1hhhhKhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjMubah}(h]h ]h"]h$]h&]uh1jKhj.ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj)ubj-)}(h5``argp`` Pointer to struct :c:type:`v4l2_selection`. h](j3)}(h``argp``h]j)}(hjh]hargp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j2hhhK!hjubjL)}(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 ](jfjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_selectionuh1hhhhK!hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]uh1j,hhhK!hj)hhubeh}(h]h ]h"]h$]h&]uh1j'hjhhhhhNubeh}(h] argumentsah ]h"] argumentsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Descriptionh]h Description}(hj hhhNhNubah}(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 }(hj'hhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hj1h]hv4l2_selection}(hj3hhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_selectionuh1hhhhK(hj'ubh }(hj'hhhNhNubj)}(h``type``h]htype}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubhS field to the respective buffer type. The next step is setting the value of struct }(hj'hhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hjfh]hv4l2_selection}(hjhhhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_selectionuh1hhhhK(hj'ubh }hj'sbj)}(h ``target``h]htarget}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh field to }(hj'hhhNhNubj)}(h``V4L2_SEL_TGT_CROP``h]hV4L2_SEL_TGT_CROP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh (}(hj'hhhNhNubj)}(h``V4L2_SEL_TGT_COMPOSE``h]hV4L2_SEL_TGT_COMPOSE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh). Please refer to table }(hj'hhhNhNubh)}(h:ref:`v4l2-selections-common`h]hinline)}(hjh]hv4l2-selections-common}(hjhhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftyperef refexplicitrefwarnjv4l2-selections-commonuh1hhhhK(hj'ubh or }(hj'hhhNhNubh)}(h:ref:`selection-api`h]j)}(hjh]h selection-api}(hjhhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftyperef refexplicitrefwarnj selection-apiuh1hhhhK(hj'ubh for additional targets. The }(hj'hhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh and }(hj'hhhNhNubj)}(h ``reserved``h]hreserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh fields of struct }(hj'hhhNhNubh)}(h:c:type:`v4l2_selection`h]j)}(hj-h]hv4l2_selection}(hj/hhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_selectionuh1hhhhK(hj'ubhX< 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 }(hj'hhhNhNubh)}(h:c:type:`v4l2_rect`h]j)}(hjPh]h v4l2_rect}(hjRhhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|j v4l2_rectuh1hhhhK(hj'ubh }hj'sbj)}(h``r``h]hr}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh 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.}(hj'hhhNhNubeh}(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}(hj0 hhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jhj, ubah}(h]h ]h"]h$]h&]refdocjr refdomainj: reftyperef refexplicitrefwarnjv4l2-selections-commonuh1hhhhKhj$ ubh.}(hj$ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj! ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hjf ubjj )}(hhh](jo )}(hhh]h)}(h__u32h]h__u32}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhje ubah}(h]h ]h"]h$]h&]uh1jn hjb ubjo )}(hhh]h)}(h ``flags``h]j)}(hj h]hflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj| ubah}(h]h ]h"]h$]h&]uh1jn hjb ubjo )}(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 ](jfstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainj reftyperef refexplicitrefwarnjv4l2-selection-flagsuh1hhhhKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jn hjb ubeh}(h]h ]h"]h$]h&]uh1ji hjf ubjj )}(hhh](jo )}(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 ](jfjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|j v4l2_rectuh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jn hj ubjo )}(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&]uh1jn hj ubjo )}(hhh]h)}(hThe selection rectangle.h]hThe selection rectangle.}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6 ubah}(h]h ]h"]h$]h&]uh1jn hj ubeh}(h]h ]h"]h$]h&]uh1ji hjf ubjj )}(hhh](jo )}(hhh]h)}(h__u32h]h__u32}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjV ubah}(h]h ]h"]h$]h&]uh1jn hjS ubjo )}(hhh]h)}(h``reserved[9]``h]j)}(hjr h]h reserved[9]}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp ubah}(h]h ]h"]h$]h&]uh1hhhhKhjm ubah}(h]h ]h"]h$]h&]uh1jn hjS ubjo )}(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&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jn hjS ubeh}(h]h ]h"]h$]h&]uh1ji hjf ubeh}(h]h ]h"]h$]h&]uh1jd hjA 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 ](jfjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|jv4l2_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}(hj7 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.}(hjO 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}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk 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]j)}(hj h]hGeneric Error Codes}(hj hhhNhNubah}(h]h ](jfstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjr refdomainj reftyperef refexplicitrefwarnj gen-errorsuh1hhhhKhj| ubh chapter.}(hj| hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjk hhubj()}(hhh](j-)}(hEINVAL Given buffer type ``type`` or the selection target ``target`` is not supported, or the ``flags`` argument is not valid. h](j3)}(hEINVALh]hEINVAL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hhhKhj ubjL)}(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&]uh1jKhj ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj 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](j3)}(hERANGEh]hERANGE}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hhhKhj( ubjL)}(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)}(hjG h]h v4l2_rect}(hjI hhhNhNubah}(h]h ](jfjc-typeeh"]h$]h&]uh1jhjE ubah}(h]h ]h"]h$]h&]refdocjr refdomainjreftypetype refexplicitrefwarnjxj|j v4l2_rectuh1hhhhKhj= ubh }(hj= hhhNhNubj)}(h``r``h]hr}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubh3 rectangle to satisfy all constraints given in the }(hj= hhhNhNubj)}(h ``flags``h]hflags}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubh argument.}(hj= hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj: ubah}(h]h ]h"]h$]h&]uh1jKhj( ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj hhubj-)}(h=ENODATA Selection is not supported for this input or output. h](j3)}(hENODATAh]hENODATA}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hhhKhj ubjL)}(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&]uh1jKhj ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj hhubj-)}(h|EBUSY It is not possible to apply change of the selection rectangle at the moment. Usually because streaming is in progress.h](j3)}(hEBUSYh]hEBUSY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hhhKhj ubjL)}(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&]uh1jKhj ubeh}(h]h ]h"]h$]h&]uh1j,hhhKhj hhubeh}(h]h ]h"]h$]h&]uh1j'hjk 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}jhsj}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjn 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_handlerj7error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _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]hajU]jKaunameids}(jhjj jjjjjjjh je jjUjju nametypes}(jjjjjjh jjuh}(hhj hjhjjj4j=jjjjje jjUjYjjjjk jj^j j. u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jEKsRparse_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&]levelKtypeINFOsourcehnjlineKuh1jubj)}(hhh]h)}(hhh]h6Hyperlink target "sel-const-adjust" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehnjlineKvuh1jube transformerN include_log] decorationNhhub.