18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci************
48c2ecf20Sopenharmony_ciIntroduction
58c2ecf20Sopenharmony_ci************
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciSome video capture devices can sample a subsection of a picture and
88c2ecf20Sopenharmony_cishrink or enlarge it to an image of arbitrary size. Next, the devices
98c2ecf20Sopenharmony_cican insert the image into larger one. Some video output devices can crop
108c2ecf20Sopenharmony_cipart of an input image, scale it up or down and insert it at an
118c2ecf20Sopenharmony_ciarbitrary scan line and horizontal offset into a video signal. We call
128c2ecf20Sopenharmony_cithese abilities cropping, scaling and composing.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciOn a video *capture* device the source is a video signal, and the
158c2ecf20Sopenharmony_cicropping target determine the area actually sampled. The sink is an
168c2ecf20Sopenharmony_ciimage stored in a memory buffer. The composing area specifies which part
178c2ecf20Sopenharmony_ciof the buffer is actually written to by the hardware.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciOn a video *output* device the source is an image in a memory buffer,
208c2ecf20Sopenharmony_ciand the cropping target is a part of an image to be shown on a display.
218c2ecf20Sopenharmony_ciThe sink is the display or the graphics screen. The application may
228c2ecf20Sopenharmony_ciselect the part of display where the image should be displayed. The size
238c2ecf20Sopenharmony_ciand position of such a window is controlled by the compose target.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciRectangles for all cropping and composing targets are defined even if
268c2ecf20Sopenharmony_cithe device does supports neither cropping nor composing. Their size and
278c2ecf20Sopenharmony_ciposition will be fixed in such a case. If the device does not support
288c2ecf20Sopenharmony_ciscaling then the cropping and composing rectangles have the same size.
29