diff options
Diffstat (limited to 'Documentation/DocBook/media/v4l/common.xml')
-rw-r--r-- | Documentation/DocBook/media/v4l/common.xml | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/Documentation/DocBook/media/v4l/common.xml b/Documentation/DocBook/media/v4l/common.xml index c79278acfb0e..4101aeb56540 100644 --- a/Documentation/DocBook/media/v4l/common.xml +++ b/Documentation/DocBook/media/v4l/common.xml | |||
@@ -724,41 +724,49 @@ if (-1 == ioctl (fd, &VIDIOC-S-STD;, &std_id)) { | |||
724 | } | 724 | } |
725 | </programlisting> | 725 | </programlisting> |
726 | </example> | 726 | </example> |
727 | </section> | ||
727 | <section id="dv-timings"> | 728 | <section id="dv-timings"> |
728 | <title>Digital Video (DV) Timings</title> | 729 | <title>Digital Video (DV) Timings</title> |
729 | <para> | 730 | <para> |
730 | The video standards discussed so far has been dealing with Analog TV and the | 731 | The video standards discussed so far have been dealing with Analog TV and the |
731 | corresponding video timings. Today there are many more different hardware interfaces | 732 | corresponding video timings. Today there are many more different hardware interfaces |
732 | such as High Definition TV interfaces (HDMI), VGA, DVI connectors etc., that carry | 733 | such as High Definition TV interfaces (HDMI), VGA, DVI connectors etc., that carry |
733 | video signals and there is a need to extend the API to select the video timings | 734 | video signals and there is a need to extend the API to select the video timings |
734 | for these interfaces. Since it is not possible to extend the &v4l2-std-id; due to | 735 | for these interfaces. Since it is not possible to extend the &v4l2-std-id; due to |
735 | the limited bits available, a new set of IOCTLs is added to set/get video timings at | 736 | the limited bits available, a new set of IOCTLs was added to set/get video timings at |
736 | the input and output: </para><itemizedlist> | 737 | the input and output: </para><itemizedlist> |
737 | <listitem> | 738 | <listitem> |
738 | <para>DV Presets: Digital Video (DV) presets. These are IDs representing a | 739 | <para>DV Timings: This will allow applications to define detailed |
740 | video timings for the interface. This includes parameters such as width, height, | ||
741 | polarities, frontporch, backporch etc. The <filename>linux/v4l2-dv-timings.h</filename> | ||
742 | header can be used to get the timings of the formats in the <xref linkend="cea861" /> and | ||
743 | <xref linkend="vesadmt" /> standards. | ||
744 | </para> | ||
745 | </listitem> | ||
746 | <listitem> | ||
747 | <para>DV Presets: Digital Video (DV) presets (<emphasis role="bold">deprecated</emphasis>). | ||
748 | These are IDs representing a | ||
739 | video timing at the input/output. Presets are pre-defined timings implemented | 749 | video timing at the input/output. Presets are pre-defined timings implemented |
740 | by the hardware according to video standards. A __u32 data type is used to represent | 750 | by the hardware according to video standards. A __u32 data type is used to represent |
741 | a preset unlike the bit mask that is used in &v4l2-std-id; allowing future extensions | 751 | a preset unlike the bit mask that is used in &v4l2-std-id; allowing future extensions |
742 | to support as many different presets as needed.</para> | 752 | to support as many different presets as needed. This API is deprecated in favor of the DV Timings |
743 | </listitem> | 753 | API.</para> |
744 | <listitem> | ||
745 | <para>Custom DV Timings: This will allow applications to define more detailed | ||
746 | custom video timings for the interface. This includes parameters such as width, height, | ||
747 | polarities, frontporch, backporch etc. | ||
748 | </para> | ||
749 | </listitem> | 754 | </listitem> |
750 | </itemizedlist> | 755 | </itemizedlist> |
756 | <para>To enumerate and query the attributes of the DV timings supported by a device, | ||
757 | applications use the &VIDIOC-ENUM-DV-TIMINGS; and &VIDIOC-DV-TIMINGS-CAP; ioctls. | ||
758 | To set DV timings for the device, applications use the | ||
759 | &VIDIOC-S-DV-TIMINGS; ioctl and to get current DV timings they use the | ||
760 | &VIDIOC-G-DV-TIMINGS; ioctl. To detect the DV timings as seen by the video receiver applications | ||
761 | use the &VIDIOC-QUERY-DV-TIMINGS; ioctl.</para> | ||
751 | <para>To enumerate and query the attributes of DV presets supported by a device, | 762 | <para>To enumerate and query the attributes of DV presets supported by a device, |
752 | applications use the &VIDIOC-ENUM-DV-PRESETS; ioctl. To get the current DV preset, | 763 | applications use the &VIDIOC-ENUM-DV-PRESETS; ioctl. To get the current DV preset, |
753 | applications use the &VIDIOC-G-DV-PRESET; ioctl and to set a preset they use the | 764 | applications use the &VIDIOC-G-DV-PRESET; ioctl and to set a preset they use the |
754 | &VIDIOC-S-DV-PRESET; ioctl.</para> | 765 | &VIDIOC-S-DV-PRESET; ioctl. To detect the preset as seen by the video receiver applications |
755 | <para>To set custom DV timings for the device, applications use the | 766 | use the &VIDIOC-QUERY-DV-PRESET; ioctl.</para> |
756 | &VIDIOC-S-DV-TIMINGS; ioctl and to get current custom DV timings they use the | ||
757 | &VIDIOC-G-DV-TIMINGS; ioctl.</para> | ||
758 | <para>Applications can make use of the <xref linkend="input-capabilities" /> and | 767 | <para>Applications can make use of the <xref linkend="input-capabilities" /> and |
759 | <xref linkend="output-capabilities"/> flags to decide what ioctls are available to set the | 768 | <xref linkend="output-capabilities"/> flags to decide what ioctls are available to set the |
760 | video timings for the device.</para> | 769 | video timings for the device.</para> |
761 | </section> | ||
762 | </section> | 770 | </section> |
763 | 771 | ||
764 | &sub-controls; | 772 | &sub-controls; |