V4L - Digital Video Timings API documentation
PATCH v2 1/1 V4L - Digital Video Timings API documentation
From: Muralidharan Karicheri <[email protected]>
This patch updates the v4l2-dvb documentation for the new video timings API added.
Signed-off-by Muralidharan Karicheri <[email protected]>
---
linux/Documentation/DocBook/v4l/common.xml +35 -0
@@ -716,6 +716,41 @@ } </programlisting> </example> + <section id="dv-timings"> + <title>Digital Video (DV) Timings</title> + <para> + The video standards discussed so far has been dealing with Analog TV and the +corresponding video timings. Today there are many more different hardware interfaces +such as High Definition TV interfaces (HDMI), VGA, DVI connectors etc., that carries +video signals and there is a need to extend the API to allow settings video timings + on these interfaces. Since it is not possible to extend the v4l2-std-id due to +the limited bits available, a new set of IOCTLs are added to set/get video timings at +the input and output:- </para><itemizedlist> + <listitem> + <para> DV Presets :- Digital Video (DV) presets. These are IDs representing a +video timing at the input/output. Presets can be thought of pre-defined timings implemented +by the hardware like standards. A __u32 data type is used to represent a preset unlike the + bit mask that is used in &v4l2-std-id; allowing future extensions to support many +different presets as needed</para> + </listitem> + <listitem> + <para> Custom DV Timings :- This will allow applications to define a more detailed +custom video timings at the interface. This includes parameters such as width, height, + polarities, frontporch, backporch etc. + </para> + </listitem> + </itemizedlist> + <para> To Enumerate and query the attributes of DV presets supported by a device, + applications use the &VIDIOC-ENUM-DV-PRESETS; ioctl. To Get the current DV preset, + application use the &VIDIOC-G-DV-PRESET; ioctl and to Set a preset it uses the + &VIDIOC-S-DV-PRESET; ioctl.</para> + <para> To Set a Custom DV timings at the device, applications use the + &VIDIOC-S-DV-TIMINGS; ioctl and to Get current Custom DV timings, it uses the + &VIDIOC-G-DV-TIMINGS; ioctl.</para> + <para> Applications can make use of the <xref linkend="input-capabilities" /> and +<xref linkend="output-capabilities"/> flags to decide what ioctls available to set the +video timings at the device.</para> + </section> </section> &sub-controls;
linux/Documentation/DocBook/v4l/v4l2.xml +4 -0
@@ -416,6 +416,10 @@ &sub-enum-frameintervals; &sub-enuminput; &sub-enumoutput; + &sub-enum-dv-presets; + &sub-g-dv-preset; + &sub-query-dv-preset; + &sub-g-dv-timings; &sub-enumstd; &sub-g-audio; &sub-g-audioout;
linux/Documentation/DocBook/v4l/vidioc-enum-dv-presets.xml +167 -0
167 lines not on this page · raw message
linux/Documentation/DocBook/v4l/vidioc-enuminput.xml +35 -1
@@ -124,7 +124,13 @@ </row> <row> <entry>__u32</entry> - <entry><structfield>reserved</structfield>[4]</entry> + <entry><structfield>capabilities</structfield></entry> + <entry>This field provides capabilities that exists at the +input. See <xref linkend="input-capabilities" /> for flags </entry> + </row> + <row> + <entry>__u32</entry> + <entry><structfield>reserved</structfield>[3]</entry> <entry>Reserved for future extensions. Drivers must set the array to zero.</entry> </row>
@@ -261,6 +267,34 @@ </tbody> </tgroup> </table> + + <!-- Capabilities flags based on video timings RFC by Muralidharan +Karicheri, titled RFC (v1.2): V4L - Support for video timings at the +input/output interface to [email protected] on 19 Oct 2009. + --> + <table frame="none" pgwide="1" id="input-capabilities"> + <title>Input capabilities</title> + <tgroup cols="3"> + &cs-def; + <tbody valign="top"> + <row> + <entry><constant>V4L2_IN_CAP_PRESETS</constant></entry> + <entry>0x00000001</entry> + <entry>This input supports setting DV PRESET using VIDIOC_S_DV_PRESET</entry> + </row> + <row> + <entry><constant>V4L2_OUT_CAP_CUSTOM_TIMINGS</constant></entry> + <entry>0x00000002</entry> + <entry>This input supports setting Custom timings using VIDIOC_S_DV_TIMINGS</entry> + </row> + <row> + <entry><constant>V4L2_IN_CAP_STD</constant></entry> + <entry>0x00000004</entry> + <entry>This input supports setting standard using VIDIOC_S_STD</entry> + </row> + </tbody> + </tgroup> + </table> </refsect1> <refsect1>
linux/Documentation/DocBook/v4l/vidioc-enumoutput.xml +35 -1
@@ -114,7 +114,13 @@ </row> <row> <entry>__u32</entry> - <entry><structfield>reserved</structfield>[4]</entry> + <entry><structfield>capabilities</structfield></entry> + <entry>This field provides capabilities that exists at the +output. See <xref linkend="output-capabilities" /> for flags </entry> + </row> + <row> + <entry>__u32</entry> + <entry><structfield>reserved</structfield>[3]</entry> <entry>Reserved for future extensions. Drivers must set the array to zero.</entry> </row>
@@ -147,6 +153,34 @@ </tgroup> </table> + <!-- Capabilities flags based on video timings RFC by Muralidharan +Karicheri, titled RFC (v1.2): V4L - Support for video timings at the +input/output interface to [email protected] on 19 Oct 2009. + --> + <table frame="none" pgwide="1" id="output-capabilities"> + <title>Output capabilities</title> + <tgroup cols="3"> + &cs-def; + <tbody valign="top"> + <row> + <entry><constant>V4L2_OUT_CAP_PRESETS</constant></entry> + <entry>0x00000001</entry> + <entry>This output supports setting DV PRESET using VIDIOC_S_DV_PRESET</entry> + </row> + <row> + <entry><constant>V4L2_OUT_CAP_CUSTOM_TIMINGS</constant></entry> + <entry>0x00000002</entry> + <entry>This output supports setting Custom timings using VIDIOC_S_DV_TIMINGS</entry> + </row> + <row> + <entry><constant>V4L2_OUT_CAP_STD</constant></entry> + <entry>0x00000004</entry> + <entry>This output supports setting standard using VIDIOC_S_STD</entry> + </row> + </tbody> + </tgroup> + </table> + </refsect1> <refsect1> &return-value;
linux/Documentation/DocBook/v4l/vidioc-g-dv-preset.xml +103 -0
103 lines not on this page · raw message
linux/Documentation/DocBook/v4l/vidioc-g-dv-timings.xml +195 -0
195 lines not on this page · raw message
linux/Documentation/DocBook/v4l/vidioc-query-dv-preset.xml +80 -0
80 lines not on this page · raw message
linux/include/linux/videodev2.h +134 -2
172 lines not on this page · raw message
media-specs/Makefile +15 -0
@@ -60,6 +60,10 @@ v4l/vidioc-enumaudioout.xml \ v4l/vidioc-enuminput.xml \ v4l/vidioc-enumoutput.xml \ + v4l/vidioc-enum-dv-presets.xml \ + v4l/vidioc-g-dv-preset.xml \ + v4l/vidioc-query-dv-preset.xml \ + v4l/vidioc-g-dv-timings.xml \ v4l/vidioc-enumstd.xml \ v4l/vidioc-g-audio.xml \ v4l/vidioc-g-audioout.xml \
@@ -191,6 +195,12 @@ VIDIOC_ENUMAUDOUT \ VIDIOC_ENUMINPUT \ VIDIOC_ENUMOUTPUT \ + VIDIOC_ENUM_DV_PRESETS \ + VIDIOC_QUERY_DV_PRESET \ + VIDIOC_G_DV_PRESET \ + VIDIOC_S_DV_PRESET \ + VIDIOC_G_DV_TIMINGS \ + VIDIOC_S_DV_TIMINGS \ VIDIOC_ENUMSTD \ VIDIOC_ENUM_FMT \ VIDIOC_ENUM_FRAMEINTERVALS \
@@ -283,6 +293,7 @@ v4l2_priority \ v4l2_tuner_type \ v4l2_preemphasis \ + v4l2_dv_timings_type \ STRUCTS = \ v4l2_audio \
@@ -333,6 +344,10 @@ v4l2_tuner \ v4l2_vbi_format \ v4l2_window \ + v4l2_dv_enum_preset \ + v4l2_dv_preset \ + v4l2_dv_timings \ + v4l2_bt_timings \ ERRORS = \ EACCES \
+-->