|
|
|
@ -623,7 +623,10 @@ 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; |
|
|
|
|
mZoomTask = getOrchestrator().scheduleStateful("zoom (" + 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.
|
|
|
|
|
getOrchestrator().remove("zoom"); |
|
|
|
|
mZoomTask = getOrchestrator().scheduleStateful("zoom", |
|
|
|
|
CameraState.ENGINE, |
|
|
|
|
new Runnable() { |
|
|
|
|
@Override |
|
|
|
@ -655,8 +658,11 @@ 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.
|
|
|
|
|
getOrchestrator().remove("exposure correction"); |
|
|
|
|
mExposureCorrectionTask = getOrchestrator().scheduleStateful( |
|
|
|
|
"exposure correction (" + EVvalue + ")", |
|
|
|
|
"exposure correction", |
|
|
|
|
CameraState.ENGINE, |
|
|
|
|
new Runnable() { |
|
|
|
|
@Override |
|
|
|
|