diff options
author | jinwu <jinwu@codeaurora.org> | 2019-01-29 14:54:19 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-02-12 19:02:23 -0800 |
commit | 47ac47fdb016a1c450940e4517c56f1bfa542b6c (patch) | |
tree | d198c62dd343708245db76534b818515f9f104a0 | |
parent | 75a5fb592c725e7be2bae49ed8a72081c9f4f5b6 (diff) | |
download | android_packages_apps_Snap-47ac47fdb016a1c450940e4517c56f1bfa542b6c.tar.gz android_packages_apps_Snap-47ac47fdb016a1c450940e4517c56f1bfa542b6c.tar.bz2 android_packages_apps_Snap-47ac47fdb016a1c450940e4517c56f1bfa542b6c.zip |
Increase burst requests
Make it 40 requests one time in burst, so fps will be more closer
to the setting number.
Change-Id: Icd05be3aea916a9163328f893a9a7510b3823f0e
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 7c7d0159d..879e8a5a2 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2244,7 +2244,7 @@ public class CaptureModule implements CameraModule, PhotoController, String value = mSettingsManager.getValue(SettingsManager.KEY_JPEG_QUALITY); int quality = getQualityNumber(value); int orientation = CameraUtil.getJpegRotation(id,mOrientation); - int imageCount = mLongshotActive? MAX_IMAGEREADERS*2 : 1; + int imageCount = mLongshotActive? MAX_IMAGEREADERS*4 : 1; HeifWriter writer = createHEIFEncoder(path,mPictureSize.getWidth(),mPictureSize.getHeight(), orientation,imageCount,quality); if (writer != null) { @@ -2427,7 +2427,7 @@ public class CaptureModule implements CameraModule, PhotoController, private void captureStillPictureForLongshot(CaptureRequest.Builder captureBuilder, int id) throws CameraAccessException{ List<CaptureRequest> burstList = new ArrayList<>(); boolean isBurstShotFpsEnable = PersistUtil.isBurstShotFpsEnabled(); - for (int i = 0; i < MAX_IMAGEREADERS*2; i++) { + for (int i = 0; i < MAX_IMAGEREADERS*4; i++) { if (isBurstShotFpsEnable) { mPreviewRequestBuilder[id].setTag("preview"); burstList.add(mPreviewRequestBuilder[id].build()); |