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 .. flat-table:: Selection target definitions
30 - Valid for V4L2 subdev
34 - ``V4L2_SEL_TGT_CROP``
38 - Crop rectangle. Defines the cropped area.
46 - ``V4L2_SEL_TGT_CROP_DEFAULT``
50 - Suggested cropping rectangle that covers the "whole picture".
58 - ``V4L2_SEL_TGT_CROP_BOUNDS``
62 - Bounds of the crop rectangle. All valid crop rectangles fit inside
63 the crop bounds rectangle.
71 - ``V4L2_SEL_TGT_NATIVE_SIZE``
75 - The native size of the device, e.g. a sensor's pixel array.
76 ``left`` and ``top`` fields are zero for this target. Setting the
77 native size will generally only make sense for memory to memory
78 devices where the software can create a canvas of a given size in
79 which for example a video frame can be composed. In that case
80 V4L2_SEL_TGT_NATIVE_SIZE can be used to configure the size of
89 - ``V4L2_SEL_TGT_COMPOSE``
93 - Compose rectangle. Used to configure scaling and composition.
101 - ``V4L2_SEL_TGT_COMPOSE_DEFAULT``
105 - Suggested composition rectangle that covers the "whole picture".
113 - ``V4L2_SEL_TGT_COMPOSE_BOUNDS``
117 - Bounds of the compose rectangle. All valid compose rectangles fit
118 inside the compose bounds rectangle.
126 - ``V4L2_SEL_TGT_COMPOSE_PADDED``
130 - The active area and all padding pixels that are inserted or
131 modified by hardware.