diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-06-13 03:47:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-17 15:26:55 -0400 |
commit | d2dbd9d5bfb38c4bb4aeaf650ac7661e6cf9c105 (patch) | |
tree | c263942e3eb74ab2ea85c874b58f9ff547617faf /Documentation/DocBook/media/v4l | |
parent | 0db83cede26c5676303e8007f27a291b0277ba1b (diff) |
[media] DocBook media: fix wrong spacing
There shouldn't be any spaces after <constant> or before </constant>.
This leads to ugly results like: 'image size set by VIDIOC_S_FMT .'
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/DocBook/media/v4l')
-rw-r--r-- | Documentation/DocBook/media/v4l/selection-api.xml | 95 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-g-selection.xml | 40 |
2 files changed, 66 insertions, 69 deletions
diff --git a/Documentation/DocBook/media/v4l/selection-api.xml b/Documentation/DocBook/media/v4l/selection-api.xml index 4c238ce068b0..28cbded766c9 100644 --- a/Documentation/DocBook/media/v4l/selection-api.xml +++ b/Documentation/DocBook/media/v4l/selection-api.xml | |||
@@ -86,47 +86,47 @@ selection targets available for a video capture device. It is recommended to | |||
86 | configure the cropping targets before to the composing targets.</para> | 86 | configure the cropping targets before to the composing targets.</para> |
87 | 87 | ||
88 | <para>The range of coordinates of the top left corner, width and height of | 88 | <para>The range of coordinates of the top left corner, width and height of |
89 | areas that can be sampled is given by the <constant> V4L2_SEL_TGT_CROP_BOUNDS | 89 | areas that can be sampled is given by the <constant>V4L2_SEL_TGT_CROP_BOUNDS</constant> |
90 | </constant> target. It is recommended for the driver developers to put the | 90 | target. It is recommended for the driver developers to put the |
91 | top/left corner at position <constant> (0,0) </constant>. The rectangle's | 91 | top/left corner at position <constant>(0,0)</constant>. The rectangle's |
92 | coordinates are expressed in pixels.</para> | 92 | coordinates are expressed in pixels.</para> |
93 | 93 | ||
94 | <para>The top left corner, width and height of the source rectangle, that is | 94 | <para>The top left corner, width and height of the source rectangle, that is |
95 | the area actually sampled, is given by the <constant> V4L2_SEL_TGT_CROP | 95 | the area actually sampled, is given by the <constant>V4L2_SEL_TGT_CROP</constant> |
96 | </constant> target. It uses the same coordinate system as <constant> | 96 | target. It uses the same coordinate system as <constant>V4L2_SEL_TGT_CROP_BOUNDS</constant>. |
97 | V4L2_SEL_TGT_CROP_BOUNDS </constant>. The active cropping area must lie | 97 | The active cropping area must lie completely inside the capture boundaries. The |
98 | completely inside the capture boundaries. The driver may further adjust the | 98 | driver may further adjust the requested size and/or position according to hardware |
99 | requested size and/or position according to hardware limitations.</para> | 99 | limitations.</para> |
100 | 100 | ||
101 | <para>Each capture device has a default source rectangle, given by the | 101 | <para>Each capture device has a default source rectangle, given by the |
102 | <constant> V4L2_SEL_TGT_CROP_DEFAULT </constant> target. This rectangle shall | 102 | <constant>V4L2_SEL_TGT_CROP_DEFAULT</constant> target. This rectangle shall |
103 | over what the driver writer considers the complete picture. Drivers shall set | 103 | over what the driver writer considers the complete picture. Drivers shall set |
104 | the active crop rectangle to the default when the driver is first loaded, but | 104 | the active crop rectangle to the default when the driver is first loaded, but |
105 | not later.</para> | 105 | not later.</para> |
106 | 106 | ||
107 | <para>The composing targets refer to a memory buffer. The limits of composing | 107 | <para>The composing targets refer to a memory buffer. The limits of composing |
108 | coordinates are obtained using <constant> V4L2_SEL_TGT_COMPOSE_BOUNDS | 108 | coordinates are obtained using <constant>V4L2_SEL_TGT_COMPOSE_BOUNDS</constant>. |
109 | </constant>. All coordinates are expressed in pixels. The rectangle's top/left | 109 | All coordinates are expressed in pixels. The rectangle's top/left |
110 | corner must be located at position <constant> (0,0) </constant>. The width and | 110 | corner must be located at position <constant>(0,0)</constant>. The width and |
111 | height are equal to the image size set by <constant> VIDIOC_S_FMT </constant>. | 111 | height are equal to the image size set by <constant>VIDIOC_S_FMT</constant>. |
112 | </para> | 112 | </para> |
113 | 113 | ||
114 | <para>The part of a buffer into which the image is inserted by the hardware is | 114 | <para>The part of a buffer into which the image is inserted by the hardware is |
115 | controlled by the <constant> V4L2_SEL_TGT_COMPOSE </constant> target. | 115 | controlled by the <constant>V4L2_SEL_TGT_COMPOSE</constant> target. |
116 | The rectangle's coordinates are also expressed in the same coordinate system as | 116 | The rectangle's coordinates are also expressed in the same coordinate system as |
117 | the bounds rectangle. The composing rectangle must lie completely inside bounds | 117 | the bounds rectangle. The composing rectangle must lie completely inside bounds |
118 | rectangle. The driver must adjust the composing rectangle to fit to the | 118 | rectangle. The driver must adjust the composing rectangle to fit to the |
119 | bounding limits. Moreover, the driver can perform other adjustments according | 119 | bounding limits. Moreover, the driver can perform other adjustments according |
120 | to hardware limitations. The application can control rounding behaviour using | 120 | to hardware limitations. The application can control rounding behaviour using |
121 | <link linkend="v4l2-selection-flags"> constraint flags </link>.</para> | 121 | <link linkend="v4l2-selection-flags"> constraint flags</link>.</para> |
122 | 122 | ||
123 | <para>For capture devices the default composing rectangle is queried using | 123 | <para>For capture devices the default composing rectangle is queried using |
124 | <constant> V4L2_SEL_TGT_COMPOSE_DEFAULT </constant>. It is usually equal to the | 124 | <constant>V4L2_SEL_TGT_COMPOSE_DEFAULT</constant>. It is usually equal to the |
125 | bounding rectangle.</para> | 125 | bounding rectangle.</para> |
126 | 126 | ||
127 | <para>The part of a buffer that is modified by the hardware is given by | 127 | <para>The part of a buffer that is modified by the hardware is given by |
128 | <constant> V4L2_SEL_TGT_COMPOSE_PADDED </constant>. It contains all pixels | 128 | <constant>V4L2_SEL_TGT_COMPOSE_PADDED</constant>. It contains all pixels |
129 | defined using <constant> V4L2_SEL_TGT_COMPOSE </constant> plus all | 129 | defined using <constant>V4L2_SEL_TGT_COMPOSE</constant> plus all |
130 | padding data modified by hardware during insertion process. All pixels outside | 130 | padding data modified by hardware during insertion process. All pixels outside |
131 | this rectangle <emphasis>must not</emphasis> be changed by the hardware. The | 131 | this rectangle <emphasis>must not</emphasis> be changed by the hardware. The |
132 | content of pixels that lie inside the padded area but outside active area is | 132 | content of pixels that lie inside the padded area but outside active area is |
@@ -140,52 +140,51 @@ where the rubbish pixels are located and remove them if needed.</para> | |||
140 | <title>Configuration of video output</title> | 140 | <title>Configuration of video output</title> |
141 | 141 | ||
142 | <para>For output devices targets and ioctls are used similarly to the video | 142 | <para>For output devices targets and ioctls are used similarly to the video |
143 | capture case. The <emphasis> composing </emphasis> rectangle refers to the | 143 | capture case. The <emphasis>composing</emphasis> rectangle refers to the |
144 | insertion of an image into a video signal. The cropping rectangles refer to a | 144 | insertion of an image into a video signal. The cropping rectangles refer to a |
145 | memory buffer. It is recommended to configure the composing targets before to | 145 | memory buffer. It is recommended to configure the composing targets before to |
146 | the cropping targets.</para> | 146 | the cropping targets.</para> |
147 | 147 | ||
148 | <para>The cropping targets refer to the memory buffer that contains an image to | 148 | <para>The cropping targets refer to the memory buffer that contains an image to |
149 | be inserted into a video signal or graphical screen. The limits of cropping | 149 | be inserted into a video signal or graphical screen. The limits of cropping |
150 | coordinates are obtained using <constant> V4L2_SEL_TGT_CROP_BOUNDS </constant>. | 150 | coordinates are obtained using <constant>V4L2_SEL_TGT_CROP_BOUNDS</constant>. |
151 | All coordinates are expressed in pixels. The top/left corner is always point | 151 | All coordinates are expressed in pixels. The top/left corner is always point |
152 | <constant> (0,0) </constant>. The width and height is equal to the image size | 152 | <constant>(0,0)</constant>. The width and height is equal to the image size |
153 | specified using <constant> VIDIOC_S_FMT </constant> ioctl.</para> | 153 | specified using <constant>VIDIOC_S_FMT</constant> ioctl.</para> |
154 | 154 | ||
155 | <para>The top left corner, width and height of the source rectangle, that is | 155 | <para>The top left corner, width and height of the source rectangle, that is |
156 | the area from which image date are processed by the hardware, is given by the | 156 | the area from which image date are processed by the hardware, is given by the |
157 | <constant> V4L2_SEL_TGT_CROP </constant>. Its coordinates are expressed | 157 | <constant>V4L2_SEL_TGT_CROP</constant>. Its coordinates are expressed |
158 | in in the same coordinate system as the bounds rectangle. The active cropping | 158 | in in the same coordinate system as the bounds rectangle. The active cropping |
159 | area must lie completely inside the crop boundaries and the driver may further | 159 | area must lie completely inside the crop boundaries and the driver may further |
160 | adjust the requested size and/or position according to hardware | 160 | adjust the requested size and/or position according to hardware |
161 | limitations.</para> | 161 | limitations.</para> |
162 | 162 | ||
163 | <para>For output devices the default cropping rectangle is queried using | 163 | <para>For output devices the default cropping rectangle is queried using |
164 | <constant> V4L2_SEL_TGT_CROP_DEFAULT </constant>. It is usually equal to the | 164 | <constant>V4L2_SEL_TGT_CROP_DEFAULT</constant>. It is usually equal to the |
165 | bounding rectangle.</para> | 165 | bounding rectangle.</para> |
166 | 166 | ||
167 | <para>The part of a video signal or graphics display where the image is | 167 | <para>The part of a video signal or graphics display where the image is |
168 | inserted by the hardware is controlled by <constant> | 168 | inserted by the hardware is controlled by <constant>V4L2_SEL_TGT_COMPOSE</constant> |
169 | V4L2_SEL_TGT_COMPOSE </constant> target. The rectangle's coordinates | 169 | target. The rectangle's coordinates are expressed in pixels. The composing |
170 | are expressed in pixels. The composing rectangle must lie completely inside the | 170 | rectangle must lie completely inside the bounds rectangle. The driver must |
171 | bounds rectangle. The driver must adjust the area to fit to the bounding | 171 | adjust the area to fit to the bounding limits. Moreover, the driver can |
172 | limits. Moreover, the driver can perform other adjustments according to | 172 | perform other adjustments according to hardware limitations.</para> |
173 | hardware limitations. </para> | 173 | |
174 | 174 | <para>The device has a default composing rectangle, given by the | |
175 | <para>The device has a default composing rectangle, given by the <constant> | 175 | <constant>V4L2_SEL_TGT_COMPOSE_DEFAULT</constant> target. This rectangle shall cover what |
176 | V4L2_SEL_TGT_COMPOSE_DEFAULT </constant> target. This rectangle shall cover what | ||
177 | the driver writer considers the complete picture. It is recommended for the | 176 | the driver writer considers the complete picture. It is recommended for the |
178 | driver developers to put the top/left corner at position <constant> (0,0) | 177 | driver developers to put the top/left corner at position <constant>(0,0)</constant>. |
179 | </constant>. Drivers shall set the active composing rectangle to the default | 178 | Drivers shall set the active composing rectangle to the default |
180 | one when the driver is first loaded.</para> | 179 | one when the driver is first loaded.</para> |
181 | 180 | ||
182 | <para>The devices may introduce additional content to video signal other than | 181 | <para>The devices may introduce additional content to video signal other than |
183 | an image from memory buffers. It includes borders around an image. However, | 182 | an image from memory buffers. It includes borders around an image. However, |
184 | such a padded area is driver-dependent feature not covered by this document. | 183 | such a padded area is driver-dependent feature not covered by this document. |
185 | Driver developers are encouraged to keep padded rectangle equal to active one. | 184 | Driver developers are encouraged to keep padded rectangle equal to active one. |
186 | The padded target is accessed by the <constant> V4L2_SEL_TGT_COMPOSE_PADDED | 185 | The padded target is accessed by the <constant>V4L2_SEL_TGT_COMPOSE_PADDED</constant> |
187 | </constant> identifier. It must contain all pixels from the <constant> | 186 | identifier. It must contain all pixels from the <constant>V4L2_SEL_TGT_COMPOSE</constant> |
188 | V4L2_SEL_TGT_COMPOSE </constant> target.</para> | 187 | target.</para> |
189 | 188 | ||
190 | </section> | 189 | </section> |
191 | 190 | ||
@@ -194,8 +193,8 @@ V4L2_SEL_TGT_COMPOSE </constant> target.</para> | |||
194 | <title>Scaling control</title> | 193 | <title>Scaling control</title> |
195 | 194 | ||
196 | <para>An application can detect if scaling is performed by comparing the width | 195 | <para>An application can detect if scaling is performed by comparing the width |
197 | and the height of rectangles obtained using <constant> V4L2_SEL_TGT_CROP | 196 | and the height of rectangles obtained using <constant>V4L2_SEL_TGT_CROP</constant> |
198 | </constant> and <constant> V4L2_SEL_TGT_COMPOSE </constant> targets. If | 197 | and <constant>V4L2_SEL_TGT_COMPOSE</constant> targets. If |
199 | these are not equal then the scaling is applied. The application can compute | 198 | these are not equal then the scaling is applied. The application can compute |
200 | the scaling ratios using these values.</para> | 199 | the scaling ratios using these values.</para> |
201 | 200 | ||
@@ -208,7 +207,7 @@ the scaling ratios using these values.</para> | |||
208 | <title>Comparison with old cropping API</title> | 207 | <title>Comparison with old cropping API</title> |
209 | 208 | ||
210 | <para>The selection API was introduced to cope with deficiencies of previous | 209 | <para>The selection API was introduced to cope with deficiencies of previous |
211 | <link linkend="crop"> API </link>, that was designed to control simple capture | 210 | <link linkend="crop"> API</link>, that was designed to control simple capture |
212 | devices. Later the cropping API was adopted by video output drivers. The ioctls | 211 | devices. Later the cropping API was adopted by video output drivers. The ioctls |
213 | are used to select a part of the display were the video signal is inserted. It | 212 | are used to select a part of the display were the video signal is inserted. It |
214 | should be considered as an API abuse because the described operation is | 213 | should be considered as an API abuse because the described operation is |
@@ -220,7 +219,7 @@ part of an image by abusing V4L2 API. Cropping a smaller image from a larger | |||
220 | one is achieved by setting the field | 219 | one is achieved by setting the field |
221 | &v4l2-pix-format;<structfield>::bytesperline</structfield>. Introducing an image offsets | 220 | &v4l2-pix-format;<structfield>::bytesperline</structfield>. Introducing an image offsets |
222 | could be done by modifying field &v4l2-buffer;<structfield>::m_userptr</structfield> | 221 | could be done by modifying field &v4l2-buffer;<structfield>::m_userptr</structfield> |
223 | before calling <constant> VIDIOC_QBUF </constant>. Those | 222 | before calling <constant>VIDIOC_QBUF</constant>. Those |
224 | operations should be avoided because they are not portable (endianness), and do | 223 | operations should be avoided because they are not portable (endianness), and do |
225 | not work for macroblock and Bayer formats and mmap buffers. The selection API | 224 | not work for macroblock and Bayer formats and mmap buffers. The selection API |
226 | deals with configuration of buffer cropping/composing in a clear, intuitive and | 225 | deals with configuration of buffer cropping/composing in a clear, intuitive and |
@@ -229,7 +228,7 @@ and constraints flags are introduced. Finally, &v4l2-crop; and &v4l2-cropcap; | |||
229 | have no reserved fields. Therefore there is no way to extend their functionality. | 228 | have no reserved fields. Therefore there is no way to extend their functionality. |
230 | The new &v4l2-selection; provides a lot of place for future | 229 | The new &v4l2-selection; provides a lot of place for future |
231 | extensions. Driver developers are encouraged to implement only selection API. | 230 | extensions. Driver developers are encouraged to implement only selection API. |
232 | The former cropping API would be simulated using the new one. </para> | 231 | The former cropping API would be simulated using the new one.</para> |
233 | 232 | ||
234 | </section> | 233 | </section> |
235 | 234 | ||
@@ -238,9 +237,9 @@ The former cropping API would be simulated using the new one. </para> | |||
238 | <example> | 237 | <example> |
239 | <title>Resetting the cropping parameters</title> | 238 | <title>Resetting the cropping parameters</title> |
240 | 239 | ||
241 | <para>(A video capture device is assumed; change <constant> | 240 | <para>(A video capture device is assumed; change |
242 | V4L2_BUF_TYPE_VIDEO_CAPTURE </constant> for other devices; change target to | 241 | <constant>V4L2_BUF_TYPE_VIDEO_CAPTURE</constant> for other devices; change target to |
243 | <constant> V4L2_SEL_TGT_COMPOSE_* </constant> family to configure composing | 242 | <constant>V4L2_SEL_TGT_COMPOSE_*</constant> family to configure composing |
244 | area)</para> | 243 | area)</para> |
245 | 244 | ||
246 | <programlisting> | 245 | <programlisting> |
@@ -292,8 +291,8 @@ area)</para> | |||
292 | 291 | ||
293 | <example> | 292 | <example> |
294 | <title>Querying for scaling factors</title> | 293 | <title>Querying for scaling factors</title> |
295 | <para>A video output device is assumed; change <constant> | 294 | <para>A video output device is assumed; change |
296 | V4L2_BUF_TYPE_VIDEO_OUTPUT </constant> for other devices</para> | 295 | <constant>V4L2_BUF_TYPE_VIDEO_OUTPUT</constant> for other devices</para> |
297 | <programlisting> | 296 | <programlisting> |
298 | 297 | ||
299 | &v4l2-selection; compose = { | 298 | &v4l2-selection; compose = { |
diff --git a/Documentation/DocBook/media/v4l/vidioc-g-selection.xml b/Documentation/DocBook/media/v4l/vidioc-g-selection.xml index b11ec75e21a1..9c04ac8661b1 100644 --- a/Documentation/DocBook/media/v4l/vidioc-g-selection.xml +++ b/Documentation/DocBook/media/v4l/vidioc-g-selection.xml | |||
@@ -58,17 +58,16 @@ | |||
58 | 58 | ||
59 | <para>The ioctls are used to query and configure selection rectangles.</para> | 59 | <para>The ioctls are used to query and configure selection rectangles.</para> |
60 | 60 | ||
61 | <para> To query the cropping (composing) rectangle set &v4l2-selection; | 61 | <para>To query the cropping (composing) rectangle set &v4l2-selection; |
62 | <structfield> type </structfield> field to the respective buffer type. | 62 | <structfield> type </structfield> field to the respective buffer type. |
63 | Do not use multiplanar buffers. Use <constant> V4L2_BUF_TYPE_VIDEO_CAPTURE | 63 | Do not use multiplanar buffers. Use <constant>V4L2_BUF_TYPE_VIDEO_CAPTURE</constant> |
64 | </constant> instead of <constant> V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE | 64 | instead of <constant>V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE</constant>. Use |
65 | </constant>. Use <constant> V4L2_BUF_TYPE_VIDEO_OUTPUT </constant> instead of | 65 | <constant>V4L2_BUF_TYPE_VIDEO_OUTPUT</constant> instead of |
66 | <constant> V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE </constant>. The next step is | 66 | <constant>V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE</constant>. The next step is |
67 | setting the value of &v4l2-selection; <structfield>target</structfield> field | 67 | setting the value of &v4l2-selection; <structfield>target</structfield> field |
68 | to <constant> V4L2_SEL_TGT_CROP </constant> (<constant> | 68 | to <constant>V4L2_SEL_TGT_CROP</constant> (<constant>V4L2_SEL_TGT_COMPOSE</constant>). |
69 | V4L2_SEL_TGT_COMPOSE </constant>). Please refer to table <xref | 69 | Please refer to table <xref linkend="v4l2-selections-common" /> or <xref linkend="selection-api" /> |
70 | linkend="v4l2-selections-common" /> or <xref linkend="selection-api" /> for additional | 70 | for additional targets. The <structfield>flags</structfield> and <structfield>reserved |
71 | targets. The <structfield>flags</structfield> and <structfield>reserved | ||
72 | </structfield> fields of &v4l2-selection; are ignored and they must be filled | 71 | </structfield> fields of &v4l2-selection; are ignored and they must be filled |
73 | with zeros. The driver fills the rest of the structure or | 72 | with zeros. The driver fills the rest of the structure or |
74 | returns &EINVAL; if incorrect buffer type or target was used. If cropping | 73 | returns &EINVAL; if incorrect buffer type or target was used. If cropping |
@@ -77,19 +76,18 @@ always equal to the bounds rectangle. Finally, the &v4l2-rect; | |||
77 | <structfield>r</structfield> rectangle is filled with the current cropping | 76 | <structfield>r</structfield> rectangle is filled with the current cropping |
78 | (composing) coordinates. The coordinates are expressed in driver-dependent | 77 | (composing) coordinates. The coordinates are expressed in driver-dependent |
79 | units. The only exception are rectangles for images in raw formats, whose | 78 | units. The only exception are rectangles for images in raw formats, whose |
80 | coordinates are always expressed in pixels. </para> | 79 | coordinates are always expressed in pixels.</para> |
81 | 80 | ||
82 | <para> To change the cropping (composing) rectangle set the &v4l2-selection; | 81 | <para>To change the cropping (composing) rectangle set the &v4l2-selection; |
83 | <structfield>type</structfield> field to the respective buffer type. Do not | 82 | <structfield>type</structfield> field to the respective buffer type. Do not |
84 | use multiplanar buffers. Use <constant> V4L2_BUF_TYPE_VIDEO_CAPTURE | 83 | use multiplanar buffers. Use <constant>V4L2_BUF_TYPE_VIDEO_CAPTURE</constant> |
85 | </constant> instead of <constant> V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE | 84 | instead of <constant>V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE</constant>. Use |
86 | </constant>. Use <constant> V4L2_BUF_TYPE_VIDEO_OUTPUT </constant> instead of | 85 | <constant>V4L2_BUF_TYPE_VIDEO_OUTPUT</constant> instead of |
87 | <constant> V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE </constant>. The next step is | 86 | <constant>V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE</constant>. The next step is |
88 | setting the value of &v4l2-selection; <structfield>target</structfield> to | 87 | setting the value of &v4l2-selection; <structfield>target</structfield> to |
89 | <constant>V4L2_SEL_TGT_CROP</constant> (<constant> | 88 | <constant>V4L2_SEL_TGT_CROP</constant> (<constant>V4L2_SEL_TGT_COMPOSE</constant>). |
90 | V4L2_SEL_TGT_COMPOSE </constant>). Please refer to table <xref | 89 | Please refer to table <xref linkend="v4l2-selections-common" /> or <xref linkend="selection-api" /> |
91 | linkend="v4l2-selections-common" /> or <xref linkend="selection-api" /> for additional | 90 | for additional targets. The &v4l2-rect; <structfield>r</structfield> rectangle need to be |
92 | targets. The &v4l2-rect; <structfield>r</structfield> rectangle need to be | ||
93 | set to the desired active area. Field &v4l2-selection; <structfield> reserved | 91 | set to the desired active area. Field &v4l2-selection; <structfield> reserved |
94 | </structfield> is ignored and must be filled with zeros. The driver may adjust | 92 | </structfield> is ignored and must be filled with zeros. The driver may adjust |
95 | coordinates of the requested rectangle. An application may | 93 | coordinates of the requested rectangle. An application may |
@@ -149,8 +147,8 @@ On success the &v4l2-rect; <structfield>r</structfield> field contains | |||
149 | the adjusted rectangle. When the parameters are unsuitable the application may | 147 | the adjusted rectangle. When the parameters are unsuitable the application may |
150 | modify the cropping (composing) or image parameters and repeat the cycle until | 148 | modify the cropping (composing) or image parameters and repeat the cycle until |
151 | satisfactory parameters have been negotiated. If constraints flags have to be | 149 | satisfactory parameters have been negotiated. If constraints flags have to be |
152 | violated at then ERANGE is returned. The error indicates that <emphasis> there | 150 | violated at then ERANGE is returned. The error indicates that <emphasis>there |
153 | exist no rectangle </emphasis> that satisfies the constraints.</para> | 151 | exist no rectangle</emphasis> that satisfies the constraints.</para> |
154 | 152 | ||
155 | <para>Selection targets and flags are documented in <xref | 153 | <para>Selection targets and flags are documented in <xref |
156 | linkend="v4l2-selections-common"/>.</para> | 154 | linkend="v4l2-selections-common"/>.</para> |