|
|
@ -166,6 +166,7 @@ public abstract class CameraEngine implements |
|
|
|
protected float mZoomValue; |
|
|
|
protected float mZoomValue; |
|
|
|
protected float mExposureCorrectionValue; |
|
|
|
protected float mExposureCorrectionValue; |
|
|
|
protected boolean mPlaySounds; |
|
|
|
protected boolean mPlaySounds; |
|
|
|
|
|
|
|
protected boolean mHasFrameProcessors; |
|
|
|
|
|
|
|
|
|
|
|
@Nullable private SizeSelector mPreviewStreamSizeSelector; |
|
|
|
@Nullable private SizeSelector mPreviewStreamSizeSelector; |
|
|
|
private SizeSelector mPictureSizeSelector; |
|
|
|
private SizeSelector mPictureSizeSelector; |
|
|
@ -916,6 +917,8 @@ public abstract class CameraEngine implements |
|
|
|
|
|
|
|
|
|
|
|
public abstract void setPlaySounds(boolean playSounds); |
|
|
|
public abstract void setPlaySounds(boolean playSounds); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public abstract void setHasFrameProcessors(boolean hasFrameProcessors); |
|
|
|
|
|
|
|
|
|
|
|
//endregion
|
|
|
|
//endregion
|
|
|
|
|
|
|
|
|
|
|
|
//region picture and video control
|
|
|
|
//region picture and video control
|
|
|
@ -1160,12 +1163,16 @@ public abstract class CameraEngine implements |
|
|
|
|
|
|
|
|
|
|
|
public final long getAutoFocusResetDelay() { return mAutoFocusResetDelayMillis; } |
|
|
|
public final long getAutoFocusResetDelay() { return mAutoFocusResetDelayMillis; } |
|
|
|
|
|
|
|
|
|
|
|
final boolean shouldResetAutoFocus() { |
|
|
|
public boolean getHasFrameProcessors() { |
|
|
|
return mAutoFocusResetDelayMillis > 0 && mAutoFocusResetDelayMillis != Long.MAX_VALUE; |
|
|
|
return mHasFrameProcessors; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//endregion
|
|
|
|
//endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final boolean shouldResetAutoFocus() { |
|
|
|
|
|
|
|
return mAutoFocusResetDelayMillis > 0 && mAutoFocusResetDelayMillis != Long.MAX_VALUE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//region Orientation utils
|
|
|
|
//region Orientation utils
|
|
|
|
|
|
|
|
|
|
|
|
private int computeSensorToViewOffset() { |
|
|
|
private int computeSensorToViewOffset() { |
|
|
|