diff options
author | qimengp <qimengp@codeaurora.org> | 2017-03-01 19:09:27 +0800 |
---|---|---|
committer | qimengp <qimengp@codeaurora.org> | 2017-03-01 19:10:20 +0800 |
commit | 5cdbe4e8e3a5f9abafd23d0bbdf25d199d128000 (patch) | |
tree | fb52f710c122e86cc441b959ee6b30f625933cbd /src/com | |
parent | 727fdda2c1d3db4cc107825f8e6ab114f60b7064 (diff) | |
download | android_packages_apps_Snap-5cdbe4e8e3a5f9abafd23d0bbdf25d199d128000.tar.gz android_packages_apps_Snap-5cdbe4e8e3a5f9abafd23d0bbdf25d199d128000.tar.bz2 android_packages_apps_Snap-5cdbe4e8e3a5f9abafd23d0bbdf25d199d128000.zip |
SnapdragonCamera: Modify ISO vender tag
When apply ISO priority, remove SENSOR_EXPOSURE_TIME
and SENSOR_SENSITIVITY parameters
Change-Id: I39ee156f2b75ef4e9aeda23196229507f1c6cc7b
CRs-Fixed: 2012117
Diffstat (limited to 'src/com')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index e4c162a5b..7b959beb2 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -376,6 +376,8 @@ public class CaptureModule implements CameraModule, PhotoController, private Size mSupportedMaxPictureSize; private Size mSupportedRawPictureSize; + private long mIsoExposureTime; + private int mIsoSensitivity; private class SelfieThread extends Thread { public void run() { @@ -4043,10 +4045,24 @@ public class CaptureModule implements CameraModule, PhotoController, if (value.equals("auto")) { request.set(SELECT_PRIORITY, 0); request.set(ISO_EXP, 0L); + if (request.get(CaptureRequest.SENSOR_EXPOSURE_TIME) == null) { + request.set(CaptureRequest.SENSOR_EXPOSURE_TIME, mIsoExposureTime); + } + if (request.get(CaptureRequest.SENSOR_SENSITIVITY) == null) { + request.set(CaptureRequest.SENSOR_SENSITIVITY, mIsoSensitivity); + } } else { long intValue = SettingsManager.KEY_ISO_INDEX.get(value); request.set(SELECT_PRIORITY, 0); request.set(ISO_EXP, intValue); + if (request.get(CaptureRequest.SENSOR_EXPOSURE_TIME) != null) { + mIsoExposureTime = request.get(CaptureRequest.SENSOR_EXPOSURE_TIME); + } + if (request.get(CaptureRequest.SENSOR_SENSITIVITY) != null) { + mIsoSensitivity = request.get(CaptureRequest.SENSOR_SENSITIVITY); + } + request.set(CaptureRequest.SENSOR_EXPOSURE_TIME, null); + request.set(CaptureRequest.SENSOR_SENSITIVITY, null); } } |