History

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

Sakari Ailus committed 12 years ago

Commit 0b4bc761 parent 6936d742 files · +18 −0Browse files

Unified · Split

2 files
  1. Documentation/DocBook/media/v4l/selections-common.xml +16 −0
  2. include/uapi/linux/v4l2-common.h +2 −0
Documentation/DocBook/media/v4l/selections-common.xml+16−0
@@ -62,6 +62,22 @@ · 61 unmodified lines
6262 <entry>Yes</entry>
6363 <entry>Yes</entry>
6464 </row>
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>
6581 <row>
6682 <entry><constant>V4L2_SEL_TGT_COMPOSE</constant></entry>
6783 <entry>0x0100</entry>
include/uapi/linux/v4l2-common.h+2−0
@@ -43,6 +43,8 @@ · 42 unmodified lines
4343 #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
4444 /* Cropping bounds */
4545 #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002
46+/* Native frame size */
47+#define V4L2_SEL_TGT_NATIVE_SIZE 0x0003
4648 /* Current composing area */
4749 #define V4L2_SEL_TGT_COMPOSE 0x0100
4850 /* Default composing area */