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>This ioctl is <emphasis role="bold">deprecated</emphasis>.
52 New drivers and applications should use &VIDIOC-ENUM-DV-TIMINGS; instead.
55 <para>To query the attributes of a DV preset, applications initialize the
56 <structfield>index</structfield> field and zero the reserved array of &v4l2-dv-enum-preset;
57 and call the <constant>VIDIOC_ENUM_DV_PRESETS</constant> ioctl with a pointer to this
58 structure. Drivers fill the rest of the structure or return an
59 &EINVAL; when the index is out of bounds. To enumerate all DV Presets supported,
60 applications shall begin at index zero, incrementing by one until the
61 driver returns <errorcode>EINVAL</errorcode>. Drivers may enumerate a
62 different set of DV presets after switching the video input or
65 <table pgwide="1" frame="none" id="v4l2-dv-enum-preset">
66 <title>struct <structname>v4l2_dv_enum_presets</structname></title>
72 <entry><structfield>index</structfield></entry>
73 <entry>Number of the DV preset, set by the
78 <entry><structfield>preset</structfield></entry>
79 <entry>This field identifies one of the DV preset values listed in <xref linkend="v4l2-dv-presets-vals"/>.</entry>
83 <entry><structfield>name</structfield>[24]</entry>
84 <entry>Name of the preset, a NUL-terminated ASCII string, for example: "720P-60", "1080I-60". This information is
85 intended for the user.</entry>
89 <entry><structfield>width</structfield></entry>
90 <entry>Width of the active video in pixels for the DV preset.</entry>
94 <entry><structfield>height</structfield></entry>
95 <entry>Height of the active video in lines for the DV preset.</entry>
99 <entry><structfield>reserved</structfield>[4]</entry>
100 <entry>Reserved for future extensions. Drivers must set the array to zero.</entry>
106 <table pgwide="1" frame="none" id="v4l2-dv-presets-vals">
107 <title>struct <structname>DV Presets</structname></title>
112 <entry>Preset</entry>
113 <entry>Preset value</entry>
114 <entry>Description</entry>
122 <entry>V4L2_DV_INVALID</entry>
124 <entry>Invalid preset value.</entry>
127 <entry>V4L2_DV_480P59_94</entry>
129 <entry>720x480 progressive video at 59.94 fps as per BT.1362.</entry>
132 <entry>V4L2_DV_576P50</entry>
134 <entry>720x576 progressive video at 50 fps as per BT.1362.</entry>
137 <entry>V4L2_DV_720P24</entry>
139 <entry>1280x720 progressive video at 24 fps as per SMPTE 296M.</entry>
142 <entry>V4L2_DV_720P25</entry>
144 <entry>1280x720 progressive video at 25 fps as per SMPTE 296M.</entry>
147 <entry>V4L2_DV_720P30</entry>
149 <entry>1280x720 progressive video at 30 fps as per SMPTE 296M.</entry>
152 <entry>V4L2_DV_720P50</entry>
154 <entry>1280x720 progressive video at 50 fps as per SMPTE 296M.</entry>
157 <entry>V4L2_DV_720P59_94</entry>
159 <entry>1280x720 progressive video at 59.94 fps as per SMPTE 274M.</entry>
162 <entry>V4L2_DV_720P60</entry>
164 <entry>1280x720 progressive video at 60 fps as per SMPTE 274M/296M.</entry>
167 <entry>V4L2_DV_1080I29_97</entry>
169 <entry>1920x1080 interlaced video at 29.97 fps as per BT.1120/SMPTE 274M.</entry>
172 <entry>V4L2_DV_1080I30</entry>
174 <entry>1920x1080 interlaced video at 30 fps as per BT.1120/SMPTE 274M.</entry>
177 <entry>V4L2_DV_1080I25</entry>
179 <entry>1920x1080 interlaced video at 25 fps as per BT.1120.</entry>
182 <entry>V4L2_DV_1080I50</entry>
184 <entry>1920x1080 interlaced video at 50 fps as per SMPTE 296M.</entry>
187 <entry>V4L2_DV_1080I60</entry>
189 <entry>1920x1080 interlaced video at 60 fps as per SMPTE 296M.</entry>
192 <entry>V4L2_DV_1080P24</entry>
194 <entry>1920x1080 progressive video at 24 fps as per SMPTE 296M.</entry>
197 <entry>V4L2_DV_1080P25</entry>
199 <entry>1920x1080 progressive video at 25 fps as per SMPTE 296M.</entry>
202 <entry>V4L2_DV_1080P30</entry>
204 <entry>1920x1080 progressive video at 30 fps as per SMPTE 296M.</entry>
207 <entry>V4L2_DV_1080P50</entry>
209 <entry>1920x1080 progressive video at 50 fps as per BT.1120.</entry>
212 <entry>V4L2_DV_1080P60</entry>
214 <entry>1920x1080 progressive video at 60 fps as per BT.1120.</entry>
226 <term><errorcode>EINVAL</errorcode></term>
228 <para>The &v4l2-dv-enum-preset; <structfield>index</structfield>
229 is out of bounds.</para>