1 <refentry id="vidioc-g-std">
3 <refentrytitle>ioctl VIDIOC_G_STD, VIDIOC_S_STD</refentrytitle>
8 <refname>VIDIOC_G_STD</refname>
9 <refname>VIDIOC_S_STD</refname>
10 <refpurpose>Query or select the video standard of the current input</refpurpose>
16 <funcdef>int <function>ioctl</function></funcdef>
17 <paramdef>int <parameter>fd</parameter></paramdef>
18 <paramdef>int <parameter>request</parameter></paramdef>
20 *<parameter>argp</parameter></paramdef>
25 <funcdef>int <function>ioctl</function></funcdef>
26 <paramdef>int <parameter>fd</parameter></paramdef>
27 <paramdef>int <parameter>request</parameter></paramdef>
28 <paramdef>const v4l2_std_id
29 *<parameter>argp</parameter></paramdef>
35 <title>Arguments</title>
39 <term><parameter>fd</parameter></term>
45 <term><parameter>request</parameter></term>
47 <para>VIDIOC_G_STD, VIDIOC_S_STD</para>
51 <term><parameter>argp</parameter></term>
60 <title>Description</title>
62 <para>To query and select the current video standard applications
63 use the <constant>VIDIOC_G_STD</constant> and <constant>VIDIOC_S_STD</constant> ioctls which take a pointer to a
64 &v4l2-std-id; type as argument. <constant>VIDIOC_G_STD</constant> can
65 return a single flag or a set of flags as in &v4l2-standard; field
66 <structfield>id</structfield>. The flags must be unambiguous such
67 that they appear in only one enumerated <structname>v4l2_standard</structname> structure.</para>
69 <para><constant>VIDIOC_S_STD</constant> accepts one or more
70 flags, being a write-only ioctl it does not return the actual new standard as
71 <constant>VIDIOC_G_STD</constant> does. When no flags are given or
72 the current input does not support the requested standard the driver
73 returns an &EINVAL;. When the standard set is ambiguous drivers may
74 return <errorcode>EINVAL</errorcode> or choose any of the requested
83 <term><errorcode>EINVAL</errorcode></term>
85 <para>The <constant>VIDIOC_S_STD</constant> parameter was unsuitable.</para>