1 <refentry id="vidioc-enum-dv-presets">
3 <refentrytitle>ioctl VIDIOC_ENUM_DV_PRESETS</refentrytitle>
8 <refname>VIDIOC_ENUM_DV_PRESETS</refname>
9 <refpurpose>Enumerate supported Digital Video presets</refpurpose>
15 <funcdef>int <function>ioctl</function></funcdef>
16 <paramdef>int <parameter>fd</parameter></paramdef>
17 <paramdef>int <parameter>request</parameter></paramdef>
18 <paramdef>struct v4l2_dv_enum_preset *<parameter>argp</parameter></paramdef>
24 <title>Arguments</title>
28 <term><parameter>fd</parameter></term>
34 <term><parameter>request</parameter></term>
36 <para>VIDIOC_ENUM_DV_PRESETS</para>
40 <term><parameter>argp</parameter></term>
49 <title>Description</title>
51 <para>To query the attributes of a DV preset, applications initialize the
52 <structfield>index</structfield> field and zero the reserved array of &v4l2-dv-enum-preset;
53 and call the <constant>VIDIOC_ENUM_DV_PRESETS</constant> ioctl with a pointer to this
54 structure. Drivers fill the rest of the structure or return an
55 &EINVAL; when the index is out of bounds. To enumerate all DV Presets supported,
56 applications shall begin at index zero, incrementing by one until the
57 driver returns <errorcode>EINVAL</errorcode>. Drivers may enumerate a
58 different set of DV presets after switching the video input or
61 <table pgwide="1" frame="none" id="v4l2-dv-enum-preset">
62 <title>struct <structname>v4l2_dv_enum_presets</structname></title>
68 <entry><structfield>index</structfield></entry>
69 <entry>Number of the DV preset, set by the
74 <entry><structfield>preset</structfield></entry>
75 <entry>This field identifies one of the DV preset values listed in <xref linkend="v4l2-dv-presets-vals"/>.</entry>
79 <entry><structfield>name</structfield>[24]</entry>
80 <entry>Name of the preset, a NUL-terminated ASCII string, for example: "720P-60", "1080I-60". This information is
81 intended for the user.</entry>
85 <entry><structfield>width</structfield></entry>
86 <entry>Width of the active video in pixels for the DV preset.</entry>
90 <entry><structfield>height</structfield></entry>
91 <entry>Height of the active video in lines for the DV preset.</entry>
95 <entry><structfield>reserved</structfield>[4]</entry>
96 <entry>Reserved for future extensions. Drivers must set the array to zero.</entry>
102 <table pgwide="1" frame="none" id="v4l2-dv-presets-vals">
103 <title>struct <structname>DV Presets</structname></title>
108 <entry>Preset</entry>
109 <entry>Preset value</entry>
110 <entry>Description</entry>
118 <entry>V4L2_DV_INVALID</entry>
120 <entry>Invalid preset value.</entry>
123 <entry>V4L2_DV_480P59_94</entry>
125 <entry>720x480 progressive video at 59.94 fps as per BT.1362.</entry>
128 <entry>V4L2_DV_576P50</entry>
130 <entry>720x576 progressive video at 50 fps as per BT.1362.</entry>
133 <entry>V4L2_DV_720P24</entry>
135 <entry>1280x720 progressive video at 24 fps as per SMPTE 296M.</entry>
138 <entry>V4L2_DV_720P25</entry>
140 <entry>1280x720 progressive video at 25 fps as per SMPTE 296M.</entry>
143 <entry>V4L2_DV_720P30</entry>
145 <entry>1280x720 progressive video at 30 fps as per SMPTE 296M.</entry>
148 <entry>V4L2_DV_720P50</entry>
150 <entry>1280x720 progressive video at 50 fps as per SMPTE 296M.</entry>
153 <entry>V4L2_DV_720P59_94</entry>
155 <entry>1280x720 progressive video at 59.94 fps as per SMPTE 274M.</entry>
158 <entry>V4L2_DV_720P60</entry>
160 <entry>1280x720 progressive video at 60 fps as per SMPTE 274M/296M.</entry>
163 <entry>V4L2_DV_1080I29_97</entry>
165 <entry>1920x1080 interlaced video at 29.97 fps as per BT.1120/SMPTE 274M.</entry>
168 <entry>V4L2_DV_1080I30</entry>
170 <entry>1920x1080 interlaced video at 30 fps as per BT.1120/SMPTE 274M.</entry>
173 <entry>V4L2_DV_1080I25</entry>
175 <entry>1920x1080 interlaced video at 25 fps as per BT.1120.</entry>
178 <entry>V4L2_DV_1080I50</entry>
180 <entry>1920x1080 interlaced video at 50 fps as per SMPTE 296M.</entry>
183 <entry>V4L2_DV_1080I60</entry>
185 <entry>1920x1080 interlaced video at 60 fps as per SMPTE 296M.</entry>
188 <entry>V4L2_DV_1080P24</entry>
190 <entry>1920x1080 progressive video at 24 fps as per SMPTE 296M.</entry>
193 <entry>V4L2_DV_1080P25</entry>
195 <entry>1920x1080 progressive video at 25 fps as per SMPTE 296M.</entry>
198 <entry>V4L2_DV_1080P30</entry>
200 <entry>1920x1080 progressive video at 30 fps as per SMPTE 296M.</entry>
203 <entry>V4L2_DV_1080P50</entry>
205 <entry>1920x1080 progressive video at 50 fps as per BT.1120.</entry>
208 <entry>V4L2_DV_1080P60</entry>
210 <entry>1920x1080 progressive video at 60 fps as per BT.1120.</entry>
222 <term><errorcode>EINVAL</errorcode></term>
224 <para>The &v4l2-dv-enum-preset; <structfield>index</structfield>
225 is out of bounds.</para>
235 sgml-parent-document: "v4l2.sgml"
236 indent-tabs-mode: nil