1 .. -*- coding: utf-8; mode: rst -*-
3 .. _v4l2-selection-targets:
9 The precise meaning of the selection targets may be dependent on which
10 of the two interfaces they are used.
13 .. _v4l2-selection-targets-table:
15 .. tabularcolumns:: |p{5.8cm}|p{1.4cm}|p{6.5cm}|p{1.2cm}|p{1.6cm}|
17 .. flat-table:: Selection target definitions
25 - Valid for V4L2 subdev
26 * - ``V4L2_SEL_TGT_CROP``
28 - Crop rectangle. Defines the cropped area.
31 * - ``V4L2_SEL_TGT_CROP_DEFAULT``
33 - Suggested cropping rectangle that covers the "whole picture".
36 * - ``V4L2_SEL_TGT_CROP_BOUNDS``
38 - Bounds of the crop rectangle. All valid crop rectangles fit inside
39 the crop bounds rectangle.
42 * - ``V4L2_SEL_TGT_NATIVE_SIZE``
44 - The native size of the device, e.g. a sensor's pixel array.
45 ``left`` and ``top`` fields are zero for this target. Setting the
46 native size will generally only make sense for memory to memory
47 devices where the software can create a canvas of a given size in
48 which for example a video frame can be composed. In that case
49 V4L2_SEL_TGT_NATIVE_SIZE can be used to configure the size of
53 * - ``V4L2_SEL_TGT_COMPOSE``
55 - Compose rectangle. Used to configure scaling and composition.
58 * - ``V4L2_SEL_TGT_COMPOSE_DEFAULT``
60 - Suggested composition rectangle that covers the "whole picture".
63 * - ``V4L2_SEL_TGT_COMPOSE_BOUNDS``
65 - Bounds of the compose rectangle. All valid compose rectangles fit
66 inside the compose bounds rectangle.
69 * - ``V4L2_SEL_TGT_COMPOSE_PADDED``
71 - The active area and all padding pixels that are inserted or