diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-06-03 16:34:18 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-06-03 16:34:18 +0800 |
commit | f7f6333831e7b991d92abeddfbd46c2884afa405 (patch) | |
tree | bbe6fb84932164301709ddde62af18ad95ad405e /libs | |
parent | 00e21f8eb57a7ae2c19516aa0290ab4fb5f251c2 (diff) | |
download | frameworks_base-f7f6333831e7b991d92abeddfbd46c2884afa405.zip frameworks_base-f7f6333831e7b991d92abeddfbd46c2884afa405.tar.gz frameworks_base-f7f6333831e7b991d92abeddfbd46c2884afa405.tar.bz2 |
Add camera metering mode API.
bug:2737111
Change-Id: Ie986fee56ebeaaed2d2efb757701dfe3ffdec8d8
Diffstat (limited to 'libs')
-rw-r--r-- | libs/camera/CameraParameters.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/camera/CameraParameters.cpp b/libs/camera/CameraParameters.cpp index e4d5bb3..c11d18f 100644 --- a/libs/camera/CameraParameters.cpp +++ b/libs/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() { |