diff options
author | xianming wang <mingwax@codeaurora.org> | 2018-12-10 15:32:58 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-12-14 00:24:04 -0800 |
commit | ea20f809cf13eec7c9535e8571f0c2b5d61a1be1 (patch) | |
tree | d6abef7043846d07a6ac552a176c0cb2c2467c4b /src/com/android/camera/CaptureModule.java | |
parent | 07d7d91f8e6afca1cda50c6f0d63120518a26a57 (diff) | |
download | android_packages_apps_Snap-ea20f809cf13eec7c9535e8571f0c2b5d61a1be1.tar.gz android_packages_apps_Snap-ea20f809cf13eec7c9535e8571f0c2b5d61a1be1.tar.bz2 android_packages_apps_Snap-ea20f809cf13eec7c9535e8571f0c2b5d61a1be1.zip |
SnapdragonCamera: Set burst shotFps controlled by setprop
Set burst shotFps controlled by setprop. The prop is
"persist.sys.camera.burst.shot.fps", the default value is false.
CRs-Fixed: 2363720
Change-Id: Ia24e6da153728ac94e9472aec407b288d4f70b7c
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 13e5ee8af..63891cecd 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2409,8 +2409,11 @@ 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++) { - burstList.add(mPreviewRequestBuilder[id].build()); + if (isBurstShotFpsEnable) { + burstList.add(mPreviewRequestBuilder[id].build()); + } burstList.add(captureBuilder.build()); } mCaptureSession[id].captureBurst(burstList, mLongshotCallBack, mCaptureCallbackHandler); @@ -4235,7 +4238,7 @@ public class CaptureModule implements CameraModule, PhotoController, mVideoSnapshotSize = getMaxPictureSizeLiveshot(); } - String videoSnapshot = getVideoSnapshotSize(); + String videoSnapshot = PersistUtil.getVideoSnapshotSize(); String[] sourceStrArray = videoSnapshot.split("x"); if (sourceStrArray != null && sourceStrArray.length >= 2) { int width = Integer.parseInt(sourceStrArray[0]); @@ -4277,10 +4280,6 @@ public class CaptureModule implements CameraModule, PhotoController, return optimalSize; } - private String getVideoSnapshotSize(){ - return SystemProperties.get("persist.sys.camera.video.snapshotsize", ""); - } - private boolean isVideoSize1080P(Size size) { return (size.getHeight() == 1080 && size.getWidth() == 1920); } |