€•<Œ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”Œ;/translations/zh_CN/userspace-api/media/v4l/vidioc-g-output”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/zh_TW/userspace-api/media/v4l/vidioc-g-output”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/it_IT/userspace-api/media/v4l/vidioc-g-output”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/ja_JP/userspace-api/media/v4l/vidioc-g-output”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/ko_KR/userspace-api/media/v4l/vidioc-g-output”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/sp_SP/userspace-api/media/v4l/vidioc-g-output”Œ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ŸŒU/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/vidioc-g-output.rst”h KubhŒtarget”“”)”}”(hŒ.. _VIDIOC_G_OUTPUT:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œvidioc-g-output”uh1h´h KhhhžhhŸh³ubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ&ioctl VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT”h]”hŒ&ioctl VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT”…””}”(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ŒLVIDIOC_G_OUTPUT - VIDIOC_S_OUTPUT - Query or select the current video output”h]”hŒLVIDIOC_G_OUTPUT - VIDIOC_S_OUTPUT - Query or select the current video output”…””}”(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_G_OUTPUT (C macro)”Œc.V4L.VIDIOC_G_OUTPUT”hNt”auh1jhjhžhhŸNh NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒVIDIOC_G_OUTPUT”h]”hŒdesc_signature_line”“”)”}”(hŒVIDIOC_G_OUTPUT”h]”hŒ desc_name”“”)”}”(hŒVIDIOC_G_OUTPUT”h]”hŒ desc_sig_name”“”)”}”(hj+h]”hŒVIDIOC_G_OUTPUT”…””}”(hj;hžhhŸNh Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1j9hj5ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”h±h²uh1j3hj/hžhhŸh³h Kubah}”(h]”h ]”h"]”h$]”h&]”h±h²Œ add_permalink”ˆuh1j-Œsphinx_line_type”Œ declarator”hj)hžhhŸh³h Kubah}”(h]”j ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j'hŸh³h Khj$hžhubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jehj$hžhhŸh³h Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”jsŒobjtype”jtŒdesctype”jtŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j"hžhhjhŸNh Nubhé)”}”(hŒ1``int ioctl(int fd, VIDIOC_G_OUTPUT, int *argp)``”h]”hŒliteral”“”)”}”(hj€h]”hŒ-int ioctl(int fd, VIDIOC_G_OUTPUT, int *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”]”(jŒV4L.VIDIOC_S_OUTPUT (C macro)”Œc.V4L.VIDIOC_S_OUTPUT”hNt”auh1jhjhžhhŸNh Nubj#)”}”(hhh]”(j()”}”(hŒVIDIOC_S_OUTPUT”h]”j.)”}”(hŒVIDIOC_S_OUTPUT”h]”j4)”}”(hŒVIDIOC_S_OUTPUT”h]”j:)”}”(hjªh]”hŒVIDIOC_S_OUTPUT”…””}”(hj´hžhhŸNh Nubah}”(h]”h ]”jEah"]”h$]”h&]”uh1j9hj°ubah}”(h]”h ]”(jLjMeh"]”h$]”h&]”h±h²uh1j3hj¬hžhhŸh³h Kubah}”(h]”h ]”h"]”h$]”h&]”h±h²jWˆuh1j-jXjYhj¨hžhhŸh³h Kubah}”(h]”j£ah ]”(j]j^eh"]”h$]”h&]”jbˆjc)jdhuh1j'hŸh³h Khj¥hžhubjf)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jehj¥hžhhŸh³h Kubeh}”(h]”h ]”(jsŒmacro”eh"]”h$]”h&]”jxjsjyjßjzjßj{‰j|‰j}‰uh1j"hžhhjhŸNh Nubhé)”}”(hŒ1``int ioctl(int fd, VIDIOC_S_OUTPUT, int *argp)``”h]”jƒ)”}”(hjåh]”hŒ-int ioctl(int fd, VIDIOC_S_OUTPUT, int *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ƒ)”}”(hj"h]”hŒfd”…””}”(hj$hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h KhjubhŒ definition”“”)”}”(hhh]”hé)”}”(hŒ-File descriptor returned by :c:func:`open()`.”h]”(hŒFile descriptor returned by ”…””}”(hj<hžhhŸNh Nubh)”}”(hŒ:c:func:`open()`”h]”jƒ)”}”(hjFh]”hŒopen()”…””}”(hjHhžhhŸNh Nubah}”(h]”h ]”(Œxref”jsŒc-func”eh"]”h$]”h&]”uh1j‚hjDubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ'userspace-api/media/v4l/vidioc-g-output”Œ refdomain”jsŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”jeŒ ASTIdentifier”“”)”}”Œ identifier”ŒV4L”sbN†”asbŒ reftarget”Œopen”uh1hhŸh³h Khj<ubhŒ.”…””}”(hj<hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h Khj9ubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h Khjubj)”}”(hŒ2``argp`` Pointer to an integer with output index. ”h]”(j)”}”(hŒ``argp``”h]”jƒ)”}”(hj‘h]”hŒargp”…””}”(hj“hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K!hj‹ubj8)”}”(hhh]”hé)”}”(hŒ(Pointer to an integer with output index.”h]”hŒ(Pointer to an integer with output index.”…””}”(hj©hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K!hj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hj‹ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K!hjhžhubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjhž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ÇhjÑhžhhŸh³h K$ubhé)”}”(hXMTo query the current video output applications call the :ref:`VIDIOC_G_OUTPUT ` ioctl with a pointer to an integer where the driver stores the number of the output, as in the struct :c:type:`v4l2_output` ``index`` field. This ioctl will fail only when there are no video outputs, returning the ``EINVAL`` error code.”h]”(hŒ8To query the current video output applications call the ”…””}”(hjâhžhhŸNh Nubh)”}”(hŒ(:ref:`VIDIOC_G_OUTPUT `”h]”hŒinline”“”)”}”(hjìh]”hŒVIDIOC_G_OUTPUT”…””}”(hjðhžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jîhjêubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”júŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjsŒvidioc_g_output”uh1hhŸh³h K&hjâubhŒg ioctl with a pointer to an integer where the driver stores the number of the output, as in the struct ”…””}”(hjâhžhhŸNh Nubh)”}”(hŒ:c:type:`v4l2_output`”h]”jƒ)”}”(hjh]”hŒ v4l2_output”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”(jRjsŒc-type”eh"]”h$]”h&]”uh1j‚hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jsŒreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jdjhjsŒ v4l2_output”uh1hhŸh³h K&hjâubhŒ ”…””}”(hjâhžhhŸNh Nubjƒ)”}”(hŒ ``index``”h]”hŒindex”…””}”(hj3hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjâubhŒQ field. This ioctl will fail only when there are no video outputs, returning the ”…””}”(hjâhžhhŸNh Nubjƒ)”}”(hŒ ``EINVAL``”h]”hŒEINVAL”…””}”(hjEhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjâubhŒ error code.”…””}”(hjâhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K&hjÑhžhubhé)”}”(hXÅTo select a video output applications store the number of the desired output in an integer and call the :ref:`VIDIOC_S_OUTPUT ` ioctl with a pointer to this integer. Side effects are possible. For example outputs may support different video standards, so the driver may implicitly switch the current standard. Because of these possible side effects applications must select an output before querying or negotiating any other parameters.”h]”(hŒhTo select a video output applications store the number of the desired output in an integer and call the ”…””}”(hj]hžhhŸNh Nubh)”}”(hŒ(:ref:`VIDIOC_S_OUTPUT `”h]”jï)”}”(hjgh]”hŒVIDIOC_S_OUTPUT”…””}”(hjihžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jîhjeubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jsŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjsŒvidioc_g_output”uh1hhŸh³h K-hj]ubhX5 ioctl with a pointer to this integer. Side effects are possible. For example outputs may support different video standards, so the driver may implicitly switch the current standard. Because of these possible side effects applications must select an output before querying or negotiating any other parameters.”…””}”(hj]hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K-hjÑhžhubhé)”}”(hŒVInformation about video outputs is available using the :ref:`VIDIOC_ENUMOUTPUT` ioctl.”h]”(hŒ7Information about video outputs is available using the ”…””}”(hjhžhhŸNh Nubh)”}”(hŒ:ref:`VIDIOC_ENUMOUTPUT`”h]”jï)”}”(hj™h]”hŒVIDIOC_ENUMOUTPUT”…””}”(hj›hžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jîhj—ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”j¥Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjsŒvidioc_enumoutput”uh1hhŸh³h K5hjubhŒ ioctl.”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K5hjÑhžhubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K$ubhÃ)”}”(hhh]”(hÈ)”}”(hŒ Return Value”h]”hŒ Return Value”…””}”(hjÌhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhjÉhžhhŸh³h K9ubhé)”}”(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 ”…””}”(hjÚhžhhŸNh Nubjƒ)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjâhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjÚubhŒM variable is set appropriately. The generic error codes are described at the ”…””}”(hjÚhžhhŸNh Nubh)”}”(hŒ':ref:`Generic Error Codes `”h]”jï)”}”(hjöh]”hŒGeneric Error Codes”…””}”(hjøhžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jîhjôubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjsŒ gen-errors”uh1hhŸh³h K;hjÚubhŒ chapter.”…””}”(hjÚhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K;hjÉhžhubj)”}”(hhh]”j)”}”(hŒ]EINVAL The number of the video output is out of bounds, or there are no video outputs at all.”h]”(j)”}”(hŒEINVAL”h]”hŒEINVAL”…””}”(hj%hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K@hj!ubj8)”}”(hhh]”hé)”}”(hŒVThe number of the video output is out of bounds, or there are no video outputs at all.”h]”hŒVThe number of the video output is out of bounds, or there are no video outputs at all.”…””}”(hj6hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K@hj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hj!ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K@hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjÉhžhhŸh³h Nubeh}”(h]”Œ return-value”ah ]”h"]”Œ return value”ah$]”h&]”uh1hÂhhÄhžhhŸh³h K9ubeh}”(h]”(Œ%ioctl-vidioc-g-output-vidioc-s-output”hÁeh ]”h"]”(Œ&ioctl vidioc_g_output, vidioc_s_output”Œvidioc_g_output”eh$]”h&]”uh1hÂhhhžhhŸh³h KŒexpect_referenced_by_name”}”jdh¶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”Œ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”}”hÁ]”h¶asŒnameids”}”(jdhÁjcj`hýhújÿjüjÎjËjÆjÃj[jXuŒ nametypes”}”(jdˆjc‰hý‰jÿ‰jΉjƉj[‰uh}”(hÁhÄj`hÄhúh×jüjj j)j£j¨jËjjÃjÑjXjÉ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”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hé)”}”(hhh]”hŒ5Hyperlink target "vidioc-g-output" is not referenced.”…””}”hjøsbah}”(h]”h ]”h"]”h$]”h&]”uh1hèhjõubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”h³Œline”Kuh1jóubaŒ transformer”NŒ include_log”]”Œ decoration”Nhžhub.