|
|
@ -72,6 +72,7 @@ abstract class CameraController implements |
|
|
|
protected Size mCaptureSize; |
|
|
|
protected Size mCaptureSize; |
|
|
|
protected Size mPreviewStreamSize; |
|
|
|
protected Size mPreviewStreamSize; |
|
|
|
protected int mPreviewFormat; |
|
|
|
protected int mPreviewFormat; |
|
|
|
|
|
|
|
protected long mAutoFocusResetDelayMillis = CameraView.DEFAULT_AUTOFOCUS_RESET_DELAY_MILLIS; |
|
|
|
|
|
|
|
|
|
|
|
protected int mSensorOffset; |
|
|
|
protected int mSensorOffset; |
|
|
|
private int mDisplayOffset; |
|
|
|
private int mDisplayOffset; |
|
|
@ -325,6 +326,8 @@ abstract class CameraController implements |
|
|
|
mSnapshotMaxHeight = maxHeight; |
|
|
|
mSnapshotMaxHeight = maxHeight; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final void setAutoFocusResetDelay(long delayMillis) { mAutoFocusResetDelayMillis = delayMillis; } |
|
|
|
|
|
|
|
|
|
|
|
//endregion
|
|
|
|
//endregion
|
|
|
|
|
|
|
|
|
|
|
|
//region Abstract setters and APIs
|
|
|
|
//region Abstract setters and APIs
|
|
|
@ -465,6 +468,12 @@ abstract class CameraController implements |
|
|
|
return mPictureRecorder != null; |
|
|
|
return mPictureRecorder != null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final long getAutoFocusResetDelay() { return mAutoFocusResetDelayMillis; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final boolean shouldResetAutoFocus() { |
|
|
|
|
|
|
|
return mAutoFocusResetDelayMillis > 0 && mAutoFocusResetDelayMillis != Long.MAX_VALUE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//endregion
|
|
|
|
//endregion
|
|
|
|
|
|
|
|
|
|
|
|
//region Orientation utils
|
|
|
|
//region Orientation utils
|
|
|
|