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 .. cpp:function:: int ioctl( int fd, int request, struct v4l2_dv_timings_cap *argp )
25 File descriptor returned by :ref:`open() <func-open>`.
28 VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP
36 To query the capabilities of the DV receiver/transmitter applications
37 initialize the ``pad`` field to 0, zero the reserved array of struct
38 :ref:`v4l2_dv_timings_cap <v4l2-dv-timings-cap>` and call the
39 ``VIDIOC_DV_TIMINGS_CAP`` ioctl on a video node and the driver will fill
44 Drivers may return different values after
45 switching the video input or output.
47 When implemented by the driver DV capabilities of subdevices can be
48 queried by calling the ``VIDIOC_SUBDEV_DV_TIMINGS_CAP`` ioctl directly
49 on a subdevice node. The capabilities are specific to inputs (for DV
50 receivers) or outputs (for DV transmitters), applications must specify
51 the desired pad number in the struct
52 :ref:`v4l2_dv_timings_cap <v4l2-dv-timings-cap>` ``pad`` field and
53 zero the ``reserved`` array. Attempts to query capabilities on a pad
54 that doesn't support them will return an ``EINVAL`` error code.
57 .. _v4l2-bt-timings-cap:
59 .. flat-table:: struct v4l2_bt_timings_cap
71 - Minimum width of the active video in pixels.
79 - Maximum width of the active video in pixels.
87 - Minimum height of the active video in lines.
95 - Maximum height of the active video in lines.
103 - Minimum pixelclock frequency in Hz.
111 - Maximum pixelclock frequency in Hz.
119 - The video standard(s) supported by the hardware. See
120 :ref:`dv-bt-standards` for a list of standards.
128 - Several flags giving more information about the capabilities. See
129 :ref:`dv-bt-cap-capabilities` for a description of the flags.
137 - Reserved for future extensions. Drivers must set the array to
142 .. _v4l2-dv-timings-cap:
144 .. flat-table:: struct v4l2_dv_timings_cap
156 - Type of DV timings as listed in :ref:`dv-timing-types`.
164 - Pad number as reported by the media controller API. This field is
165 only used when operating on a subdevice node. When operating on a
166 video node applications must set this field to zero.
174 - Reserved for future extensions. Drivers and applications must set
187 - struct :ref:`v4l2_bt_timings_cap <v4l2-bt-timings-cap>`
191 - BT.656/1120 timings capabilities of the hardware.
204 .. _dv-bt-cap-capabilities:
206 .. flat-table:: DV BT Timing capabilities
224 - ``V4L2_DV_BT_CAP_INTERLACED``
226 - Interlaced formats are supported.
230 - ``V4L2_DV_BT_CAP_PROGRESSIVE``
232 - Progressive formats are supported.
236 - ``V4L2_DV_BT_CAP_REDUCED_BLANKING``
238 - CVT/GTF specific: the timings can make use of reduced blanking
239 (CVT) or the 'Secondary GTF' curve (GTF).
243 - ``V4L2_DV_BT_CAP_CUSTOM``
245 - Can support non-standard timings, i.e. timings not belonging to
246 the standards set in the ``standards`` field.
252 On success 0 is returned, on error -1 and the ``errno`` variable is set
253 appropriately. The generic error codes are described at the
254 :ref:`Generic Error Codes <gen-errors>` chapter.