public static class WebcamUpdater.DefaultDelayCalculator extends java.lang.Object implements WebcamUpdater.DelayCalculator
Constructor and Description |
---|
DefaultDelayCalculator() |
Modifier and Type | Method and Description |
---|---|
long |
calculateDelay(long snapshotDuration,
double deviceFps)
Calculates delay before the next image will be fetched from the webcam.
|
public long calculateDelay(long snapshotDuration, double deviceFps)
WebcamUpdater.DelayCalculator
calculateDelay
in interface WebcamUpdater.DelayCalculator
snapshotDuration
- - duration of taking the last imagedeviceFps
- - current FPS obtained from the device, or -1 if the driver doesn't
support itCopyright © 2012-2018 Bartosz Firyn (SarXos). All Rights Reserved.