xref: /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/selections-common.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun.. _v4l2-selections-common:
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunCommon selection definitions
6*4882a593Smuzhiyun============================
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunWhile the :ref:`V4L2 selection API <selection-api>` and
9*4882a593Smuzhiyun:ref:`V4L2 subdev selection APIs <v4l2-subdev-selections>` are very
10*4882a593Smuzhiyunsimilar, there's one fundamental difference between the two. On
11*4882a593Smuzhiyunsub-device API, the selection rectangle refers to the media bus format,
12*4882a593Smuzhiyunand is bound to a sub-device's pad. On the V4L2 interface the selection
13*4882a593Smuzhiyunrectangles refer to the in-memory pixel format.
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunThis section defines the common definitions of the selection interfaces
16*4882a593Smuzhiyunon the two APIs.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun.. toctree::
20*4882a593Smuzhiyun    :maxdepth: 1
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun    v4l2-selection-targets
23*4882a593Smuzhiyun    v4l2-selection-flags
24