--- zzzz-none-000/linux-3.10.107/Documentation/DocBook/media/v4l/vidioc-g-selection.xml 2017-06-27 09:49:32.000000000 +0000
+++ scorpion-7490-727/linux-3.10.107/Documentation/DocBook/media/v4l/vidioc-g-selection.xml 2021-02-04 17:41:59.000000000 +0000
@@ -58,17 +58,16 @@
The ioctls are used to query and configure selection rectangles.
- To query the cropping (composing) rectangle set &v4l2-selection;
+To query the cropping (composing) rectangle set &v4l2-selection;
type field to the respective buffer type.
-Do not use multiplanar buffers. Use V4L2_BUF_TYPE_VIDEO_CAPTURE
- instead of V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
-. Use V4L2_BUF_TYPE_VIDEO_OUTPUT instead of
- V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE . The next step is
+Do not use the multiplanar buffer types. Use V4L2_BUF_TYPE_VIDEO_CAPTURE
+instead of V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE and use
+V4L2_BUF_TYPE_VIDEO_OUTPUT instead of
+V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE. The next step is
setting the value of &v4l2-selection; target field
-to V4L2_SEL_TGT_CROP (
-V4L2_SEL_TGT_COMPOSE ). Please refer to table or for additional
-targets. The flags and reserved
+to V4L2_SEL_TGT_CROP (V4L2_SEL_TGT_COMPOSE).
+Please refer to table or
+for additional targets. The flags and reserved
fields of &v4l2-selection; are ignored and they must be filled
with zeros. The driver fills the rest of the structure or
returns &EINVAL; if incorrect buffer type or target was used. If cropping
@@ -77,19 +76,18 @@
r rectangle is filled with the current cropping
(composing) coordinates. The coordinates are expressed in driver-dependent
units. The only exception are rectangles for images in raw formats, whose
-coordinates are always expressed in pixels.
+coordinates are always expressed in pixels.
- To change the cropping (composing) rectangle set the &v4l2-selection;
+To change the cropping (composing) rectangle set the &v4l2-selection;
type field to the respective buffer type. Do not
-use multiplanar buffers. Use V4L2_BUF_TYPE_VIDEO_CAPTURE
- instead of V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
-. Use V4L2_BUF_TYPE_VIDEO_OUTPUT instead of
- V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE . The next step is
+use multiplanar buffers. Use V4L2_BUF_TYPE_VIDEO_CAPTURE
+instead of V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE. Use
+V4L2_BUF_TYPE_VIDEO_OUTPUT instead of
+V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE. The next step is
setting the value of &v4l2-selection; target to
-V4L2_SEL_TGT_CROP (
-V4L2_SEL_TGT_COMPOSE ). Please refer to table or for additional
-targets. The &v4l2-rect; r rectangle need to be
+V4L2_SEL_TGT_CROP (V4L2_SEL_TGT_COMPOSE).
+Please refer to table or
+for additional targets. The &v4l2-rect; r rectangle need to be
set to the desired active area. Field &v4l2-selection; reserved
is ignored and must be filled with zeros. The driver may adjust
coordinates of the requested rectangle. An application may
@@ -149,8 +147,8 @@
the adjusted rectangle. When the parameters are unsuitable the application may
modify the cropping (composing) or image parameters and repeat the cycle until
satisfactory parameters have been negotiated. If constraints flags have to be
-violated at then ERANGE is returned. The error indicates that there
-exist no rectangle that satisfies the constraints.
+violated at then ERANGE is returned. The error indicates that there
+exist no rectangle that satisfies the constraints.
Selection targets and flags are documented in .
@@ -201,7 +199,7 @@
__u32
reserved[9]
- Reserved fields for future use.
+ Reserved fields for future use. Drivers and applications must zero this array.