vidioc-g-dv-timings.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <refentry id="vidioc-g-dv-timings">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_DV_TIMINGS, VIDIOC_S_DV_TIMINGS</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_DV_TIMINGS</refname>
  8. <refname>VIDIOC_S_DV_TIMINGS</refname>
  9. <refpurpose>Get or set custom DV timings for input or output</refpurpose>
  10. </refnamediv>
  11. <refsynopsisdiv>
  12. <funcsynopsis>
  13. <funcprototype>
  14. <funcdef>int <function>ioctl</function></funcdef>
  15. <paramdef>int <parameter>fd</parameter></paramdef>
  16. <paramdef>int <parameter>request</parameter></paramdef>
  17. <paramdef>struct v4l2_dv_timings *<parameter>argp</parameter></paramdef>
  18. </funcprototype>
  19. </funcsynopsis>
  20. </refsynopsisdiv>
  21. <refsect1>
  22. <title>Arguments</title>
  23. <variablelist>
  24. <varlistentry>
  25. <term><parameter>fd</parameter></term>
  26. <listitem>
  27. <para>&fd;</para>
  28. </listitem>
  29. </varlistentry>
  30. <varlistentry>
  31. <term><parameter>request</parameter></term>
  32. <listitem>
  33. <para>VIDIOC_G_DV_TIMINGS, VIDIOC_S_DV_TIMINGS</para>
  34. </listitem>
  35. </varlistentry>
  36. <varlistentry>
  37. <term><parameter>argp</parameter></term>
  38. <listitem>
  39. <para></para>
  40. </listitem>
  41. </varlistentry>
  42. </variablelist>
  43. </refsect1>
  44. <refsect1>
  45. <title>Description</title>
  46. <para>To set custom DV timings for the input or output, applications use the
  47. <constant>VIDIOC_S_DV_TIMINGS</constant> ioctl and to get the current custom timings,
  48. applications use the <constant>VIDIOC_G_DV_TIMINGS</constant> ioctl. The detailed timing
  49. information is filled in using the structure &v4l2-dv-timings;. These ioctls take
  50. a pointer to the &v4l2-dv-timings; structure as argument. If the ioctl is not supported
  51. or the timing values are not correct, the driver returns &EINVAL;.</para>
  52. </refsect1>
  53. <refsect1>
  54. &return-value;
  55. <variablelist>
  56. <varlistentry>
  57. <term><errorcode>EINVAL</errorcode></term>
  58. <listitem>
  59. <para>This ioctl is not supported, or the
  60. <constant>VIDIOC_S_DV_TIMINGS</constant> parameter was unsuitable.</para>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry>
  64. <term><errorcode>EBUSY</errorcode></term>
  65. <listitem>
  66. <para>The device is busy and therefore can not change the timings.</para>
  67. </listitem>
  68. </varlistentry>
  69. </variablelist>
  70. <table pgwide="1" frame="none" id="v4l2-bt-timings">
  71. <title>struct <structname>v4l2_bt_timings</structname></title>
  72. <tgroup cols="3">
  73. &cs-str;
  74. <tbody valign="top">
  75. <row>
  76. <entry>__u32</entry>
  77. <entry><structfield>width</structfield></entry>
  78. <entry>Width of the active video in pixels</entry>
  79. </row>
  80. <row>
  81. <entry>__u32</entry>
  82. <entry><structfield>height</structfield></entry>
  83. <entry>Height of the active video in lines</entry>
  84. </row>
  85. <row>
  86. <entry>__u32</entry>
  87. <entry><structfield>interlaced</structfield></entry>
  88. <entry>Progressive (0) or interlaced (1)</entry>
  89. </row>
  90. <row>
  91. <entry>__u32</entry>
  92. <entry><structfield>polarities</structfield></entry>
  93. <entry>This is a bit mask that defines polarities of sync signals.
  94. bit 0 (V4L2_DV_VSYNC_POS_POL) is for vertical sync polarity and bit 1 (V4L2_DV_HSYNC_POS_POL) is for horizontal sync polarity. If the bit is set
  95. (1) it is positive polarity and if is cleared (0), it is negative polarity.</entry>
  96. </row>
  97. <row>
  98. <entry>__u64</entry>
  99. <entry><structfield>pixelclock</structfield></entry>
  100. <entry>Pixel clock in Hz. Ex. 74.25MHz->74250000</entry>
  101. </row>
  102. <row>
  103. <entry>__u32</entry>
  104. <entry><structfield>hfrontporch</structfield></entry>
  105. <entry>Horizontal front porch in pixels</entry>
  106. </row>
  107. <row>
  108. <entry>__u32</entry>
  109. <entry><structfield>hsync</structfield></entry>
  110. <entry>Horizontal sync length in pixels</entry>
  111. </row>
  112. <row>
  113. <entry>__u32</entry>
  114. <entry><structfield>hbackporch</structfield></entry>
  115. <entry>Horizontal back porch in pixels</entry>
  116. </row>
  117. <row>
  118. <entry>__u32</entry>
  119. <entry><structfield>vfrontporch</structfield></entry>
  120. <entry>Vertical front porch in lines</entry>
  121. </row>
  122. <row>
  123. <entry>__u32</entry>
  124. <entry><structfield>vsync</structfield></entry>
  125. <entry>Vertical sync length in lines</entry>
  126. </row>
  127. <row>
  128. <entry>__u32</entry>
  129. <entry><structfield>vbackporch</structfield></entry>
  130. <entry>Vertical back porch in lines</entry>
  131. </row>
  132. <row>
  133. <entry>__u32</entry>
  134. <entry><structfield>il_vfrontporch</structfield></entry>
  135. <entry>Vertical front porch in lines for bottom field of interlaced field formats</entry>
  136. </row>
  137. <row>
  138. <entry>__u32</entry>
  139. <entry><structfield>il_vsync</structfield></entry>
  140. <entry>Vertical sync length in lines for bottom field of interlaced field formats</entry>
  141. </row>
  142. <row>
  143. <entry>__u32</entry>
  144. <entry><structfield>il_vbackporch</structfield></entry>
  145. <entry>Vertical back porch in lines for bottom field of interlaced field formats</entry>
  146. </row>
  147. </tbody>
  148. </tgroup>
  149. </table>
  150. <table pgwide="1" frame="none" id="v4l2-dv-timings">
  151. <title>struct <structname>v4l2_dv_timings</structname></title>
  152. <tgroup cols="4">
  153. &cs-str;
  154. <tbody valign="top">
  155. <row>
  156. <entry>__u32</entry>
  157. <entry><structfield>type</structfield></entry>
  158. <entry></entry>
  159. <entry>Type of DV timings as listed in <xref linkend="dv-timing-types"/>.</entry>
  160. </row>
  161. <row>
  162. <entry>union</entry>
  163. <entry><structfield></structfield></entry>
  164. <entry></entry>
  165. </row>
  166. <row>
  167. <entry></entry>
  168. <entry>&v4l2-bt-timings;</entry>
  169. <entry><structfield>bt</structfield></entry>
  170. <entry>Timings defined by BT.656/1120 specifications</entry>
  171. </row>
  172. <row>
  173. <entry></entry>
  174. <entry>__u32</entry>
  175. <entry><structfield>reserved</structfield>[32]</entry>
  176. <entry></entry>
  177. </row>
  178. </tbody>
  179. </tgroup>
  180. </table>
  181. <table pgwide="1" frame="none" id="dv-timing-types">
  182. <title>DV Timing types</title>
  183. <tgroup cols="3">
  184. &cs-str;
  185. <tbody valign="top">
  186. <row>
  187. <entry>Timing type</entry>
  188. <entry>value</entry>
  189. <entry>Description</entry>
  190. </row>
  191. <row>
  192. <entry></entry>
  193. <entry></entry>
  194. <entry></entry>
  195. </row>
  196. <row>
  197. <entry>V4L2_DV_BT_656_1120</entry>
  198. <entry>0</entry>
  199. <entry>BT.656/1120 timings</entry>
  200. </row>
  201. </tbody>
  202. </tgroup>
  203. </table>
  204. </refsect1>
  205. </refentry>
  206. <!--
  207. Local Variables:
  208. mode: sgml
  209. sgml-parent-document: "v4l2.sgml"
  210. indent-tabs-mode: nil
  211. End:
  212. -->