summaryrefslogtreecommitdiff
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorjinwu <jinwu@codeaurora.org>2018-12-07 17:52:37 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-12-14 00:21:42 -0800
commit2aef5ed1f97204d82b8d231e4fff3b45d64d3d1b (patch)
treea4471d605f468035f969f88015460b7b49656b5c /src/com/android/camera/CaptureModule.java
parent07d7d91f8e6afca1cda50c6f0d63120518a26a57 (diff)
Fix reconfig stream in liveshot of HFR/HSR
Set fps range in liveshot request to avoid reconfig. Change-Id: I54fbe95632575c556ed5caa2c57975e6b9c95a52
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 13e5ee8af..09f5bca50 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -2497,6 +2497,10 @@ public class CaptureModule implements CameraModule, PhotoController,
captureBuilder.set(CaptureRequest.JPEG_THUMBNAIL_QUALITY, (byte)80);
applyVideoSnapshot(captureBuilder, id);
applyZoom(captureBuilder, id);
+ if (mHighSpeedCapture) {
+ captureBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE,
+ mHighSpeedFPSRange);
+ }
if (mSettingsManager.getSavePictureFormat() == SettingsManager.HEIF_FORMAT) {
long captureTime = System.currentTimeMillis();