|
|
|
@ -623,8 +623,7 @@ public class Camera1Engine extends CameraBaseEngine implements |
|
|
|
|
public void setZoom(final float zoom, @Nullable final PointF[] points, final boolean notify) { |
|
|
|
|
final float old = mZoomValue; |
|
|
|
|
mZoomValue = zoom; |
|
|
|
|
// Zoom requests can be high frequency (e.g. linked to touch events), so
|
|
|
|
|
// we remove the task before scheduling to avoid stack overflows in orchestrator.
|
|
|
|
|
// Zoom requests can be high frequency (e.g. linked to touch events), let's trim the oldest.
|
|
|
|
|
getOrchestrator().trim("zoom", ALLOWED_ZOOM_OPS); |
|
|
|
|
mZoomTask = getOrchestrator().scheduleStateful("zoom", |
|
|
|
|
CameraState.ENGINE, |
|
|
|
@ -658,8 +657,7 @@ public class Camera1Engine extends CameraBaseEngine implements |
|
|
|
|
@Nullable final PointF[] points, final boolean notify) { |
|
|
|
|
final float old = mExposureCorrectionValue; |
|
|
|
|
mExposureCorrectionValue = EVvalue; |
|
|
|
|
// EV requests can be high frequency (e.g. linked to touch events), so
|
|
|
|
|
// we remove the task before scheduling to avoid stack overflows in orchestrator.
|
|
|
|
|
// EV requests can be high frequency (e.g. linked to touch events), let's trim the oldest.
|
|
|
|
|
getOrchestrator().trim("exposure correction", ALLOWED_EV_OPS); |
|
|
|
|
mExposureCorrectionTask = getOrchestrator().scheduleStateful( |
|
|
|
|
"exposure correction", |
|
|
|
|