mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 19:16:13 +07:00
[media] v4l: Add V4L2_SEL_TGT_NATIVE_SIZE selection target
The V4L2_SEL_TGT_NATIVE_SIZE target is used to denote e.g. the size of a sensor's pixel array. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
6936d74fb5
commit
0b4bc768dc
@ -62,6 +62,22 @@
|
|||||||
<entry>Yes</entry>
|
<entry>Yes</entry>
|
||||||
<entry>Yes</entry>
|
<entry>Yes</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><constant>V4L2_SEL_TGT_NATIVE_SIZE</constant></entry>
|
||||||
|
<entry>0x0003</entry>
|
||||||
|
<entry>The native size of the device, e.g. a sensor's
|
||||||
|
pixel array. <structfield>left</structfield> and
|
||||||
|
<structfield>top</structfield> fields are zero for this
|
||||||
|
target. Setting the native size will generally only make
|
||||||
|
sense for memory to memory devices where the software can
|
||||||
|
create a canvas of a given size in which for example a
|
||||||
|
video frame can be composed. In that case
|
||||||
|
V4L2_SEL_TGT_NATIVE_SIZE can be used to configure the size
|
||||||
|
of that canvas.
|
||||||
|
</entry>
|
||||||
|
<entry>Yes</entry>
|
||||||
|
<entry>Yes</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><constant>V4L2_SEL_TGT_COMPOSE</constant></entry>
|
<entry><constant>V4L2_SEL_TGT_COMPOSE</constant></entry>
|
||||||
<entry>0x0100</entry>
|
<entry>0x0100</entry>
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
#define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
|
#define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
|
||||||
/* Cropping bounds */
|
/* Cropping bounds */
|
||||||
#define V4L2_SEL_TGT_CROP_BOUNDS 0x0002
|
#define V4L2_SEL_TGT_CROP_BOUNDS 0x0002
|
||||||
|
/* Native frame size */
|
||||||
|
#define V4L2_SEL_TGT_NATIVE_SIZE 0x0003
|
||||||
/* Current composing area */
|
/* Current composing area */
|
||||||
#define V4L2_SEL_TGT_COMPOSE 0x0100
|
#define V4L2_SEL_TGT_COMPOSE 0x0100
|
||||||
/* Default composing area */
|
/* Default composing area */
|
||||||
|
Loading…
Reference in New Issue
Block a user