1 .. -*- coding: utf-8; mode: rst -*-
3 .. _VIDIOC_DV_TIMINGS_CAP:
5 *********************************************************
6 ioctl VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP
7 *********************************************************
12 VIDIOC_DV_TIMINGS_CAP - VIDIOC_SUBDEV_DV_TIMINGS_CAP - The capabilities of the Digital Video receiver/transmitter
18 .. c:function:: int ioctl( int fd, VIDIOC_DV_TIMINGS_CAP, struct v4l2_dv_timings_cap *argp )
19 :name: VIDIOC_DV_TIMINGS_CAP
21 .. c:function:: int ioctl( int fd, VIDIOC_SUBDEV_DV_TIMINGS_CAP, struct v4l2_dv_timings_cap *argp )
22 :name: VIDIOC_SUBDEV_DV_TIMINGS_CAP
29 File descriptor returned by :ref:`open() <func-open>`.
32 Pointer to struct :c:type:`v4l2_dv_timings_cap`.
38 To query the capabilities of the DV receiver/transmitter applications
39 initialize the ``pad`` field to 0, zero the reserved array of struct
40 :c:type:`v4l2_dv_timings_cap` and call the
41 ``VIDIOC_DV_TIMINGS_CAP`` ioctl on a video node and the driver will fill
46 Drivers may return different values after
47 switching the video input or output.
49 When implemented by the driver DV capabilities of subdevices can be
50 queried by calling the ``VIDIOC_SUBDEV_DV_TIMINGS_CAP`` ioctl directly
51 on a subdevice node. The capabilities are specific to inputs (for DV
52 receivers) or outputs (for DV transmitters), applications must specify
53 the desired pad number in the struct
54 :c:type:`v4l2_dv_timings_cap` ``pad`` field and
55 zero the ``reserved`` array. Attempts to query capabilities on a pad
56 that doesn't support them will return an ``EINVAL`` error code.
59 .. tabularcolumns:: |p{1.2cm}|p{3.0cm}|p{13.3cm}|
61 .. c:type:: v4l2_bt_timings_cap
63 .. flat-table:: struct v4l2_bt_timings_cap
70 - Minimum width of the active video in pixels.
73 - Maximum width of the active video in pixels.
76 - Minimum height of the active video in lines.
79 - Maximum height of the active video in lines.
82 - Minimum pixelclock frequency in Hz.
85 - Maximum pixelclock frequency in Hz.
88 - The video standard(s) supported by the hardware. See
89 :ref:`dv-bt-standards` for a list of standards.
92 - Several flags giving more information about the capabilities. See
93 :ref:`dv-bt-cap-capabilities` for a description of the flags.
96 - Reserved for future extensions.
97 Drivers must set the array to zero.
101 .. tabularcolumns:: |p{1.0cm}|p{4.0cm}|p{3.5cm}|p{9.2cm}|
103 .. c:type:: v4l2_dv_timings_cap
105 .. flat-table:: struct v4l2_dv_timings_cap
112 - Type of DV timings as listed in :ref:`dv-timing-types`.
115 - Pad number as reported by the media controller API. This field is
116 only used when operating on a subdevice node. When operating on a
117 video node applications must set this field to zero.
120 - Reserved for future extensions.
122 Drivers and applications must set the array to zero.
127 - struct :c:type:`v4l2_bt_timings_cap`
129 - BT.656/1120 timings capabilities of the hardware.
135 .. tabularcolumns:: |p{7.0cm}|p{10.5cm}|
137 .. _dv-bt-cap-capabilities:
139 .. flat-table:: DV BT Timing capabilities
147 * - ``V4L2_DV_BT_CAP_INTERLACED``
148 - Interlaced formats are supported.
149 * - ``V4L2_DV_BT_CAP_PROGRESSIVE``
150 - Progressive formats are supported.
151 * - ``V4L2_DV_BT_CAP_REDUCED_BLANKING``
152 - CVT/GTF specific: the timings can make use of reduced blanking
153 (CVT) or the 'Secondary GTF' curve (GTF).
154 * - ``V4L2_DV_BT_CAP_CUSTOM``
155 - Can support non-standard timings, i.e. timings not belonging to
156 the standards set in the ``standards`` field.
162 On success 0 is returned, on error -1 and the ``errno`` variable is set
163 appropriately. The generic error codes are described at the
164 :ref:`Generic Error Codes <gen-errors>` chapter.