162306a36Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci************
462306a36Sopenharmony_ciIntroduction
562306a36Sopenharmony_ci************
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciSome video capture devices can sample a subsection of a picture and
862306a36Sopenharmony_cishrink or enlarge it to an image of arbitrary size. Next, the devices
962306a36Sopenharmony_cican insert the image into larger one. Some video output devices can crop
1062306a36Sopenharmony_cipart of an input image, scale it up or down and insert it at an
1162306a36Sopenharmony_ciarbitrary scan line and horizontal offset into a video signal. We call
1262306a36Sopenharmony_cithese abilities cropping, scaling and composing.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciOn a video *capture* device the source is a video signal, and the
1562306a36Sopenharmony_cicropping target determine the area actually sampled. The sink is an
1662306a36Sopenharmony_ciimage stored in a memory buffer. The composing area specifies which part
1762306a36Sopenharmony_ciof the buffer is actually written to by the hardware.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciOn a video *output* device the source is an image in a memory buffer,
2062306a36Sopenharmony_ciand the cropping target is a part of an image to be shown on a display.
2162306a36Sopenharmony_ciThe sink is the display or the graphics screen. The application may
2262306a36Sopenharmony_ciselect the part of display where the image should be displayed. The size
2362306a36Sopenharmony_ciand position of such a window is controlled by the compose target.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciRectangles for all cropping and composing targets are defined even if
2662306a36Sopenharmony_cithe device does supports neither cropping nor composing. Their size and
2762306a36Sopenharmony_ciposition will be fixed in such a case. If the device does not support
2862306a36Sopenharmony_ciscaling then the cropping and composing rectangles have the same size.
29