diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2012-05-18 08:31:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-06 19:15:48 -0400 |
commit | 5689b28890f4a7c4e12290dbf2c29a9d23047335 (patch) | |
tree | a7df462fdb85c8d59dd1713a184a9d3f39e53e7e /include/linux/videodev2.h | |
parent | 1ec0ed083988ae433305d7f4158fda8c3a1a23b9 (diff) |
[media] v4l: Unify selection targets across V4L2 and V4L2 subdev interfaces
Change the users of V4L2_SUBDEV_SEL_TGT_* targets to use V4L2_SEL_TGT_*
instead. The common definitions are moved to a new header file,
include/linux/v4l2-common.h.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r-- | include/linux/videodev2.h | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index ac1ad33ba3e0..7fdb8710c831 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -64,6 +64,7 @@ | |||
64 | #include <linux/compiler.h> | 64 | #include <linux/compiler.h> |
65 | #include <linux/ioctl.h> | 65 | #include <linux/ioctl.h> |
66 | #include <linux/types.h> | 66 | #include <linux/types.h> |
67 | #include <linux/v4l2-common.h> | ||
67 | 68 | ||
68 | /* | 69 | /* |
69 | * Common stuff for both V4L1 and V4L2 | 70 | * Common stuff for both V4L1 and V4L2 |
@@ -764,31 +765,11 @@ struct v4l2_crop { | |||
764 | #define V4L2_SEL_FLAG_GE 0x00000001 | 765 | #define V4L2_SEL_FLAG_GE 0x00000001 |
765 | #define V4L2_SEL_FLAG_LE 0x00000002 | 766 | #define V4L2_SEL_FLAG_LE 0x00000002 |
766 | 767 | ||
767 | /* Selection targets */ | ||
768 | |||
769 | /* Current cropping area */ | ||
770 | #define V4L2_SEL_TGT_CROP 0x0000 | ||
771 | /* Default cropping area */ | ||
772 | #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 | ||
773 | /* Cropping bounds */ | ||
774 | #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 | ||
775 | /* Current composing area */ | ||
776 | #define V4L2_SEL_TGT_COMPOSE 0x0100 | ||
777 | /* Default composing area */ | ||
778 | #define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101 | ||
779 | /* Composing bounds */ | ||
780 | #define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102 | ||
781 | /* Current composing area plus all padding pixels */ | ||
782 | #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103 | ||
783 | |||
784 | /* Backward compatibility definitions */ | ||
785 | #define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP | ||
786 | #define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE | ||
787 | |||
788 | /** | 768 | /** |
789 | * struct v4l2_selection - selection info | 769 | * struct v4l2_selection - selection info |
790 | * @type: buffer type (do not use *_MPLANE types) | 770 | * @type: buffer type (do not use *_MPLANE types) |
791 | * @target: selection target, used to choose one of possible rectangles | 771 | * @target: Selection target, used to choose one of possible rectangles; |
772 | * defined in v4l2-common.h; V4L2_SEL_TGT_* . | ||
792 | * @flags: constraints flags | 773 | * @flags: constraints flags |
793 | * @r: coordinates of selection window | 774 | * @r: coordinates of selection window |
794 | * @reserved: for future use, rounds structure size to 64 bytes, set to zero | 775 | * @reserved: for future use, rounds structure size to 64 bytes, set to zero |