summaryrefslogtreecommitdiffstats
path: root/libs/camera
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-05-13 19:31:02 +0800
committerWu-cheng Li <wuchengli@google.com>2010-05-15 12:40:54 +0800
commite339c5edbebedf446581f18ad70214007309bf4b (patch)
tree7d03e881cb3e1300aef948eafb85396a58d38e1c /libs/camera
parentaef87aa90cf3a6cf9098477683b07994697c45fe (diff)
downloadframeworks_base-e339c5edbebedf446581f18ad70214007309bf4b.zip
frameworks_base-e339c5edbebedf446581f18ad70214007309bf4b.tar.gz
frameworks_base-e339c5edbebedf446581f18ad70214007309bf4b.tar.bz2
Add camera focus distances API.
Applications can use this API to estimate the distance between the subject and the camera. bug:1955650 Change-Id: Ie6c8ea4971759cab6c9bcdda2c5ceb5925791c27
Diffstat (limited to 'libs/camera')
-rw-r--r--libs/camera/CameraParameters.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/camera/CameraParameters.cpp b/libs/camera/CameraParameters.cpp
index cfb7ba1..035fa9f 100644
--- a/libs/camera/CameraParameters.cpp
+++ b/libs/camera/CameraParameters.cpp
@@ -69,8 +69,10 @@ const char CameraParameters::KEY_MAX_ZOOM[] = "max-zoom";
const char CameraParameters::KEY_ZOOM_RATIOS[] = "zoom-ratios";
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::TRUE[] = "true";
+const char CameraParameters::INFINITY[] = "Infinity";
// Values for white balance settings.
const char CameraParameters::WHITE_BALANCE_AUTO[] = "auto";