author | Lawrence Mok <lawrence.mok@amlogic.com> | 2012-11-17 01:19:34 (GMT) |
---|---|---|
committer | Lawrence Mok <lawrence.mok@amlogic.com> | 2012-11-17 01:19:34 (GMT) |
commit | e50e05e9022a2711043f4b126908b194813e9d70 (patch) | |
tree | a66d3bf8adfbc38498ead612f89967b200e201b7 | |
parent | 1674cdd989559f780b4ba9b779e3bb2e94f9d39a (diff) | |
download | camera-e50e05e9022a2711043f4b126908b194813e9d70.zip camera-e50e05e9022a2711043f4b126908b194813e9d70.tar.gz camera-e50e05e9022a2711043f4b126908b194813e9d70.tar.bz2 |
temporarily limit exposure range from -3 to 3 for 4.2
4.2 Camera app only has icons for -3 to 3. -4 to 4 crashes Camera
-rwxr-xr-x | V4LCameraAdapter/V4LCameraAdapter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/V4LCameraAdapter/V4LCameraAdapter.cpp b/V4LCameraAdapter/V4LCameraAdapter.cpp index ae820f5..bc38191 100755 --- a/V4LCameraAdapter/V4LCameraAdapter.cpp +++ b/V4LCameraAdapter/V4LCameraAdapter.cpp @@ -2897,8 +2897,8 @@ extern "C" void loadCaps(int camera_id, CameraProperties::Properties* params) { int min=0, max =0, def=0, step =0; getCameraExposureValue( camera_fd, min, max, step, def); - params->set(CameraProperties::SUPPORTED_EV_MAX, max); - params->set(CameraProperties::SUPPORTED_EV_MIN, min); + params->set(CameraProperties::SUPPORTED_EV_MAX, max > 3 ? 3 : max); + params->set(CameraProperties::SUPPORTED_EV_MIN, min < -3 ? -3 : min); params->set(CameraProperties::EV_COMPENSATION, def); params->set(CameraProperties::SUPPORTED_EV_STEP, step); |