€•xcŒ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”ŒG/translations/zh_CN/userspace-api/media/v4l/selection-api-configuration”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒG/translations/zh_TW/userspace-api/media/v4l/selection-api-configuration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒG/translations/it_IT/userspace-api/media/v4l/selection-api-configuration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒG/translations/ja_JP/userspace-api/media/v4l/selection-api-configuration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒG/translations/ko_KR/userspace-api/media/v4l/selection-api-configuration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒG/translations/pt_BR/userspace-api/media/v4l/selection-api-configuration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒG/translations/sp_SP/userspace-api/media/v4l/selection-api-configuration”Œ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³Œa/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/selection-api-configuration.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ Configuration”h]”hŒ Configuration”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)”}”(hŒªApplications can use the :ref:`selection API ` to select an area in a video signal or a buffer, and to query for default settings and hardware limits.”h]”(hŒApplications can use the ”…””}”(hhßh²hh³Nh´Nubh)”}”(hŒ):ref:`selection API `”h]”hŒinline”“”)”}”(hhéh]”hŒ selection API”…””}”(hhíh²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhhçubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ3userspace-api/media/v4l/selection-api-configuration”Œ refdomain”høŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œvidioc_g_selection”uh1hh³hÇh´KhhßubhŒh to select an area in a video signal or a buffer, and to query for default settings and hardware limits.”…””}”(hhßh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)”}”(hX€Video hardware can have various cropping, composing and scaling limitations. It may only scale up or down, support only discrete scaling factors, or have different scaling abilities in the horizontal and vertical directions. Also it may not support scaling at all. At the same time the cropping/composing rectangles may have to be aligned, and both the source and the sink may have arbitrary upper and lower size limits. Therefore, as usual, drivers are expected to adjust the requested parameters and return the actual values selected. An application can control the rounding behaviour using :ref:`constraint flags `.”h]”(hXQVideo hardware can have various cropping, composing and scaling limitations. It may only scale up or down, support only discrete scaling factors, or have different scaling abilities in the horizontal and vertical directions. Also it may not support scaling at all. At the same time the cropping/composing rectangles may have to be aligned, and both the source and the sink may have arbitrary upper and lower size limits. Therefore, as usual, drivers are expected to adjust the requested parameters and return the actual values selected. An application can control the rounding behaviour using ”…””}”(hjh²hh³Nh´Nubh)”}”(hŒ.:ref:`constraint flags `”h]”hì)”}”(hj h]”hŒconstraint flags”…””}”(hj"h²hh³Nh´Nubah}”(h]”h ]”(h÷Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j,Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj Œv4l2-selection-flags”uh1hh³hÇh´K hjubhŒ.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhÊh²hubhÉ)”}”(hhh]”(hÎ)”}”(hŒConfiguration of video capture”h]”hŒConfiguration of video capture”…””}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjHh²hh³hÇh´KubhÞ)”}”(hŒÆSee figure :ref:`sel-targets-capture` for examples of the selection targets available for a video capture device. It is recommended to configure the cropping targets before to the composing targets.”h]”(hŒ See figure ”…””}”(hjYh²hh³Nh´Nubh)”}”(hŒ:ref:`sel-targets-capture`”h]”hì)”}”(hjch]”hŒsel-targets-capture”…””}”(hjeh²hh³Nh´Nubah}”(h]”h ]”(h÷Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhjaubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”joŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj Œsel-targets-capture”uh1hh³hÇh´KhjYubhŒ¡ for examples of the selection targets available for a video capture device. It is recommended to configure the cropping targets before to the composing targets.”…””}”(hjYh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjHh²hubhÞ)”}”(hX&The range of coordinates of the top left corner, width and height of areas that can be sampled is given by the ``V4L2_SEL_TGT_CROP_BOUNDS`` target. It is recommended for the driver developers to put the top/left corner at position ``(0,0)``. The rectangle's coordinates are expressed in pixels.”h]”(hŒoThe range of coordinates of the top left corner, width and height of areas that can be sampled is given by the ”…””}”(hj‹h²hh³Nh´NubhŒliteral”“”)”}”(hŒ``V4L2_SEL_TGT_CROP_BOUNDS``”h]”hŒV4L2_SEL_TGT_CROP_BOUNDS”…””}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj‹ubhŒ\ target. It is recommended for the driver developers to put the top/left corner at position ”…””}”(hj‹h²hh³Nh´Nubj”)”}”(hŒ ``(0,0)``”h]”hŒ(0,0)”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj‹ubhŒ8. The rectangle’s coordinates are expressed in pixels.”…””}”(hj‹h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjHh²hubhÞ)”}”(hXƒThe top left corner, width and height of the source rectangle, that is the area actually sampled, is given by the ``V4L2_SEL_TGT_CROP`` target. It uses the same coordinate system as ``V4L2_SEL_TGT_CROP_BOUNDS``. The active cropping area must lie completely inside the capture boundaries. The driver may further adjust the requested size and/or position according to hardware limitations.”h]”(hŒrThe top left corner, width and height of the source rectangle, that is the area actually sampled, is given by the ”…””}”(hj¿h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP``”h]”hŒV4L2_SEL_TGT_CROP”…””}”(hjÇh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj¿ubhŒ/ target. It uses the same coordinate system as ”…””}”(hj¿h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP_BOUNDS``”h]”hŒV4L2_SEL_TGT_CROP_BOUNDS”…””}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj¿ubhŒ±. The active cropping area must lie completely inside the capture boundaries. The driver may further adjust the requested size and/or position according to hardware limitations.”…””}”(hj¿h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K%hjHh²hubhÞ)”}”(hX#Each capture device has a default source rectangle, given by the ``V4L2_SEL_TGT_CROP_DEFAULT`` target. This rectangle shall cover what the driver writer considers the complete picture. Drivers shall set the active crop rectangle to the default when the driver is first loaded, but not later.”h]”(hŒAEach capture device has a default source rectangle, given by the ”…””}”(hjñh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP_DEFAULT``”h]”hŒV4L2_SEL_TGT_CROP_DEFAULT”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjñubhŒÅ target. This rectangle shall cover what the driver writer considers the complete picture. Drivers shall set the active crop rectangle to the default when the driver is first loaded, but not later.”…””}”(hjñh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K,hjHh²hubhÞ)”}”(hXSThe composing targets refer to a memory buffer. The limits of composing coordinates are obtained using ``V4L2_SEL_TGT_COMPOSE_BOUNDS``. All coordinates are expressed in pixels. The rectangle's top/left corner must be located at position ``(0,0)``. The width and height are equal to the image size set by :ref:`VIDIOC_S_FMT `.”h]”(hŒgThe composing targets refer to a memory buffer. The limits of composing coordinates are obtained using ”…””}”(hjh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE_BOUNDS``”h]”hŒV4L2_SEL_TGT_COMPOSE_BOUNDS”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjubhŒi. All coordinates are expressed in pixels. The rectangle’s top/left corner must be located at position ”…””}”(hjh²hh³Nh´Nubj”)”}”(hŒ ``(0,0)``”h]”hŒ(0,0)”…””}”(hj+h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjubhŒ:. The width and height are equal to the image size set by ”…””}”(hjh²hh³Nh´Nubh)”}”(hŒ":ref:`VIDIOC_S_FMT `”h]”hì)”}”(hj?h]”hŒ VIDIOC_S_FMT”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”(h÷Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhj=ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jKŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj Œ vidioc_g_fmt”uh1hh³hÇh´K2hjubhŒ.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K2hjHh²hubhÞ)”}”(hX/The part of a buffer into which the image is inserted by the hardware is controlled by the ``V4L2_SEL_TGT_COMPOSE`` target. The rectangle's coordinates are also expressed in the same coordinate system as the bounds rectangle. The composing rectangle must lie completely inside bounds rectangle. The driver must adjust the composing rectangle to fit to the bounding limits. Moreover, the driver can perform other adjustments according to hardware limitations. The application can control rounding behaviour using :ref:`constraint flags `.”h]”(hŒ[The part of a buffer into which the image is inserted by the hardware is controlled by the ”…””}”(hjgh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE``”h]”hŒV4L2_SEL_TGT_COMPOSE”…””}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjgubhX target. The rectangle’s coordinates are also expressed in the same coordinate system as the bounds rectangle. The composing rectangle must lie completely inside bounds rectangle. The driver must adjust the composing rectangle to fit to the bounding limits. Moreover, the driver can perform other adjustments according to hardware limitations. The application can control rounding behaviour using ”…””}”(hjgh²hh³Nh´Nubh)”}”(hŒ.:ref:`constraint flags `”h]”hì)”}”(hjƒh]”hŒconstraint flags”…””}”(hj…h²hh³Nh´Nubah}”(h]”h ]”(h÷Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj Œv4l2-selection-flags”uh1hh³hÇh´K8hjgubhŒ.”…””}”(hjgh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K8hjHh²hubhÞ)”}”(hŒ•For capture devices the default composing rectangle is queried using ``V4L2_SEL_TGT_COMPOSE_DEFAULT``. It is usually equal to the bounding rectangle.”h]”(hŒEFor capture devices the default composing rectangle is queried using ”…””}”(hj«h²hh³Nh´Nubj”)”}”(hŒ ``V4L2_SEL_TGT_COMPOSE_DEFAULT``”h]”hŒV4L2_SEL_TGT_COMPOSE_DEFAULT”…””}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj«ubhŒ0. It is usually equal to the bounding rectangle.”…””}”(hj«h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KBhjHh²hubhÞ)”}”(hX The part of a buffer that is modified by the hardware is given by ``V4L2_SEL_TGT_COMPOSE_PADDED``. It contains all pixels defined using ``V4L2_SEL_TGT_COMPOSE`` plus all padding data modified by hardware during insertion process. All pixels outside this rectangle *must not* be changed by the hardware. The content of pixels that lie inside the padded area but outside active area is undefined. The application can use the padded and active rectangles to detect where the rubbish pixels are located and remove them if needed.”h]”(hŒBThe part of a buffer that is modified by the hardware is given by ”…””}”(hjËh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE_PADDED``”h]”hŒV4L2_SEL_TGT_COMPOSE_PADDED”…””}”(hjÓh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjËubhŒ'. It contains all pixels defined using ”…””}”(hjËh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE``”h]”hŒV4L2_SEL_TGT_COMPOSE”…””}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjËubhŒh plus all padding data modified by hardware during insertion process. All pixels outside this rectangle ”…””}”(hjËh²hh³Nh´NubhŒemphasis”“”)”}”(hŒ *must not*”h]”hŒmust not”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j÷hjËubhŒû be changed by the hardware. The content of pixels that lie inside the padded area but outside active area is undefined. The application can use the padded and active rectangles to detect where the rubbish pixels are located and remove them if needed.”…””}”(hjËh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KFhjHh²hubeh}”(h]”Œconfiguration-of-video-capture”ah ]”h"]”Œconfiguration of video capture”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒConfiguration of video output”h]”hŒConfiguration of video output”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´KQubhÞ)”}”(hX-For output devices targets and ioctls are used similarly to the video capture case. The *composing* rectangle refers to the insertion of an image into a video signal. The cropping rectangles refer to a memory buffer. It is recommended to configure the composing targets before to the cropping targets.”h]”(hŒXFor output devices targets and ioctls are used similarly to the video capture case. The ”…””}”(hj*h²hh³Nh´Nubjø)”}”(hŒ *composing*”h]”hŒ composing”…””}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j÷hj*ubhŒÊ rectangle refers to the insertion of an image into a video signal. The cropping rectangles refer to a memory buffer. It is recommended to configure the composing targets before to the cropping targets.”…””}”(hj*h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KShjh²hubhÞ)”}”(hX”The cropping targets refer to the memory buffer that contains an image to be inserted into a video signal or graphical screen. The limits of cropping coordinates are obtained using ``V4L2_SEL_TGT_CROP_BOUNDS``. All coordinates are expressed in pixels. The top/left corner is always point ``(0,0)``. The width and height is equal to the image size specified using :ref:`VIDIOC_S_FMT ` ioctl.”h]”(hŒµThe cropping targets refer to the memory buffer that contains an image to be inserted into a video signal or graphical screen. The limits of cropping coordinates are obtained using ”…””}”(hjJh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP_BOUNDS``”h]”hŒV4L2_SEL_TGT_CROP_BOUNDS”…””}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjJubhŒO. All coordinates are expressed in pixels. The top/left corner is always point ”…””}”(hjJh²hh³Nh´Nubj”)”}”(hŒ ``(0,0)``”h]”hŒ(0,0)”…””}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjJubhŒB. The width and height is equal to the image size specified using ”…””}”(hjJh²hh³Nh´Nubh)”}”(hŒ":ref:`VIDIOC_S_FMT `”h]”hì)”}”(hjxh]”hŒ VIDIOC_S_FMT”…””}”(hjzh²hh³Nh´Nubah}”(h]”h ]”(h÷Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhjvubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j„Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆj Œ vidioc_g_fmt”uh1hh³hÇh´KYhjJubhŒ ioctl.”…””}”(hjJh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KYhjh²hubhÞ)”}”(hX°The top left corner, width and height of the source rectangle, that is the area from which image date are processed by the hardware, is given by the ``V4L2_SEL_TGT_CROP``. Its coordinates are expressed in the same coordinate system as the bounds rectangle. The active cropping area must lie completely inside the crop boundaries and the driver may further adjust the requested size and/or position according to hardware limitations.”h]”(hŒ•The top left corner, width and height of the source rectangle, that is the area from which image date are processed by the hardware, is given by the ”…””}”(hj h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP``”h]”hŒV4L2_SEL_TGT_CROP”…””}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj ubhX. Its coordinates are expressed in the same coordinate system as the bounds rectangle. The active cropping area must lie completely inside the crop boundaries and the driver may further adjust the requested size and/or position according to hardware limitations.”…””}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K`hjh²hubhÞ)”}”(hŒFor output devices the default cropping rectangle is queried using ``V4L2_SEL_TGT_CROP_DEFAULT``. It is usually equal to the bounding rectangle.”h]”(hŒCFor output devices the default cropping rectangle is queried using ”…””}”(hjÀh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP_DEFAULT``”h]”hŒV4L2_SEL_TGT_CROP_DEFAULT”…””}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjÀubhŒ0. It is usually equal to the bounding rectangle.”…””}”(hjÀh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khhjh²hubhÞ)”}”(hXŸThe part of a video signal or graphics display where the image is inserted by the hardware is controlled by ``V4L2_SEL_TGT_COMPOSE`` target. The rectangle's coordinates are expressed in pixels. The composing rectangle must lie completely inside the bounds rectangle. The driver must adjust the area to fit to the bounding limits. Moreover, the driver can perform other adjustments according to hardware limitations.”h]”(hŒlThe part of a video signal or graphics display where the image is inserted by the hardware is controlled by ”…””}”(hjàh²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE``”h]”hŒV4L2_SEL_TGT_COMPOSE”…””}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjàubhX target. The rectangle’s coordinates are expressed in pixels. The composing rectangle must lie completely inside the bounds rectangle. The driver must adjust the area to fit to the bounding limits. Moreover, the driver can perform other adjustments according to hardware limitations.”…””}”(hjàh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Klhjh²hubhÞ)”}”(hXxThe device has a default composing rectangle, given by the ``V4L2_SEL_TGT_COMPOSE_DEFAULT`` target. This rectangle shall cover what the driver writer considers the complete picture. It is recommended for the driver developers to put the top/left corner at position ``(0,0)``. Drivers shall set the active composing rectangle to the default one when the driver is first loaded.”h]”(hŒ;The device has a default composing rectangle, given by the ”…””}”(hjh²hh³Nh´Nubj”)”}”(hŒ ``V4L2_SEL_TGT_COMPOSE_DEFAULT``”h]”hŒV4L2_SEL_TGT_COMPOSE_DEFAULT”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjubhŒ® target. This rectangle shall cover what the driver writer considers the complete picture. It is recommended for the driver developers to put the top/left corner at position ”…””}”(hjh²hh³Nh´Nubj”)”}”(hŒ ``(0,0)``”h]”hŒ(0,0)”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hjubhŒf. Drivers shall set the active composing rectangle to the default one when the driver is first loaded.”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kshjh²hubhÞ)”}”(hXÅThe devices may introduce additional content to video signal other than an image from memory buffers. It includes borders around an image. However, such a padded area is driver-dependent feature not covered by this document. Driver developers are encouraged to keep padded rectangle equal to active one. The padded target is accessed by the ``V4L2_SEL_TGT_COMPOSE_PADDED`` identifier. It must contain all pixels from the ``V4L2_SEL_TGT_COMPOSE`` target.”h]”(hXUThe devices may introduce additional content to video signal other than an image from memory buffers. It includes borders around an image. However, such a padded area is driver-dependent feature not covered by this document. Driver developers are encouraged to keep padded rectangle equal to active one. The padded target is accessed by the ”…””}”(hj2h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE_PADDED``”h]”hŒV4L2_SEL_TGT_COMPOSE_PADDED”…””}”(hj:h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj2ubhŒ1 identifier. It must contain all pixels from the ”…””}”(hj2h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE``”h]”hŒV4L2_SEL_TGT_COMPOSE”…””}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj2ubhŒ target.”…””}”(hj2h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kzhjh²hubeh}”(h]”Œconfiguration-of-video-output”ah ]”h"]”Œconfiguration of video output”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KQubhÉ)”}”(hhh]”(hÎ)”}”(hŒScaling control”h]”hŒScaling control”…””}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjlh²hh³hÇh´K„ubhÞ)”}”(hX'An application can detect if scaling is performed by comparing the width and the height of rectangles obtained using ``V4L2_SEL_TGT_CROP`` and ``V4L2_SEL_TGT_COMPOSE`` targets. If these are not equal then the scaling is applied. The application can compute the scaling ratios using these values.”h]”(hŒuAn application can detect if scaling is performed by comparing the width and the height of rectangles obtained using ”…””}”(hj}h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_CROP``”h]”hŒV4L2_SEL_TGT_CROP”…””}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj}ubhŒ and ”…””}”(hj}h²hh³Nh´Nubj”)”}”(hŒ``V4L2_SEL_TGT_COMPOSE``”h]”hŒV4L2_SEL_TGT_COMPOSE”…””}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj}ubhŒ€ targets. If these are not equal then the scaling is applied. The application can compute the scaling ratios using these values.”…””}”(hj}h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K†hjlh²hubeh}”(h]”Œscaling-control”ah ]”h"]”Œscaling control”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K„ubeh}”(h]”Œ configuration”ah ]”h"]”Œ configuration”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(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”Œentry”Œ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”}”Œnameids”}”(j¼j¹jjjijfj´j±uŒ nametypes”}”(j¼‰j‰ji‰j´‰uh}”(j¹hÊjjHjfjj±jluŒ 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”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.