From dcab2607c1a4afb2355c1c1a3a137dffc99927c0 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Tue, 27 Nov 2012 01:30:33 +0100 Subject: camera: add iso parameter Enable with BOARD_CAMERA_HAVE_ISO From: jt1134 Date: Mon, 17 Sep 2012 22:05:04 -0500 Subject: [PATCH] camera: add define for ISO settings Change-Id: I8716a260ad552d3684197237c2055dce129e461e --- --- camera/Android.mk | 4 ++++ camera/CameraParameters.cpp | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'camera') diff --git a/camera/Android.mk b/camera/Android.mk index 7286f92..cad2a53 100644 --- a/camera/Android.mk +++ b/camera/Android.mk @@ -18,6 +18,10 @@ LOCAL_SHARED_LIBRARIES := \ libui \ libgui +ifeq ($(BOARD_CAMERA_HAVE_ISO),true) + LOCAL_CFLAGS += -DHAVE_ISO +endif + LOCAL_MODULE:= libcamera_client include $(BUILD_SHARED_LIBRARY) diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp index 90250ea..45b5196 100644 --- a/camera/CameraParameters.cpp +++ b/camera/CameraParameters.cpp @@ -91,6 +91,11 @@ const char CameraParameters::KEY_VIDEO_SNAPSHOT_SUPPORTED[] = "video-snapshot-su const char CameraParameters::KEY_VIDEO_STABILIZATION[] = "video-stabilization"; const char CameraParameters::KEY_VIDEO_STABILIZATION_SUPPORTED[] = "video-stabilization-supported"; +#ifdef HAVE_ISO +const char CameraParameters::KEY_SUPPORTED_ISO_MODES[] = "iso-values"; +const char CameraParameters::KEY_ISO_MODE[] = "iso"; +#endif + #ifdef SAMSUNG_CAMERA_HARDWARE const char CameraParameters::KEY_ANTI_SHAKE_MODE[] = "anti-shake"; const char CameraParameters::KEY_METERING[] = "metering"; -- cgit v1.1