1 .. -*- coding: utf-8; mode: rst -*-
3 .. _VIDIOC_DV_TIMINGS_CAP:
5 *********************************************************
6 ioctl VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP
7 *********************************************************
9 *man VIDIOC_DV_TIMINGS_CAP(2)*
11 VIDIOC_SUBDEV_DV_TIMINGS_CAP
12 The capabilities of the Digital Video receiver/transmitter
18 .. c:function:: int ioctl( int fd, int request, struct v4l2_dv_timings_cap *argp )
24 File descriptor returned by :ref:`open() <func-open>`.
27 VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP
35 To query the capabilities of the DV receiver/transmitter applications
36 initialize the ``pad`` field to 0, zero the reserved array of struct
37 :ref:`v4l2_dv_timings_cap <v4l2-dv-timings-cap>` and call the
38 ``VIDIOC_DV_TIMINGS_CAP`` ioctl on a video node and the driver will fill
39 in the structure. Note that drivers may return different values after
40 switching the video input or output.
42 When implemented by the driver DV capabilities of subdevices can be
43 queried by calling the ``VIDIOC_SUBDEV_DV_TIMINGS_CAP`` ioctl directly
44 on a subdevice node. The capabilities are specific to inputs (for DV
45 receivers) or outputs (for DV transmitters), applications must specify
46 the desired pad number in the struct
47 :ref:`v4l2_dv_timings_cap <v4l2-dv-timings-cap>` ``pad`` field and
48 zero the ``reserved`` array. Attempts to query capabilities on a pad
49 that doesn't support them will return an EINVAL error code.
52 .. _v4l2-bt-timings-cap:
54 .. flat-table:: struct v4l2_bt_timings_cap
66 - Minimum width of the active video in pixels.
74 - Maximum width of the active video in pixels.
82 - Minimum height of the active video in lines.
90 - Maximum height of the active video in lines.
98 - Minimum pixelclock frequency in Hz.
106 - Maximum pixelclock frequency in Hz.
114 - The video standard(s) supported by the hardware. See
115 :ref:`dv-bt-standards` for a list of standards.
123 - Several flags giving more information about the capabilities. See
124 :ref:`dv-bt-cap-capabilities` for a description of the flags.
132 - Reserved for future extensions. Drivers must set the array to
137 .. _v4l2-dv-timings-cap:
139 .. flat-table:: struct v4l2_dv_timings_cap
151 - Type of DV timings as listed in :ref:`dv-timing-types`.
159 - Pad number as reported by the media controller API. This field is
160 only used when operating on a subdevice node. When operating on a
161 video node applications must set this field to zero.
169 - Reserved for future extensions. Drivers and applications must set
182 - struct :ref:`v4l2_bt_timings_cap <v4l2-bt-timings-cap>`
186 - BT.656/1120 timings capabilities of the hardware.
199 .. _dv-bt-cap-capabilities:
201 .. flat-table:: DV BT Timing capabilities
219 - V4L2_DV_BT_CAP_INTERLACED
221 - Interlaced formats are supported.
225 - V4L2_DV_BT_CAP_PROGRESSIVE
227 - Progressive formats are supported.
231 - V4L2_DV_BT_CAP_REDUCED_BLANKING
233 - CVT/GTF specific: the timings can make use of reduced blanking
234 (CVT) or the 'Secondary GTF' curve (GTF).
238 - V4L2_DV_BT_CAP_CUSTOM
240 - Can support non-standard timings, i.e. timings not belonging to
241 the standards set in the ``standards`` field.
248 On success 0 is returned, on error -1 and the ``errno`` variable is set
249 appropriately. The generic error codes are described at the
250 :ref:`Generic Error Codes <gen-errors>` chapter.
253 .. ------------------------------------------------------------------------------
254 .. This file was automatically converted from DocBook-XML with the dbxml
255 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
256 .. from the linux kernel, refer to:
258 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
259 .. ------------------------------------------------------------------------------