Lines Matching +full:down +full:- +full:scaling
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
6 Image Cropping, Insertion and Scaling -- the CROP API
12 <selection-api>`. The new API should be preferred in most cases,
15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a
20 abilities cropping and scaling. Some video output devices can scale an
21 image up or down and insert it at an arbitrary scan line and horizontal
33 Scaling requires a source and a target. On a video capture or overlay
48 support scaling or the :ref:`VIDIOC_G_CROP <VIDIOC_G_CROP>` and
62 .. _crop-scale:
64 .. kernel-figure:: crop.svg
68 Image Cropping, Insertion and Scaling
70 The cropping, insertion and scaling process
81 :ref:`vbi-hsync`). Vertically ITU-R line numbers of the first field
82 (see ITU R-525 line numbering for :ref:`525 lines <vbi-525>` and for
83 :ref:`625 lines <vbi-625>`), multiplied by two if the driver
108 Scaling Adjustments
111 Video hardware can have various cropping, insertion and scaling
112 limitations. It may only scale up or down, support only discrete scaling
113 factors, or have different scaling abilities in horizontal and vertical
114 direction. Also it may not support scaling at all. At the same time the
131 Suppose scaling on a video capture device is restricted to a factor 1:1
136 assuming video will be scaled down from the "full picture" accordingly.
146 rectangle of 608 × 456 pixels. The present scaling factors limit
167 .. code-block:: c
175 if (-1 == ioctl (fd, VIDIOC_CROPCAP, &cropcap)) {
186 if (-1 == ioctl (fd, VIDIOC_S_CROP, &crop)
196 .. code-block:: c
203 /* Scale down to 1/4 size of full picture. */
213 if (-1 == ioctl (fd, VIDIOC_S_FMT, &format)) {
218 /* We could check the actual image size now, the actual scaling factor
226 .. code-block:: c
234 if (-1 == ioctl (fd, VIDIOC_CROPCAP;, &cropcap)) {
254 if (-1 == ioctl (fd, VIDIOC_S_CROP, &crop)
260 Example: Current scaling factor and pixel aspect
265 .. code-block:: c
277 if (-1 == ioctl (fd, VIDIOC_CROPCAP, &cropcap)) {
285 if (-1 == ioctl (fd, VIDIOC_G_CROP, &crop)) {
298 if (-1 == ioctl (fd, VIDIOC_G_FMT, &format)) {
303 /* The scaling applied by the driver. */
312 /* Devices following ITU-R BT.601 do not capture