T
- the type of imagepublic abstract class KinectVideoStreamCallback<T extends Image<?,T>> extends libfreenectLibrary.freenect_video_cb implements KinectStreamCallback
Constructor and Description |
---|
KinectVideoStreamCallback(KinectStream<T> stream)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
apply(org.bridj.Pointer<libfreenectLibrary.freenect_device> dev,
org.bridj.Pointer<?> video,
int timestamp) |
abstract void |
setImage()
Set the current image from the underlying buffer data
|
abstract void |
stop()
Stop the stream
|
void |
swapFrames()
swap the stream and callback buffers if the
callback buffer has fresher data.
|
public KinectVideoStreamCallback(KinectStream<T> stream)
stream
- the video streampublic void apply(org.bridj.Pointer<libfreenectLibrary.freenect_device> dev, org.bridj.Pointer<?> video, int timestamp)
apply
in class libfreenectLibrary.freenect_video_cb
public abstract void setImage()
public void swapFrames()
KinectStreamCallback
swapFrames
in interface KinectStreamCallback
public abstract void stop()
KinectStreamCallback
stop
in interface KinectStreamCallback