18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci.. _dv-timings:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci**************************
68c2ecf20Sopenharmony_ciDigital Video (DV) Timings
78c2ecf20Sopenharmony_ci**************************
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciThe video standards discussed so far have been dealing with Analog TV
108c2ecf20Sopenharmony_ciand the corresponding video timings. Today there are many more different
118c2ecf20Sopenharmony_cihardware interfaces such as High Definition TV interfaces (HDMI), VGA,
128c2ecf20Sopenharmony_ciDVI connectors etc., that carry video signals and there is a need to
138c2ecf20Sopenharmony_ciextend the API to select the video timings for these interfaces. Since
148c2ecf20Sopenharmony_ciit is not possible to extend the :ref:`v4l2_std_id <v4l2-std-id>`
158c2ecf20Sopenharmony_cidue to the limited bits available, a new set of ioctls was added to
168c2ecf20Sopenharmony_ciset/get video timings at the input and output.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciThese ioctls deal with the detailed digital video timings that define
198c2ecf20Sopenharmony_cieach video format. This includes parameters such as the active video
208c2ecf20Sopenharmony_ciwidth and height, signal polarities, frontporches, backporches, sync
218c2ecf20Sopenharmony_ciwidths etc. The ``linux/v4l2-dv-timings.h`` header can be used to get
228c2ecf20Sopenharmony_cithe timings of the formats in the :ref:`cea861` and :ref:`vesadmt`
238c2ecf20Sopenharmony_cistandards.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciTo enumerate and query the attributes of the DV timings supported by a
268c2ecf20Sopenharmony_cidevice applications use the
278c2ecf20Sopenharmony_ci:ref:`VIDIOC_ENUM_DV_TIMINGS` and
288c2ecf20Sopenharmony_ci:ref:`VIDIOC_DV_TIMINGS_CAP` ioctls. To set
298c2ecf20Sopenharmony_ciDV timings for the device applications use the
308c2ecf20Sopenharmony_ci:ref:`VIDIOC_S_DV_TIMINGS <VIDIOC_G_DV_TIMINGS>` ioctl and to get
318c2ecf20Sopenharmony_cicurrent DV timings they use the
328c2ecf20Sopenharmony_ci:ref:`VIDIOC_G_DV_TIMINGS <VIDIOC_G_DV_TIMINGS>` ioctl. To detect
338c2ecf20Sopenharmony_cithe DV timings as seen by the video receiver applications use the
348c2ecf20Sopenharmony_ci:ref:`VIDIOC_QUERY_DV_TIMINGS` ioctl.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciApplications can make use of the :ref:`input-capabilities` and
378c2ecf20Sopenharmony_ci:ref:`output-capabilities` flags to determine whether the digital
388c2ecf20Sopenharmony_civideo ioctls can be used with the given input or output.
39