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
62 <entry>Yes</entry>62 <entry>Yes</entry>
63 <entry>Yes</entry>63 <entry>Yes</entry>
64 </row>64 </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>
65 <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>
include/uapi/linux/v4l2-common.h+2−0
@@ -43,6 +43,8 @@ · 42 unmodified lines
43#define V4L2_SEL_TGT_CROP_DEFAULT 0x000143#define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
44/* Cropping bounds */44/* Cropping bounds */
45#define V4L2_SEL_TGT_CROP_BOUNDS 0x000245#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 0x010049#define V4L2_SEL_TGT_COMPOSE 0x0100
48/* Default composing area */50/* Default composing area */