|
|
@ -85,6 +85,7 @@ public abstract class CameraBaseEngine extends CameraEngine { |
|
|
|
private long mVideoMaxSize; |
|
|
|
private long mVideoMaxSize; |
|
|
|
private int mVideoMaxDuration; |
|
|
|
private int mVideoMaxDuration; |
|
|
|
private int mVideoBitRate; |
|
|
|
private int mVideoBitRate; |
|
|
|
|
|
|
|
private double mVideoCaptureRate; |
|
|
|
private int mAudioBitRate; |
|
|
|
private int mAudioBitRate; |
|
|
|
private long mAutoFocusResetDelayMillis; |
|
|
|
private long mAutoFocusResetDelayMillis; |
|
|
|
private int mSnapshotMaxWidth; // in REF_VIEW like SizeSelectors
|
|
|
|
private int mSnapshotMaxWidth; // in REF_VIEW like SizeSelectors
|
|
|
@ -245,6 +246,16 @@ public abstract class CameraBaseEngine extends CameraEngine { |
|
|
|
return mVideoBitRate; |
|
|
|
return mVideoBitRate; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public final void setVideoCaptureRate(double videoCaptureRate) { |
|
|
|
|
|
|
|
mVideoCaptureRate = videoCaptureRate; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public final double getVideoCaptureRate() { |
|
|
|
|
|
|
|
return mVideoCaptureRate; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public final void setAudioCodec(@NonNull AudioCodec codec) { |
|
|
|
public final void setAudioCodec(@NonNull AudioCodec codec) { |
|
|
|
mAudioCodec = codec; |
|
|
|
mAudioCodec = codec; |
|
|
@ -601,6 +612,7 @@ public abstract class CameraBaseEngine extends CameraEngine { |
|
|
|
stub.maxSize = mVideoMaxSize; |
|
|
|
stub.maxSize = mVideoMaxSize; |
|
|
|
stub.maxDuration = mVideoMaxDuration; |
|
|
|
stub.maxDuration = mVideoMaxDuration; |
|
|
|
stub.videoBitRate = mVideoBitRate; |
|
|
|
stub.videoBitRate = mVideoBitRate; |
|
|
|
|
|
|
|
stub.videoCaptureRate = mVideoCaptureRate; |
|
|
|
stub.audioBitRate = mAudioBitRate; |
|
|
|
stub.audioBitRate = mAudioBitRate; |
|
|
|
onTakeVideo(stub); |
|
|
|
onTakeVideo(stub); |
|
|
|
} |
|
|
|
} |
|
|
@ -626,6 +638,7 @@ public abstract class CameraBaseEngine extends CameraEngine { |
|
|
|
stub.location = mLocation; |
|
|
|
stub.location = mLocation; |
|
|
|
stub.facing = mFacing; |
|
|
|
stub.facing = mFacing; |
|
|
|
stub.videoBitRate = mVideoBitRate; |
|
|
|
stub.videoBitRate = mVideoBitRate; |
|
|
|
|
|
|
|
stub.videoCaptureRate = mVideoCaptureRate; |
|
|
|
stub.audioBitRate = mAudioBitRate; |
|
|
|
stub.audioBitRate = mAudioBitRate; |
|
|
|
stub.audio = mAudio; |
|
|
|
stub.audio = mAudio; |
|
|
|
stub.maxSize = mVideoMaxSize; |
|
|
|
stub.maxSize = mVideoMaxSize; |
|
|
|