summaryrefslogtreecommitdiffstats
path: root/include/camera
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-06-03 22:32:05 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-06-03 22:32:05 -0700
commit5f5df382e5b87f02399f21c916e0ebb6c48c759d (patch)
tree17291c68df4f7836674bf9a0f53753261795a83f /include/camera
parent266b74e8759e76fedec60ec1ffa88cfbd86cc91d (diff)
parentf7f6333831e7b991d92abeddfbd46c2884afa405 (diff)
downloadframeworks_base-5f5df382e5b87f02399f21c916e0ebb6c48c759d.zip
frameworks_base-5f5df382e5b87f02399f21c916e0ebb6c48c759d.tar.gz
frameworks_base-5f5df382e5b87f02399f21c916e0ebb6c48c759d.tar.bz2
Merge "Add camera metering mode API." into kraken
Diffstat (limited to 'include/camera')
-rw-r--r--include/camera/CameraParameters.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h
index 2b7a86eb..4840b40 100644
--- a/include/camera/CameraParameters.h
+++ b/include/camera/CameraParameters.h
@@ -250,6 +250,10 @@ public:
// Example value: "yuv420sp" or PIXEL_FORMAT_XXX constants. Read only.
static const char KEY_VIDEO_FRAME_FORMAT[];
+ // Metering mode. This affects how camera determines exposure.
+ // Example value: "spot" or METERING_MODE_XXX constants. Read/write.
+ static const char KEY_METERING_MODE[];
+
// Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED.
static const char TRUE[];
@@ -347,6 +351,15 @@ public:
// callback will be only called once as soon as the picture is in focus.
static const char FOCUS_MODE_CONTINUOUS[];
+ // The camera determines the exposure by giving more weight to the
+ // central part of the scene.
+ static const char METERING_MODE_CENTER_WEIGHTED[];
+ // The camera determines the exposure by averaging the entire scene,
+ // giving no weighting to any particular area.
+ static const char METERING_MODE_FRAME_AVERAGE[];
+ // The camera determines the exposure by a very small area of the scene,
+ // typically the center.
+ static const char METERING_MODE_SPOT[];
private:
DefaultKeyedVector<String8,String8> mMap;