Fix regression framerate control.
This commit is contained in:
parent
c2ced898a6
commit
5f48ba809f
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ public class AndroidCameraRecordImpl extends AndroidCameraRecord implements Prev
|
||||||
private long filterCtxPtr;
|
private long filterCtxPtr;
|
||||||
private double timeElapsedBetweenFrames = 0;
|
private double timeElapsedBetweenFrames = 0;
|
||||||
private long lastFrameTime = 0;
|
private long lastFrameTime = 0;
|
||||||
private final long expectedTimeBetweenFrames;
|
private final double expectedTimeBetweenFrames;
|
||||||
|
|
||||||
public AndroidCameraRecordImpl(RecorderParams parameters) {
|
public AndroidCameraRecordImpl(RecorderParams parameters) {
|
||||||
super(parameters);
|
super(parameters);
|
||||||
expectedTimeBetweenFrames = 1l / Math.round(parameters.fps);
|
expectedTimeBetweenFrames = 1d / Math.round(parameters.fps);
|
||||||
filterCtxPtr = parameters.filterDataNativePtr;
|
filterCtxPtr = parameters.filterDataNativePtr;
|
||||||
|
|
||||||
storePreviewCallBack(this);
|
storePreviewCallBack(this);
|
||||||
|
|
Loading…
Reference in a new issue