Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285794
b: refs/heads/master
c: aa73ab9
h: refs/heads/master
v: v3
  • Loading branch information
Tomasz Stanislawski authored and Mauro Carvalho Chehab committed Jan 11, 2012
1 parent 08f0fd6 commit 775b13f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 392d9e1d02edcbe9bc94bc292dd364339556f8ec
refs/heads/master: aa73ab96bebb6fb9e0ee4429f78bfa3ef8c5b6b6
30 changes: 12 additions & 18 deletions trunk/Documentation/DocBook/media/v4l/selection-api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ configure the cropping targets before to the composing targets.</para>
areas that can be sampled is given by the <constant> V4L2_SEL_TGT_CROP_BOUNDS
</constant> target. It is recommended for the driver developers to put the
top/left corner at position <constant> (0,0) </constant>. The rectangle's
coordinates are expressed in driver dependant units, although the coordinate
system guarantees that if sizes of the active cropping and the active composing
rectangles are equal then no scaling is performed. </para>
coordinates are expressed in pixels.</para>

<para>The top left corner, width and height of the source rectangle, that is
the area actually sampled, is given by the <constant> V4L2_SEL_TGT_CROP_ACTIVE
Expand All @@ -103,10 +101,10 @@ not later.</para>

<para>The composing targets refer to a memory buffer. The limits of composing
coordinates are obtained using <constant> V4L2_SEL_TGT_COMPOSE_BOUNDS
</constant>. All coordinates are expressed in natural unit for given formats.
Pixels are highly recommended. The rectangle's top/left corner must be located
at position <constant> (0,0) </constant>. The width and height are equal to the
image size set by <constant> VIDIOC_S_FMT </constant>.</para>
</constant>. All coordinates are expressed in pixels. The rectangle's top/left
corner must be located at position <constant> (0,0) </constant>. The width and
height are equal to the image size set by <constant> VIDIOC_S_FMT </constant>.
</para>

<para>The part of a buffer into which the image is inserted by the hardware is
controlled by the <constant> V4L2_SEL_TGT_COMPOSE_ACTIVE </constant> target.
Expand Down Expand Up @@ -145,10 +143,9 @@ the cropping targets.</para>
<para>The cropping targets refer to the memory buffer that contains an image to
be inserted into a video signal or graphical screen. The limits of cropping
coordinates are obtained using <constant> V4L2_SEL_TGT_CROP_BOUNDS </constant>.
All coordinates are expressed in natural units for a given format. Pixels are
highly recommended. The top/left corner is always point <constant> (0,0)
</constant>. The width and height is equal to the image size specified using
<constant> VIDIOC_S_FMT </constant> ioctl.</para>
All coordinates are expressed in pixels. The top/left corner is always point
<constant> (0,0) </constant>. The width and height is equal to the image size
specified using <constant> VIDIOC_S_FMT </constant> ioctl.</para>

<para>The top left corner, width and height of the source rectangle, that is
the area from which image date are processed by the hardware, is given by the
Expand All @@ -163,13 +160,10 @@ limitations.</para>
bounding rectangle.</para>

<para>The part of a video signal or graphics display where the image is
inserted by the hardware is controlled by <constant> V4L2_SEL_TGT_COMPOSE_ACTIVE
</constant> target. The rectangle's coordinates are expressed in driver
dependant units. The only exception are digital outputs where the units are
pixels. For other types of devices, the coordinate system guarantees that if
sizes of the active cropping and the active composing rectangles are equal then
no scaling is performed. The composing rectangle must lie completely inside
the bounds rectangle. The driver must adjust the area to fit to the bounding
inserted by the hardware is controlled by <constant>
V4L2_SEL_TGT_COMPOSE_ACTIVE </constant> target. The rectangle's coordinates
are expressed in pixels. The composing rectangle must lie completely inside the
bounds rectangle. The driver must adjust the area to fit to the bounding
limits. Moreover, the driver can perform other adjustments according to
hardware limitations. </para>

Expand Down

0 comments on commit 775b13f

Please sign in to comment.