summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-03-08 00:50:33 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-03-08 00:50:33 -0800
commit6333e95ea7489fbf7653c1b922f2fce535538cb3 (patch)
treea63e2f49205526302d6e72712fdd517ecfc11571
parent43b7aa9dfe96b7f810e9b3c851ee1253361f4706 (diff)
parent47ac47fdb016a1c450940e4517c56f1bfa542b6c (diff)
downloadandroid_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
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java4
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());