aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-03-28 12:01:42 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-17 10:57:27 -0400
commit407d3a87e314f813d1a12bcffb9d12d1eff83379 (patch)
tree8b70e3f35331ad9ecd6d7f5683c56f0fb7455c68 /Documentation/DocBook
parenta77b4fc0bc328b0989f83220aba1c268e087107f (diff)
[media] DocBook media: document new motion detection controls
Document the 'Detect' control class and the new Motion Detection controls. Those controls will be used by the solo6x10 and go7007 drivers. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r--Documentation/DocBook/media/v4l/controls.xml96
1 files changed, 96 insertions, 0 deletions
diff --git a/Documentation/DocBook/media/v4l/controls.xml b/Documentation/DocBook/media/v4l/controls.xml
index e7b8b72651bf..cc0087efc8d2 100644
--- a/Documentation/DocBook/media/v4l/controls.xml
+++ b/Documentation/DocBook/media/v4l/controls.xml
@@ -5055,6 +5055,102 @@ defines possible values for de-emphasis. Here they are:</entry>
5055 </tbody> 5055 </tbody>
5056 </tgroup> 5056 </tgroup>
5057 </table> 5057 </table>
5058 </section>
5059
5060 <section id="detect-controls">
5061 <title>Detect Control Reference</title>
5062
5063 <para>The Detect class includes controls for common features of
5064 various motion or object detection capable devices.</para>
5065
5066 <table pgwide="1" frame="none" id="detect-control-id">
5067 <title>Detect Control IDs</title>
5068
5069 <tgroup cols="4">
5070 <colspec colname="c1" colwidth="1*" />
5071 <colspec colname="c2" colwidth="6*" />
5072 <colspec colname="c3" colwidth="2*" />
5073 <colspec colname="c4" colwidth="6*" />
5074 <spanspec namest="c1" nameend="c2" spanname="id" />
5075 <spanspec namest="c2" nameend="c4" spanname="descr" />
5076 <thead>
5077 <row>
5078 <entry spanname="id" align="left">ID</entry>
5079 <entry align="left">Type</entry>
5080 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
5081 </row>
5082 </thead>
5083 <tbody valign="top">
5084 <row><entry></entry></row>
5085 <row>
5086 <entry spanname="id"><constant>V4L2_CID_DETECT_CLASS</constant>&nbsp;</entry>
5087 <entry>class</entry>
5088 </row><row><entry spanname="descr">The Detect class
5089descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
5090description of this control class.</entry>
5091 </row>
5092 <row>
5093 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_MODE</constant>&nbsp;</entry>
5094 <entry>menu</entry>
5095 </row><row><entry spanname="descr">Sets the motion detection mode.</entry>
5096 </row>
5097 <row>
5098 <entrytbl spanname="descr" cols="2">
5099 <tbody valign="top">
5100 <row>
5101 <entry><constant>V4L2_DETECT_MD_MODE_DISABLED</constant>
5102 </entry><entry>Disable motion detection.</entry>
5103 </row>
5104 <row>
5105 <entry><constant>V4L2_DETECT_MD_MODE_GLOBAL</constant>
5106 </entry><entry>Use a single motion detection threshold.</entry>
5107 </row>
5108 <row>
5109 <entry><constant>V4L2_DETECT_MD_MODE_THRESHOLD_GRID</constant>
5110 </entry><entry>The image is divided into a grid, each cell with its own
5111 motion detection threshold. These thresholds are set through the
5112 <constant>V4L2_CID_DETECT_MD_THRESHOLD_GRID</constant> matrix control.</entry>
5113 </row>
5114 <row>
5115 <entry><constant>V4L2_DETECT_MD_MODE_REGION_GRID</constant>
5116 </entry><entry>The image is divided into a grid, each cell with its own
5117 region value that specifies which per-region motion detection thresholds
5118 should be used. Each region has its own thresholds. How these per-region
5119 thresholds are set up is driver-specific. The region values for the grid are set
5120 through the <constant>V4L2_CID_DETECT_MD_REGION_GRID</constant> matrix
5121 control.</entry>
5122 </row>
5123 </tbody>
5124 </entrytbl>
5125 </row>
5126 <row>
5127 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD</constant>&nbsp;</entry>
5128 <entry>integer</entry>
5129 </row>
5130 <row><entry spanname="descr">Sets the global motion detection threshold to be
5131 used with the <constant>V4L2_DETECT_MD_MODE_GLOBAL</constant> motion detection mode.</entry>
5132 </row>
5133 <row>
5134 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_THRESHOLD_GRID</constant>&nbsp;</entry>
5135 <entry>__u16 matrix</entry>
5136 </row>
5137 <row><entry spanname="descr">Sets the motion detection thresholds for each cell in the grid.
5138 To be used with the <constant>V4L2_DETECT_MD_MODE_THRESHOLD_GRID</constant>
5139 motion detection mode. Matrix element (0, 0) represents the cell at the top-left of the
5140 grid.</entry>
5141 </row>
5142 <row>
5143 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_REGION_GRID</constant>&nbsp;</entry>
5144 <entry>__u8 matrix</entry>
5145 </row>
5146 <row><entry spanname="descr">Sets the motion detection region value for each cell in the grid.
5147 To be used with the <constant>V4L2_DETECT_MD_MODE_REGION_GRID</constant>
5148 motion detection mode. Matrix element (0, 0) represents the cell at the top-left of the
5149 grid.</entry>
5150 </row>
5151 </tbody>
5152 </tgroup>
5153 </table>
5058 5154
5059 </section> 5155 </section>
5060 5156