€•CCŒ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-querystd”Œ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-querystd”Œ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-querystd”Œ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-querystd”Œ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-querystd”Œ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-querystd”Œ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-querystd.rst”h KubhŒtarget”“”)”}”(hŒ.. _VIDIOC_QUERYSTD:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œvidioc-querystd”uh1h´h KhhhžhhŸh³ubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ-ioctl VIDIOC_QUERYSTD, VIDIOC_SUBDEV_QUERYSTD”h]”hŒ-ioctl VIDIOC_QUERYSTD, VIDIOC_SUBDEV_QUERYSTD”…””}”(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ŒaVIDIOC_QUERYSTD - VIDIOC_SUBDEV_QUERYSTD - Sense the video standard received by the current input”h]”hŒaVIDIOC_QUERYSTD - VIDIOC_SUBDEV_QUERYSTD - Sense the video standard received by the current input”…””}”(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_QUERYSTD (C macro)”Œc.V4L.VIDIOC_QUERYSTD”hNt”auh1jhjhžhhŸNh NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒVIDIOC_QUERYSTD”h]”hŒdesc_signature_line”“”)”}”(hŒVIDIOC_QUERYSTD”h]”hŒ desc_name”“”)”}”(hŒVIDIOC_QUERYSTD”h]”hŒ desc_sig_name”“”)”}”(hj+h]”hŒVIDIOC_QUERYSTD”…””}”(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Œ9``int ioctl(int fd, VIDIOC_QUERYSTD, v4l2_std_id *argp)``”h]”hŒliteral”“”)”}”(hj€h]”hŒ5int ioctl(int fd, VIDIOC_QUERYSTD, v4l2_std_id *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_SUBDEV_QUERYSTD (C macro)”Œc.V4L.VIDIOC_SUBDEV_QUERYSTD”hNt”auh1jhjhžhhŸNh Nubj#)”}”(hhh]”(j()”}”(hŒVIDIOC_SUBDEV_QUERYSTD”h]”j.)”}”(hŒVIDIOC_SUBDEV_QUERYSTD”h]”j4)”}”(hŒVIDIOC_SUBDEV_QUERYSTD”h]”j:)”}”(hjªh]”hŒVIDIOC_SUBDEV_QUERYSTD”…””}”(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Œ@``int ioctl(int fd, VIDIOC_SUBDEV_QUERYSTD, v4l2_std_id *argp)``”h]”jƒ)”}”(hjåh]”hŒ` type. The driver stores here a set of candidates, this can be a single flag or a set of supported standards if for example the hardware can only distinguish between 50 and 60 Hz systems. If no signal was detected, then the driver will return V4L2_STD_UNKNOWN. When detection is not possible or fails, the set must contain all standards supported by the current video input or output.”h]”(hŒiThe hardware may be able to detect the current video standard automatically. To do so, applications call ”…””}”(hjhžhhŸNh Nubh)”}”(hŒ:ref:`VIDIOC_QUERYSTD`”h]”hŒinline”“”)”}”(hjh]”hŒVIDIOC_QUERYSTD”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjsŒvidioc_querystd”uh1hhŸh³h K&hjubhŒ with a pointer to a ”…””}”(hjhžhhŸNh Nubh)”}”(hŒ :ref:`v4l2_std_id `”h]”j)”}”(hj5h]”hŒ v4l2_std_id”…””}”(hj7hžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj3ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jAŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjsŒ v4l2-std-id”uh1hhŸh³h K&hjubhX€ type. The driver stores here a set of candidates, this can be a single flag or a set of supported standards if for example the hardware can only distinguish between 50 and 60 Hz systems. If no signal was detected, then the driver will return V4L2_STD_UNKNOWN. When detection is not possible or fails, the set must contain all standards supported by the current video input or output.”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K&hjôhžhubhŒnote”“”)”}”(hX…Drivers shall *not* switch the video standard automatically if a new video standard is detected. Instead, drivers should send the ``V4L2_EVENT_SOURCE_CHANGE`` event (if they support this) and expect that userspace will take action by calling :ref:`VIDIOC_QUERYSTD`. The reason is that a new video standard can mean different buffer sizes as well, and you cannot change buffer sizes on the fly. In general, applications that receive the Source Change event will have to call :ref:`VIDIOC_QUERYSTD`, and if the detected video standard is valid they will have to stop streaming, set the new standard, allocate new buffers and start streaming again.”h]”hé)”}”(hX…Drivers shall *not* switch the video standard automatically if a new video standard is detected. Instead, drivers should send the ``V4L2_EVENT_SOURCE_CHANGE`` event (if they support this) and expect that userspace will take action by calling :ref:`VIDIOC_QUERYSTD`. The reason is that a new video standard can mean different buffer sizes as well, and you cannot change buffer sizes on the fly. In general, applications that receive the Source Change event will have to call :ref:`VIDIOC_QUERYSTD`, and if the detected video standard is valid they will have to stop streaming, set the new standard, allocate new buffers and start streaming again.”h]”(hŒDrivers shall ”…””}”(hjchžhhŸNh NubhŒemphasis”“”)”}”(hŒ*not*”h]”hŒnot”…””}”(hjmhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jkhjcubhŒo switch the video standard automatically if a new video standard is detected. Instead, drivers should send the ”…””}”(hjchžhhŸNh Nubjƒ)”}”(hŒ``V4L2_EVENT_SOURCE_CHANGE``”h]”hŒV4L2_EVENT_SOURCE_CHANGE”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjcubhŒT event (if they support this) and expect that userspace will take action by calling ”…””}”(hjchžhhŸNh Nubh)”}”(hŒ:ref:`VIDIOC_QUERYSTD`”h]”j)”}”(hj“h]”hŒVIDIOC_QUERYSTD”…””}”(hj•hžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj‘ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jŸŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjsŒvidioc_querystd”uh1hhŸh³h K2hjcubhŒÒ. The reason is that a new video standard can mean different buffer sizes as well, and you cannot change buffer sizes on the fly. In general, applications that receive the Source Change event will have to call ”…””}”(hjchžhhŸNh Nubh)”}”(hŒ:ref:`VIDIOC_QUERYSTD`”h]”j)”}”(hj·h]”hŒVIDIOC_QUERYSTD”…””}”(hj¹hžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjµubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j^Œ refdomain”jÃŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjsŒvidioc_querystd”uh1hhŸh³h K2hjcubhŒ•, and if the detected video standard is valid they will have to stop streaming, set the new standard, allocate new buffers and start streaming again.”…””}”(hjchžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K2hj_ubah}”(h]”h ]”h"]”h$]”h&]”uh1j]hjôhžhhŸh³h Nubeh}”(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 K>ubhé)”}”(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”…””}”(hjhž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)”}”(hjh]”hŒGeneric Error Codes”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”(jRŒstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjubah}”(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ŒJENODATA Standard video timings are not supported for this input or output.”h]”(j)”}”(hŒENODATA”h]”hŒENODATA”…””}”(hjIhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h KDhjEubj8)”}”(hhh]”hé)”}”(hŒBStandard video timings are not supported for this input or output.”h]”hŒBStandard video timings are not supported for this input or output.”…””}”(hjZhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h KEhjWubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hjEubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h KDhjBubah}”(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 K>ubeh}”(h]”(Œ,ioctl-vidioc-querystd-vidioc-subdev-querystd”hÁeh ]”h"]”(Œ-ioctl vidioc_querystd, vidioc_subdev_querystd”Œvidioc_querystd”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”Œ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”}”(jˆhÁj‡j„hýhújÿjüjñjîjêjçjj|uŒ nametypes”}”(jˆˆj‡‰hý‰jÿ‰jñ‰jê‰j‰uh}”(hÁhÄj„hÄhúh×jüjj j)j£j¨jîjjçjôj|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”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hé)”}”(hhh]”hŒ5Hyperlink target "vidioc-querystd" is not referenced.”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”uh1hèhjubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”h³Œline”Kuh1jubaŒ transformer”NŒ include_log”]”Œ decoration”Nhžhub.