diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-06-04 14:18:32 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-06-04 17:18:17 +0800 |
commit | d38bee5858f5387afc28dcb97139b760ac8a1c63 (patch) | |
tree | b090f27b94303923007f1cdd4b075be16cbba904 | |
parent | cd3514492c2d49aeb88eedae40b54dcdd3fcbd9a (diff) | |
download | frameworks_av-d38bee5858f5387afc28dcb97139b760ac8a1c63.zip frameworks_av-d38bee5858f5387afc28dcb97139b760ac8a1c63.tar.gz frameworks_av-d38bee5858f5387afc28dcb97139b760ac8a1c63.tar.bz2 |
Add KEY_SUPPORTED_METERING_MODES and fix some typos.
bug:2737111
Change-Id: I108ae7057786921bf99385ad66dbc1f02d6a1448
-rw-r--r-- | camera/CameraParameters.cpp | 7 | ||||
-rw-r--r-- | include/camera/CameraParameters.h | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp index c11d18f..1415493 100644 --- a/camera/CameraParameters.cpp +++ b/camera/CameraParameters.cpp @@ -72,6 +72,7 @@ const char CameraParameters::KEY_SMOOTH_ZOOM_SUPPORTED[] = "smooth-zoom-supporte 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::KEY_SUPPORTED_METERING_MODES[] = "metering-mode-values"; const char CameraParameters::TRUE[] = "true"; const char CameraParameters::FOCUS_DISTANCE_INFINITY[] = "Infinity"; @@ -144,9 +145,9 @@ 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"; +const char CameraParameters::METERING_MODE_CENTER_WEIGHTED[] = "center-weighted"; +const char CameraParameters::METERING_MODE_FRAME_AVERAGE[] = "frame-average"; +const char CameraParameters::METERING_MODE_SPOT[] = "spot"; CameraParameters::CameraParameters() : mMap() diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h index 4840b40..e12a694 100644 --- a/include/camera/CameraParameters.h +++ b/include/camera/CameraParameters.h @@ -253,6 +253,9 @@ public: // Metering mode. This affects how camera determines exposure. // Example value: "spot" or METERING_MODE_XXX constants. Read/write. static const char KEY_METERING_MODE[]; + // Supported metering modes. + // Example value: "center-weighted,frame-average,spot". Read only. + static const char KEY_SUPPORTED_METERING_MODES[]; // Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED. static const char TRUE[]; |