summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxianming wang <mingwax@codeaurora.org>2018-09-20 14:50:05 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-09-25 23:36:16 -0700
commit83b30719ed1614ddf5ebd90c4141eb075fd6b15b (patch)
treeb4847ea7f8b64bda575d24f87bda828f6a1c7f89
parentdb0f3d968ba24e7aab4af9b1c35801cc71a4ea3c (diff)
downloadandroid_packages_apps_Snap-83b30719ed1614ddf5ebd90c4141eb075fd6b15b.tar.gz
android_packages_apps_Snap-83b30719ed1614ddf5ebd90c4141eb075fd6b15b.tar.bz2
android_packages_apps_Snap-83b30719ed1614ddf5ebd90c4141eb075fd6b15b.zip
SnapdragonCamera: Sunset and Landscape use APP-ZSL capture
Sunset and Landscape mode use APP-ZSL capture. CRs-Fixed: 2319147 Change-Id: Ia09bc465b0221bfec330233aa525e92a93b941cb
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 3480c762a..edbaa90f0 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -2215,7 +2215,11 @@ public class CaptureModule implements CameraModule, PhotoController,
}
if(mChosenImageFormat == ImageFormat.YUV_420_888 || mChosenImageFormat == ImageFormat.PRIVATE) { // Case of ZSL, FrameFilter, SelfieMirror
mPostProcessor.onStartCapturing();
- mCaptureSession[id].capture(captureBuilder.build(), mPostProcessor.getCaptureCallback(), mCaptureCallbackHandler);
+ if (mPostProcessor.isZSLEnabled()) {
+ takeZSLPicture(id);
+ } else {
+ mCaptureSession[id].capture(captureBuilder.build(), mPostProcessor.getCaptureCallback(), mCaptureCallbackHandler);
+ }
} else {
mCaptureSession[id].capture(captureBuilder.build(), new CameraCaptureSession.CaptureCallback() {