vidioc-enum-dv-presets.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <refentry id="vidioc-enum-dv-presets">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_ENUM_DV_PRESETS</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_ENUM_DV_PRESETS</refname>
  8. <refpurpose>Enumerate supported Digital Video presets</refpurpose>
  9. </refnamediv>
  10. <refsynopsisdiv>
  11. <funcsynopsis>
  12. <funcprototype>
  13. <funcdef>int <function>ioctl</function></funcdef>
  14. <paramdef>int <parameter>fd</parameter></paramdef>
  15. <paramdef>int <parameter>request</parameter></paramdef>
  16. <paramdef>struct v4l2_dv_enum_preset *<parameter>argp</parameter></paramdef>
  17. </funcprototype>
  18. </funcsynopsis>
  19. </refsynopsisdiv>
  20. <refsect1>
  21. <title>Arguments</title>
  22. <variablelist>
  23. <varlistentry>
  24. <term><parameter>fd</parameter></term>
  25. <listitem>
  26. <para>&fd;</para>
  27. </listitem>
  28. </varlistentry>
  29. <varlistentry>
  30. <term><parameter>request</parameter></term>
  31. <listitem>
  32. <para>VIDIOC_ENUM_DV_PRESETS</para>
  33. </listitem>
  34. </varlistentry>
  35. <varlistentry>
  36. <term><parameter>argp</parameter></term>
  37. <listitem>
  38. <para></para>
  39. </listitem>
  40. </varlistentry>
  41. </variablelist>
  42. </refsect1>
  43. <refsect1>
  44. <title>Description</title>
  45. <para>This ioctl is <emphasis role="bold">deprecated</emphasis>.
  46. New drivers and applications should use &VIDIOC-ENUM-DV-TIMINGS; instead.
  47. </para>
  48. <para>To query the attributes of a DV preset, applications initialize the
  49. <structfield>index</structfield> field and zero the reserved array of &v4l2-dv-enum-preset;
  50. and call the <constant>VIDIOC_ENUM_DV_PRESETS</constant> ioctl with a pointer to this
  51. structure. Drivers fill the rest of the structure or return an
  52. &EINVAL; when the index is out of bounds. To enumerate all DV Presets supported,
  53. applications shall begin at index zero, incrementing by one until the
  54. driver returns <errorcode>EINVAL</errorcode>. Drivers may enumerate a
  55. different set of DV presets after switching the video input or
  56. output.</para>
  57. <table pgwide="1" frame="none" id="v4l2-dv-enum-preset">
  58. <title>struct <structname>v4l2_dv_enum_presets</structname></title>
  59. <tgroup cols="3">
  60. &cs-str;
  61. <tbody valign="top">
  62. <row>
  63. <entry>__u32</entry>
  64. <entry><structfield>index</structfield></entry>
  65. <entry>Number of the DV preset, set by the
  66. application.</entry>
  67. </row>
  68. <row>
  69. <entry>__u32</entry>
  70. <entry><structfield>preset</structfield></entry>
  71. <entry>This field identifies one of the DV preset values listed in <xref linkend="v4l2-dv-presets-vals"/>.</entry>
  72. </row>
  73. <row>
  74. <entry>__u8</entry>
  75. <entry><structfield>name</structfield>[24]</entry>
  76. <entry>Name of the preset, a NUL-terminated ASCII string, for example: "720P-60", "1080I-60". This information is
  77. intended for the user.</entry>
  78. </row>
  79. <row>
  80. <entry>__u32</entry>
  81. <entry><structfield>width</structfield></entry>
  82. <entry>Width of the active video in pixels for the DV preset.</entry>
  83. </row>
  84. <row>
  85. <entry>__u32</entry>
  86. <entry><structfield>height</structfield></entry>
  87. <entry>Height of the active video in lines for the DV preset.</entry>
  88. </row>
  89. <row>
  90. <entry>__u32</entry>
  91. <entry><structfield>reserved</structfield>[4]</entry>
  92. <entry>Reserved for future extensions. Drivers must set the array to zero.</entry>
  93. </row>
  94. </tbody>
  95. </tgroup>
  96. </table>
  97. <table pgwide="1" frame="none" id="v4l2-dv-presets-vals">
  98. <title>struct <structname>DV Presets</structname></title>
  99. <tgroup cols="3">
  100. &cs-str;
  101. <tbody valign="top">
  102. <row>
  103. <entry>Preset</entry>
  104. <entry>Preset value</entry>
  105. <entry>Description</entry>
  106. </row>
  107. <row>
  108. <entry></entry>
  109. <entry></entry>
  110. <entry></entry>
  111. </row>
  112. <row>
  113. <entry>V4L2_DV_INVALID</entry>
  114. <entry>0</entry>
  115. <entry>Invalid preset value.</entry>
  116. </row>
  117. <row>
  118. <entry>V4L2_DV_480P59_94</entry>
  119. <entry>1</entry>
  120. <entry>720x480 progressive video at 59.94 fps as per BT.1362.</entry>
  121. </row>
  122. <row>
  123. <entry>V4L2_DV_576P50</entry>
  124. <entry>2</entry>
  125. <entry>720x576 progressive video at 50 fps as per BT.1362.</entry>
  126. </row>
  127. <row>
  128. <entry>V4L2_DV_720P24</entry>
  129. <entry>3</entry>
  130. <entry>1280x720 progressive video at 24 fps as per SMPTE 296M.</entry>
  131. </row>
  132. <row>
  133. <entry>V4L2_DV_720P25</entry>
  134. <entry>4</entry>
  135. <entry>1280x720 progressive video at 25 fps as per SMPTE 296M.</entry>
  136. </row>
  137. <row>
  138. <entry>V4L2_DV_720P30</entry>
  139. <entry>5</entry>
  140. <entry>1280x720 progressive video at 30 fps as per SMPTE 296M.</entry>
  141. </row>
  142. <row>
  143. <entry>V4L2_DV_720P50</entry>
  144. <entry>6</entry>
  145. <entry>1280x720 progressive video at 50 fps as per SMPTE 296M.</entry>
  146. </row>
  147. <row>
  148. <entry>V4L2_DV_720P59_94</entry>
  149. <entry>7</entry>
  150. <entry>1280x720 progressive video at 59.94 fps as per SMPTE 274M.</entry>
  151. </row>
  152. <row>
  153. <entry>V4L2_DV_720P60</entry>
  154. <entry>8</entry>
  155. <entry>1280x720 progressive video at 60 fps as per SMPTE 274M/296M.</entry>
  156. </row>
  157. <row>
  158. <entry>V4L2_DV_1080I29_97</entry>
  159. <entry>9</entry>
  160. <entry>1920x1080 interlaced video at 29.97 fps as per BT.1120/SMPTE 274M.</entry>
  161. </row>
  162. <row>
  163. <entry>V4L2_DV_1080I30</entry>
  164. <entry>10</entry>
  165. <entry>1920x1080 interlaced video at 30 fps as per BT.1120/SMPTE 274M.</entry>
  166. </row>
  167. <row>
  168. <entry>V4L2_DV_1080I25</entry>
  169. <entry>11</entry>
  170. <entry>1920x1080 interlaced video at 25 fps as per BT.1120.</entry>
  171. </row>
  172. <row>
  173. <entry>V4L2_DV_1080I50</entry>
  174. <entry>12</entry>
  175. <entry>1920x1080 interlaced video at 50 fps as per SMPTE 296M.</entry>
  176. </row>
  177. <row>
  178. <entry>V4L2_DV_1080I60</entry>
  179. <entry>13</entry>
  180. <entry>1920x1080 interlaced video at 60 fps as per SMPTE 296M.</entry>
  181. </row>
  182. <row>
  183. <entry>V4L2_DV_1080P24</entry>
  184. <entry>14</entry>
  185. <entry>1920x1080 progressive video at 24 fps as per SMPTE 296M.</entry>
  186. </row>
  187. <row>
  188. <entry>V4L2_DV_1080P25</entry>
  189. <entry>15</entry>
  190. <entry>1920x1080 progressive video at 25 fps as per SMPTE 296M.</entry>
  191. </row>
  192. <row>
  193. <entry>V4L2_DV_1080P30</entry>
  194. <entry>16</entry>
  195. <entry>1920x1080 progressive video at 30 fps as per SMPTE 296M.</entry>
  196. </row>
  197. <row>
  198. <entry>V4L2_DV_1080P50</entry>
  199. <entry>17</entry>
  200. <entry>1920x1080 progressive video at 50 fps as per BT.1120.</entry>
  201. </row>
  202. <row>
  203. <entry>V4L2_DV_1080P60</entry>
  204. <entry>18</entry>
  205. <entry>1920x1080 progressive video at 60 fps as per BT.1120.</entry>
  206. </row>
  207. </tbody>
  208. </tgroup>
  209. </table>
  210. </refsect1>
  211. <refsect1>
  212. &return-value;
  213. <variablelist>
  214. <varlistentry>
  215. <term><errorcode>EINVAL</errorcode></term>
  216. <listitem>
  217. <para>The &v4l2-dv-enum-preset; <structfield>index</structfield>
  218. is out of bounds.</para>
  219. </listitem>
  220. </varlistentry>
  221. <varlistentry>
  222. <term><errorcode>ENODATA</errorcode></term>
  223. <listitem>
  224. <para>Digital video presets are not supported for this input or output.</para>
  225. </listitem>
  226. </varlistentry>
  227. </variablelist>
  228. </refsect1>
  229. </refentry>