Lines Matching +full:2 +full:- +full:pixel +full:- +full:align
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,
13 with the exception of pixel aspect ratio detection, which is
15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a
62 .. _crop-scale:
64 .. kernel-figure:: crop.svg
66 :align: center
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
98 shall align with the center of the active picture area of the video
132 or 2:1 in either direction and the target image size must be a multiple
139 is 608 × 224 (224 × 2:1 would exceed the limit 400). The offset 0, 0 is
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
213 if (-1 == ioctl (fd, VIDIOC_S_FMT, &format)) {
226 .. code-block:: c
234 if (-1 == ioctl (fd, VIDIOC_CROPCAP;, &cropcap)) {
247 crop.c.width /= 2;
248 crop.c.height /= 2;
249 crop.c.left += crop.c.width / 2;
250 crop.c.top += crop.c.height / 2;
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)) {
312 /* Devices following ITU-R BT.601 do not capture