summaryrefslogtreecommitdiffstats
path: root/camera/CameraParameters.cpp
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-06-03 16:34:18 +0800
committerWu-cheng Li <wuchengli@google.com>2010-06-03 16:34:18 +0800
commit2b8aba228e6ebd45fe29714baa477f3ea2320095 (patch)
tree526afba8fc95868ce67ff91554a81b1ad8a7d6ae /camera/CameraParameters.cpp
parentba0fab325cd8379378a2c8ad14dd1c44bf2760f3 (diff)
downloadframeworks_av-2b8aba228e6ebd45fe29714baa477f3ea2320095.zip
frameworks_av-2b8aba228e6ebd45fe29714baa477f3ea2320095.tar.gz
frameworks_av-2b8aba228e6ebd45fe29714baa477f3ea2320095.tar.bz2
Add camera metering mode API.
bug:2737111 Change-Id: Ie986fee56ebeaaed2d2efb757701dfe3ffdec8d8
Diffstat (limited to 'camera/CameraParameters.cpp')
-rw-r--r--camera/CameraParameters.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp
index e4d5bb3..c11d18f 100644
--- a/camera/CameraParameters.cpp
+++ b/camera/CameraParameters.cpp
@@ -71,6 +71,7 @@ const char CameraParameters::KEY_ZOOM_SUPPORTED[] = "zoom-supported";
const char CameraParameters::KEY_SMOOTH_ZOOM_SUPPORTED[] = "smooth-zoom-supported";
const char CameraParameters::KEY_FOCUS_DISTANCES[] = "focus-distances";
const char CameraParameters::KEY_VIDEO_FRAME_FORMAT[] = "video-frame-format";
+const char CameraParameters::KEY_METERING_MODE[] = "metering-mode";
const char CameraParameters::TRUE[] = "true";
const char CameraParameters::FOCUS_DISTANCE_INFINITY[] = "Infinity";
@@ -142,6 +143,11 @@ const char CameraParameters::FOCUS_MODE_FIXED[] = "fixed";
const char CameraParameters::FOCUS_MODE_EDOF[] = "edof";
const char CameraParameters::FOCUS_MODE_CONTINUOUS[] = "continuous";
+// Values for metering mode settings.
+const char METERING_MODE_CENTER_WEIGHTED[] = "center-weighted";
+const char METERING_MODE_FRAME_AVERAGE[] = "frame-average";
+const char METERING_MODE_SPOT[] = "spot";
+
CameraParameters::CameraParameters()
: mMap()
{