@Namespace(value="libfreenect2") @NoOffset public static class freenect2.SyncMultiFrameListener extends freenect2.FrameListener
| Constructor and Description |
|---|
SyncMultiFrameListener(int frame_types) |
SyncMultiFrameListener(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNewFrame()
Test if there are new frames.
|
boolean |
onNewFrame(int type,
freenect2.Frame frame)
libfreenect2 calls this function when a new frame is decoded.
|
void |
release(freenect2.FrameMap frame)
Shortcut to delete all frames
|
void |
waitForNewFrame(freenect2.FrameMap frame)
Wait indefinitely for new frames.
|
boolean |
waitForNewFrame(freenect2.FrameMap frame,
int milliseconds)
Wait milliseconds for new frames.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic SyncMultiFrameListener(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public SyncMultiFrameListener(@Cast(value="unsigned int")
int frame_types)
frame_types - Use bitwise or to combine multiple types, e.g. Frame::Ir | Frame::Depth.@Cast(value="bool") public boolean hasNewFrame()
@Cast(value="bool")
public boolean waitForNewFrame(@ByRef
freenect2.FrameMap frame,
int milliseconds)
[out] - frame Caller is responsible to release the frames.milliseconds - Timeout. This parameter is ignored if not built with C++11 threading support.public void waitForNewFrame(@ByRef
freenect2.FrameMap frame)
[out] - frame Caller is responsible to release the frames.public void release(@ByRef
freenect2.FrameMap frame)
@Cast(value="bool")
public boolean onNewFrame(@Cast(value="libfreenect2::Frame::Type")
int type,
freenect2.Frame frame)
freenect2.FrameListeneronNewFrame in class freenect2.FrameListenertype - Type of the new frame.frame - Data of the frame.Copyright © 2018. All rights reserved.