@Namespace(value="libfreenect2") @NoOffset @Properties(inherit=freenect2.class) public class SyncMultiFrameListener extends FrameListener
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SyncMultiFrameListener(int frame_types) |
SyncMultiFrameListener(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNewFrame()
Test if there are new frames.
|
boolean |
onNewFrame(int type,
Frame frame)
libfreenect2 calls this function when a new frame is decoded.
|
void |
release(FrameMap frame)
Shortcut to delete all frames
|
void |
waitForNewFrame(FrameMap frame)
Wait indefinitely for new frames.
|
boolean |
waitForNewFrame(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, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public SyncMultiFrameListener(Pointer p)
Pointer(Pointer)
.@Cast(value="bool") public boolean hasNewFrame()
@Cast(value="bool") public boolean waitForNewFrame(@ByRef FrameMap frame, int milliseconds)
frame
- [out] 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 FrameMap frame)
frame
- [out] Caller is responsible to release the frames.@Cast(value="bool") public boolean onNewFrame(@Cast(value="libfreenect2::Frame::Type") int type, Frame frame)
FrameListener
onNewFrame
in class FrameListener
type
- Type of the new frame.frame
- Data of the frame.Copyright © 2023. All rights reserved.