diff options
| author | jiaoyuan <jiaoyuan@codeaurora.org> | 2019-11-26 09:18:12 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-11-25 17:23:19 -0800 |
| commit | ecba38599de1b32efba0913d0e62cf99b04018b2 (patch) | |
| tree | 2b6f8446ef3f34f46ddf85bd02906316902a8bfa /src/com/android/camera/CaptureModule.java | |
| parent | 2fbefd7e54350af31102e8f9cd359fa3e9654782 (diff) | |
SnapdragonCamera: fix MaxBurstShotFPS tag error
1.capture is too large for binder
2.capture is not coming consecutively
Change-Id: Iaeca2c20b9972ec6314c479a798e89041babf3d1
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
| -rwxr-xr-x | src/com/android/camera/CaptureModule.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 012f6a094..554547cf0 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2986,10 +2986,13 @@ public class CaptureModule implements CameraModule, PhotoController, } } - - mLongshoting = false; - mNumFramesArrived.getAndSet(0); - unlockFocus(getMainCameraId()); + if (mNumFramesArrived.get() < mShotNum && mLongshotActive) { + captureStillPicture(CURRENT_ID); + }else { + mLongshoting = false; + mNumFramesArrived.getAndSet(0); + unlockFocus(getMainCameraId()); + } } }; @@ -3002,7 +3005,8 @@ public class CaptureModule implements CameraModule, PhotoController, burstShotFpsNums = (int)(30/mSettingsManager.getmaxBurstShotFPS()) - 1; } burstShotFpsNums = PersistUtil.isBurstShotFpsNums() > 0 ? PersistUtil.isBurstShotFpsNums() : burstShotFpsNums; - for (int i = 0; i < PersistUtil.getLongshotShotLimit(); i++) { + int totalNums = PersistUtil.getLongshotShotLimit()/(burstShotFpsNums + 1); + for (int i = 0; i < totalNums; i++) { for (int j = 0; j < burstShotFpsNums; j++) { mPreviewRequestBuilder[id].setTag("preview"); burstList.add(mPreviewRequestBuilder[id].build()); |
