diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-05-01 16:38:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 13:09:19 -0400 |
commit | 82b3056c5a77b687097bd7f36a598a0b37af24a2 (patch) | |
tree | 4d2804fba3f27be10ba9d4d7231fcf13ed68336a /drivers/media/video | |
parent | 44d44a1acde974dbc91c19815a41d3a895a44daf (diff) |
[media] V4L: Add camera image stabilization control
Add V4L2_CID_IMAGE_STABILIZATION control for the camera image
stabilization feature. This control can be used to enable/disable
image stabilization. It might get converted to a menu control
in future if more options are needed.
Signed-off-by: HeungJun Kim <riverful.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/v4l2-ctrls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c index 0c18c82e0b59..2da8b98ac757 100644 --- a/drivers/media/video/v4l2-ctrls.c +++ b/drivers/media/video/v4l2-ctrls.c | |||
@@ -622,6 +622,7 @@ const char *v4l2_ctrl_get_name(u32 id) | |||
622 | case V4L2_CID_AUTO_EXPOSURE_BIAS: return "Auto Exposure, Bias"; | 622 | case V4L2_CID_AUTO_EXPOSURE_BIAS: return "Auto Exposure, Bias"; |
623 | case V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE: return "White Balance, Auto & Preset"; | 623 | case V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE: return "White Balance, Auto & Preset"; |
624 | case V4L2_CID_WIDE_DYNAMIC_RANGE: return "Wide Dynamic Range"; | 624 | case V4L2_CID_WIDE_DYNAMIC_RANGE: return "Wide Dynamic Range"; |
625 | case V4L2_CID_IMAGE_STABILIZATION: return "Image Stabilization"; | ||
625 | 626 | ||
626 | /* FM Radio Modulator control */ | 627 | /* FM Radio Modulator control */ |
627 | /* Keep the order of the 'case's the same as in videodev2.h! */ | 628 | /* Keep the order of the 'case's the same as in videodev2.h! */ |
@@ -725,6 +726,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, | |||
725 | case V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE: | 726 | case V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE: |
726 | case V4L2_CID_MPEG_VIDEO_MPEG4_QPEL: | 727 | case V4L2_CID_MPEG_VIDEO_MPEG4_QPEL: |
727 | case V4L2_CID_WIDE_DYNAMIC_RANGE: | 728 | case V4L2_CID_WIDE_DYNAMIC_RANGE: |
729 | case V4L2_CID_IMAGE_STABILIZATION: | ||
728 | *type = V4L2_CTRL_TYPE_BOOLEAN; | 730 | *type = V4L2_CTRL_TYPE_BOOLEAN; |
729 | *min = 0; | 731 | *min = 0; |
730 | *max = *step = 1; | 732 | *max = *step = 1; |