diff options
author | Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | 2012-05-20 10:17:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-06 19:13:30 -0400 |
commit | c133482300113b3b71fa4a1fd2118531e765b36a (patch) | |
tree | 795edef9f10d5016c64edf1e7959669b26d7bf51 /include/linux/videodev2.h | |
parent | 936148a71e5e55a301b274e98b0ad8b246a6f11b (diff) |
[media] V4L: Remove "_ACTIVE" from the selection target name definitions
This patch drops the _ACTIVE part from the selection target names
as a prerequisite to unify the selection target names across the subdev
and regular video node API.
The meaning of V4L2_SEL_TGT_*_ACTIVE and V4L2_SUBDEV_SEL_TGT_*_ACTUAL
selection targets is logically the same. Different names add to confusion
where both APIs are used in a single driver or an application. For some
system configurations different names may lead to interoperability issues.
For backwards compatibility V4L2_SEL_TGT_CROP_ACTIVE and
V4L2_SEL_TGT_COMPOSE_ACTIVE are defined as aliases to V4L2_SEL_TGT_CROP
and V4L2_SEL_TGT_COMPOSE. These aliases will be removed after deprecation
period, according to Documentation/feature-removal-schedule.txt.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r-- | include/linux/videodev2.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index a61edb353273..ac1ad33ba3e0 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -767,13 +767,13 @@ struct v4l2_crop { | |||
767 | /* Selection targets */ | 767 | /* Selection targets */ |
768 | 768 | ||
769 | /* Current cropping area */ | 769 | /* Current cropping area */ |
770 | #define V4L2_SEL_TGT_CROP_ACTIVE 0x0000 | 770 | #define V4L2_SEL_TGT_CROP 0x0000 |
771 | /* Default cropping area */ | 771 | /* Default cropping area */ |
772 | #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 | 772 | #define V4L2_SEL_TGT_CROP_DEFAULT 0x0001 |
773 | /* Cropping bounds */ | 773 | /* Cropping bounds */ |
774 | #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 | 774 | #define V4L2_SEL_TGT_CROP_BOUNDS 0x0002 |
775 | /* Current composing area */ | 775 | /* Current composing area */ |
776 | #define V4L2_SEL_TGT_COMPOSE_ACTIVE 0x0100 | 776 | #define V4L2_SEL_TGT_COMPOSE 0x0100 |
777 | /* Default composing area */ | 777 | /* Default composing area */ |
778 | #define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101 | 778 | #define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101 |
779 | /* Composing bounds */ | 779 | /* Composing bounds */ |
@@ -781,6 +781,10 @@ struct v4l2_crop { | |||
781 | /* Current composing area plus all padding pixels */ | 781 | /* Current composing area plus all padding pixels */ |
782 | #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103 | 782 | #define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103 |
783 | 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 | |||
784 | /** | 788 | /** |
785 | * struct v4l2_selection - selection info | 789 | * struct v4l2_selection - selection info |
786 | * @type: buffer type (do not use *_MPLANE types) | 790 | * @type: buffer type (do not use *_MPLANE types) |