Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
0b4bc768 6936d74f

+18
+16
Documentation/DocBook/media/v4l/selections-common.xml
··· 63 63 <entry>Yes</entry> 64 64 </row> 65 65 <row> 66 + <entry><constant>V4L2_SEL_TGT_NATIVE_SIZE</constant></entry> 67 + <entry>0x0003</entry> 68 + <entry>The native size of the device, e.g. a sensor's 69 + pixel array. <structfield>left</structfield> and 70 + <structfield>top</structfield> fields are zero for this 71 + target. Setting the native size will generally only make 72 + sense for memory to memory devices where the software can 73 + create a canvas of a given size in which for example a 74 + video frame can be composed. In that case 75 + V4L2_SEL_TGT_NATIVE_SIZE can be used to configure the size 76 + of that canvas. 77 + </entry> 78 + <entry>Yes</entry> 79 + <entry>Yes</entry> 80 + </row> 81 + <row> 66 82 <entry><constant>V4L2_SEL_TGT_COMPOSE</constant></entry> 67 83 <entry>0x0100</entry> 68 84 <entry>Compose rectangle. Used to configure scaling
+2
include/uapi/linux/v4l2-common.h
··· 43 43 #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 44 44 /* Cropping bounds */ 45 45 #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 46 + /* Native frame size */ 47 + #define V4L2_SEL_TGT_NATIVE_SIZE 0x0003 46 48 /* Current composing area */ 47 49 #define V4L2_SEL_TGT_COMPOSE 0x0100 48 50 /* Default composing area */