1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ioctl VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API"><link rel="up" href="user-func.html" title="Appendix A. Function Reference"><link rel="prev" href="vidioc-dqevent.html" title="ioctl VIDIOC_DQEVENT"><link rel="next" href="vidioc-encoder-cmd.html" title="ioctl VIDIOC_ENCODER_CMD, VIDIOC_TRY_ENCODER_CMD"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ioctl VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="vidioc-dqevent.html">Prev</a> </td><th width="60%" align="center">Appendix A. Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="vidioc-encoder-cmd.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="vidioc-dv-timings-cap"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP — The capabilities of the Digital Video receiver/transmitter</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td><td>int <var class="pdparam">fd</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">request</var>, </td></tr><tr><td> </td><td>struct v4l2_dv_timings_cap *<var class="pdparam">argp</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1112541828"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>fd</code></em></span></dt><dd><p>File descriptor returned by <a class="link" href="func-open.html" title="V4L2 open()"><code class="function">open()</code></a>.</p></dd><dt><span class="term"><em class="parameter"><code>request</code></em></span></dt><dd><p>VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP</p></dd><dt><span class="term"><em class="parameter"><code>argp</code></em></span></dt><dd><p></p></dd></dl></div></div><div class="refsect1"><a name="idp1112545948"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Experimental</h3><p>This is an <a class="link" href="hist-v4l2.html#experimental" title="Experimental API Elements"> experimental </a> 2 interface and may change in the future.</p></div><p>To query the capabilities of the DV receiver/transmitter applications 3can call the <code class="constant">VIDIOC_DV_TIMINGS_CAP</code> ioctl on a video node 4and the driver will fill in the structure. Note that drivers may return 5different values after switching the video input or output.</p><p>When implemented by the driver DV capabilities of subdevices can be 6queried by calling the <code class="constant">VIDIOC_SUBDEV_DV_TIMINGS_CAP</code> ioctl 7directly on a subdevice node. The capabilities are specific to inputs (for DV 8receivers) or outputs (for DV transmitters), applications must specify the 9desired pad number in the struct <a class="link" href="vidioc-dv-timings-cap.html#v4l2-dv-timings-cap" title="Table A.22. struct v4l2_dv_timings_cap">v4l2_dv_timings_cap</a> <em class="structfield"><code>pad</code></em> 10field. Attempts to query capabilities on a pad that doesn't support them will 11return an <span class="errorcode">EINVAL</span> error code.</p><div class="table"><a name="v4l2-bt-timings-cap"></a><p class="title"><b>Table A.21. struct <span class="structname">v4l2_bt_timings_cap</span></b></p><div class="table-contents"><table summary="struct v4l2_bt_timings_cap" width="100%" border="0"><colgroup><col class="c1"><col class="c2"><col class="c3"></colgroup><tbody valign="top"><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>min_width</code></em></td><td valign="top">Minimum width of the active video in pixels.</td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>max_width</code></em></td><td valign="top">Maximum width of the active video in pixels.</td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>min_height</code></em></td><td valign="top">Minimum height of the active video in lines.</td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>max_height</code></em></td><td valign="top">Maximum height of the active video in lines.</td></tr><tr><td valign="top">__u64</td><td valign="top"><em class="structfield"><code>min_pixelclock</code></em></td><td valign="top">Minimum pixelclock frequency in Hz.</td></tr><tr><td valign="top">__u64</td><td valign="top"><em class="structfield"><code>max_pixelclock</code></em></td><td valign="top">Maximum pixelclock frequency in Hz.</td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>standards</code></em></td><td valign="top">The video standard(s) supported by the hardware. 12 See <a class="xref" href="vidioc-g-dv-timings.html#dv-bt-standards" title="Table A.60. DV BT Timing standards">Table A.60, “DV BT Timing standards”</a> for a list of standards.</td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>capabilities</code></em></td><td valign="top">Several flags giving more information about the capabilities. 13 See <a class="xref" href="vidioc-dv-timings-cap.html#dv-bt-cap-capabilities" title="Table A.23. DV BT Timing capabilities">Table A.23, “DV BT Timing capabilities”</a> for a description of the flags. 14 </td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>reserved</code></em>[16]</td><td valign="top">Reserved for future extensions. Drivers must set the array to zero.</td></tr></tbody></table></div></div><br class="table-break"><div class="table"><a name="v4l2-dv-timings-cap"></a><p class="title"><b>Table A.22. struct <span class="structname">v4l2_dv_timings_cap</span></b></p><div class="table-contents"><table summary="struct v4l2_dv_timings_cap" width="100%" border="0"><colgroup><col class="c1"><col class="c2"><col class="c3"><col></colgroup><tbody valign="top"><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>type</code></em></td><td valign="top">Type of DV timings as listed in <a class="xref" href="vidioc-g-dv-timings.html#dv-timing-types" title="Table A.59. DV Timing types">Table A.59, “DV Timing types”</a>.</td><td class="auto-generated"> </td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>pad</code></em></td><td valign="top">Pad number as reported by the media controller API. This field 15 is only used when operating on a subdevice node. When operating on a 16 video node applications must set this field to zero.</td><td class="auto-generated"> </td></tr><tr><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>reserved</code></em>[2]</td><td valign="top">Reserved for future extensions. Drivers must set the array to zero.</td><td class="auto-generated"> </td></tr><tr><td valign="top">union</td><td valign="top"><em class="structfield"><code></code></em></td><td valign="top"> </td><td class="auto-generated"> </td></tr><tr><td valign="top"> </td><td valign="top">struct <a class="link" href="vidioc-dv-timings-cap.html#v4l2-bt-timings-cap" title="Table A.21. struct v4l2_bt_timings_cap">v4l2_bt_timings_cap</a></td><td valign="top"><em class="structfield"><code>bt</code></em></td><td valign="top">BT.656/1120 timings capabilities of the hardware.</td></tr><tr><td valign="top"> </td><td valign="top">__u32</td><td valign="top"><em class="structfield"><code>raw_data</code></em>[32]</td><td valign="top"> </td></tr></tbody></table></div></div><br class="table-break"><div class="table"><a name="dv-bt-cap-capabilities"></a><p class="title"><b>Table A.23. DV BT Timing capabilities</b></p><div class="table-contents"><table summary="DV BT Timing capabilities" width="100%" border="0"><colgroup><col class="c1"><col class="c2"></colgroup><tbody valign="top"><tr><td valign="top">Flag</td><td valign="top">Description</td></tr><tr><td valign="top"> </td><td valign="top"> </td></tr><tr><td valign="top">V4L2_DV_BT_CAP_INTERLACED</td><td valign="top">Interlaced formats are supported. 17 </td></tr><tr><td valign="top">V4L2_DV_BT_CAP_PROGRESSIVE</td><td valign="top">Progressive formats are supported. 18 </td></tr><tr><td valign="top">V4L2_DV_BT_CAP_REDUCED_BLANKING</td><td valign="top">CVT/GTF specific: the timings can make use of reduced blanking (CVT) 19or the 'Secondary GTF' curve (GTF). 20 </td></tr><tr><td valign="top">V4L2_DV_BT_CAP_CUSTOM</td><td valign="top">Can support non-standard timings, i.e. timings not belonging to the 21standards set in the <em class="structfield"><code>standards</code></em> field. 22 </td></tr></tbody></table></div></div><br class="table-break"></div><div class="refsect1"><a name="idp1112580100"></a><h2>Return Value</h2><p>On success <span class="returnvalue">0</span> is returned, on error <span class="returnvalue">-1</span> and the <code class="varname">errno</code> variable is set appropriately. The generic error codes are described at the <a class="link" href="gen_errors.html#gen-errors" title="Table 19.1. Generic error codes">Generic Error Codes</a> chapter.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="vidioc-dqevent.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="user-func.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="vidioc-encoder-cmd.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ioctl VIDIOC_DQEVENT </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ioctl VIDIOC_ENCODER_CMD, VIDIOC_TRY_ENCODER_CMD</td></tr></table></div></body></html> 23