diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2019-03-08 00:50:33 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-03-08 00:50:33 -0800 |
commit | 6333e95ea7489fbf7653c1b922f2fce535538cb3 (patch) | |
tree | a63e2f49205526302d6e72712fdd517ecfc11571 /src/com/android/camera | |
parent | 43b7aa9dfe96b7f810e9b3c851ee1253361f4706 (diff) | |
parent | 47ac47fdb016a1c450940e4517c56f1bfa542b6c (diff) | |
download | android_packages_apps_Snap-6333e95ea7489fbf7653c1b922f2fce535538cb3.tar.gz android_packages_apps_Snap-6333e95ea7489fbf7653c1b922f2fce535538cb3.tar.bz2 android_packages_apps_Snap-6333e95ea7489fbf7653c1b922f2fce535538cb3.zip |
Merge "Increase burst requests" into camera-SnapdragonCamera.lnx.2.0
Diffstat (limited to 'src/com/android/camera')
-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 a4e7d54a7..213c44ce2 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()); |