public class VideoCaptureFramesExample extends KeyAdapter
VideoDisplay.getDisplayFPS()
reports
FPS speed with which display is updated, it is not necessairly the speed
at which FPS is rendered out to the display. This program shows this
discrepancy. Notice that while "capture" FPS reports at the consistent
range, depending on frame delay set, the actual render FPS may be quite
different. This demo implementation uses simple thread sleep to simulate
expensive rendering operation.Constructor and Description |
---|
VideoCaptureFramesExample() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Runs the program contained in this class.
|
keyPressed, keyReleased, keyTyped
public VideoCaptureFramesExample() throws VideoCaptureException
VideoCaptureException
public static void main(String[] args) throws VideoCaptureException
args
- not usedVideoCaptureException
- if their is a problem with the video capture hardware