diff options
-rw-r--r-- | Documentation/DocBook/media/v4l/selections-common.xml | 16 | ||||
-rw-r--r-- | include/uapi/linux/v4l2-common.h | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/DocBook/media/v4l/selections-common.xml b/Documentation/DocBook/media/v4l/selections-common.xml index 7502f784b8cc..d6d56fb6f9c0 100644 --- a/Documentation/DocBook/media/v4l/selections-common.xml +++ b/Documentation/DocBook/media/v4l/selections-common.xml | |||
@@ -63,6 +63,22 @@ | |||
63 | <entry>Yes</entry> | 63 | <entry>Yes</entry> |
64 | </row> | 64 | </row> |
65 | <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> | ||
81 | <row> | ||
66 | <entry><constant>V4L2_SEL_TGT_COMPOSE</constant></entry> | 82 | <entry><constant>V4L2_SEL_TGT_COMPOSE</constant></entry> |
67 | <entry>0x0100</entry> | 83 | <entry>0x0100</entry> |
68 | <entry>Compose rectangle. Used to configure scaling | 84 | <entry>Compose rectangle. Used to configure scaling |
diff --git a/include/uapi/linux/v4l2-common.h b/include/uapi/linux/v4l2-common.h index 2f6f8cafe773..15273987093e 100644 --- a/include/uapi/linux/v4l2-common.h +++ b/include/uapi/linux/v4l2-common.h | |||
@@ -43,6 +43,8 @@ | |||
43 | #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 | 43 | #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 |
44 | /* Cropping bounds */ | 44 | /* Cropping bounds */ |
45 | #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 | 45 | #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 |
46 | /* Native frame size */ | ||
47 | #define V4L2_SEL_TGT_NATIVE_SIZE 0x0003 | ||
46 | /* Current composing area */ | 48 | /* Current composing area */ |
47 | #define V4L2_SEL_TGT_COMPOSE 0x0100 | 49 | #define V4L2_SEL_TGT_COMPOSE 0x0100 |
48 | /* Default composing area */ | 50 | /* Default composing area */ |