vidioc-dv-timings-cap.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <refentry id="vidioc-dv-timings-cap">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_DV_TIMINGS_CAP</refname>
  8. <refname>VIDIOC_SUBDEV_DV_TIMINGS_CAP</refname>
  9. <refpurpose>The capabilities of the Digital Video receiver/transmitter</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_cap *<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_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP</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. <note>
  47. <title>Experimental</title>
  48. <para>This is an <link linkend="experimental"> experimental </link>
  49. interface and may change in the future.</para>
  50. </note>
  51. <para>To query the capabilities of the DV receiver/transmitter applications
  52. can call the <constant>VIDIOC_DV_TIMINGS_CAP</constant> ioctl on a video node
  53. and the driver will fill in the structure. Note that drivers may return
  54. different values after switching the video input or output.</para>
  55. <para>When implemented by the driver DV capabilities of subdevices can be
  56. queried by calling the <constant>VIDIOC_SUBDEV_DV_TIMINGS_CAP</constant> ioctl
  57. directly on a subdevice node. The capabilities are specific to inputs (for DV
  58. receivers) or outputs (for DV transmitters), applications must specify the
  59. desired pad number in the &v4l2-dv-timings-cap; <structfield>pad</structfield>
  60. field. Attempts to query capabilities on a pad that doesn't support them will
  61. return an &EINVAL;.</para>
  62. <table pgwide="1" frame="none" id="v4l2-bt-timings-cap">
  63. <title>struct <structname>v4l2_bt_timings_cap</structname></title>
  64. <tgroup cols="3">
  65. &cs-str;
  66. <tbody valign="top">
  67. <row>
  68. <entry>__u32</entry>
  69. <entry><structfield>min_width</structfield></entry>
  70. <entry>Minimum width of the active video in pixels.</entry>
  71. </row>
  72. <row>
  73. <entry>__u32</entry>
  74. <entry><structfield>max_width</structfield></entry>
  75. <entry>Maximum width of the active video in pixels.</entry>
  76. </row>
  77. <row>
  78. <entry>__u32</entry>
  79. <entry><structfield>min_height</structfield></entry>
  80. <entry>Minimum height of the active video in lines.</entry>
  81. </row>
  82. <row>
  83. <entry>__u32</entry>
  84. <entry><structfield>max_height</structfield></entry>
  85. <entry>Maximum height of the active video in lines.</entry>
  86. </row>
  87. <row>
  88. <entry>__u64</entry>
  89. <entry><structfield>min_pixelclock</structfield></entry>
  90. <entry>Minimum pixelclock frequency in Hz.</entry>
  91. </row>
  92. <row>
  93. <entry>__u64</entry>
  94. <entry><structfield>max_pixelclock</structfield></entry>
  95. <entry>Maximum pixelclock frequency in Hz.</entry>
  96. </row>
  97. <row>
  98. <entry>__u32</entry>
  99. <entry><structfield>standards</structfield></entry>
  100. <entry>The video standard(s) supported by the hardware.
  101. See <xref linkend="dv-bt-standards"/> for a list of standards.</entry>
  102. </row>
  103. <row>
  104. <entry>__u32</entry>
  105. <entry><structfield>capabilities</structfield></entry>
  106. <entry>Several flags giving more information about the capabilities.
  107. See <xref linkend="dv-bt-cap-capabilities"/> for a description of the flags.
  108. </entry>
  109. </row>
  110. <row>
  111. <entry>__u32</entry>
  112. <entry><structfield>reserved</structfield>[16]</entry>
  113. <entry>Reserved for future extensions. Drivers must set the array to zero.</entry>
  114. </row>
  115. </tbody>
  116. </tgroup>
  117. </table>
  118. <table pgwide="1" frame="none" id="v4l2-dv-timings-cap">
  119. <title>struct <structname>v4l2_dv_timings_cap</structname></title>
  120. <tgroup cols="4">
  121. &cs-str;
  122. <tbody valign="top">
  123. <row>
  124. <entry>__u32</entry>
  125. <entry><structfield>type</structfield></entry>
  126. <entry>Type of DV timings as listed in <xref linkend="dv-timing-types"/>.</entry>
  127. </row>
  128. <row>
  129. <entry>__u32</entry>
  130. <entry><structfield>pad</structfield></entry>
  131. <entry>Pad number as reported by the media controller API. This field
  132. is only used when operating on a subdevice node. When operating on a
  133. video node applications must set this field to zero.</entry>
  134. </row>
  135. <row>
  136. <entry>__u32</entry>
  137. <entry><structfield>reserved</structfield>[2]</entry>
  138. <entry>Reserved for future extensions. Drivers must set the array to zero.</entry>
  139. </row>
  140. <row>
  141. <entry>union</entry>
  142. <entry><structfield></structfield></entry>
  143. <entry></entry>
  144. </row>
  145. <row>
  146. <entry></entry>
  147. <entry>&v4l2-bt-timings-cap;</entry>
  148. <entry><structfield>bt</structfield></entry>
  149. <entry>BT.656/1120 timings capabilities of the hardware.</entry>
  150. </row>
  151. <row>
  152. <entry></entry>
  153. <entry>__u32</entry>
  154. <entry><structfield>raw_data</structfield>[32]</entry>
  155. <entry></entry>
  156. </row>
  157. </tbody>
  158. </tgroup>
  159. </table>
  160. <table pgwide="1" frame="none" id="dv-bt-cap-capabilities">
  161. <title>DV BT Timing capabilities</title>
  162. <tgroup cols="2">
  163. &cs-str;
  164. <tbody valign="top">
  165. <row>
  166. <entry>Flag</entry>
  167. <entry>Description</entry>
  168. </row>
  169. <row>
  170. <entry></entry>
  171. <entry></entry>
  172. </row>
  173. <row>
  174. <entry>V4L2_DV_BT_CAP_INTERLACED</entry>
  175. <entry>Interlaced formats are supported.
  176. </entry>
  177. </row>
  178. <row>
  179. <entry>V4L2_DV_BT_CAP_PROGRESSIVE</entry>
  180. <entry>Progressive formats are supported.
  181. </entry>
  182. </row>
  183. <row>
  184. <entry>V4L2_DV_BT_CAP_REDUCED_BLANKING</entry>
  185. <entry>CVT/GTF specific: the timings can make use of reduced blanking (CVT)
  186. or the 'Secondary GTF' curve (GTF).
  187. </entry>
  188. </row>
  189. <row>
  190. <entry>V4L2_DV_BT_CAP_CUSTOM</entry>
  191. <entry>Can support non-standard timings, i.e. timings not belonging to the
  192. standards set in the <structfield>standards</structfield> field.
  193. </entry>
  194. </row>
  195. </tbody>
  196. </tgroup>
  197. </table>
  198. </refsect1>
  199. <refsect1>
  200. &return-value;
  201. </refsect1>
  202. </refentry>