libfreenect2
0.2
|
Collect multiple types of frames. More...
#include <libfreenect2/frame_listener_impl.h>
Public Member Functions | |
SyncMultiFrameListener (unsigned int frame_types) | |
virtual | ~SyncMultiFrameListener () |
bool | hasNewFrame () const |
Test if there are new frames. More... | |
bool | waitForNewFrame (FrameMap &frame, int milliseconds) |
Wait milliseconds for new frames. More... | |
void | waitForNewFrame (FrameMap &frame) |
Wait indefinitely for new frames. More... | |
void | release (FrameMap &frame) |
Shortcut to delete all frames. More... | |
virtual bool | onNewFrame (Frame::Type type, Frame *frame) |
libfreenect2 calls this function when a new frame is decoded. More... | |
Public Member Functions inherited from FrameListener | |
virtual | ~FrameListener () |
Collect multiple types of frames.
SyncMultiFrameListener | ( | unsigned int | frame_types | ) |
frame_types | Use bitwise or to combine multiple types, e.g. Frame::Ir | Frame::Depth . |
|
virtual |
bool hasNewFrame | ( | ) | const |
Test if there are new frames.
Non-blocking.
bool waitForNewFrame | ( | FrameMap & | frame, |
int | milliseconds | ||
) |
Wait milliseconds for new frames.
[out] | frame | Caller is responsible to release the frames in frame . |
milliseconds | Timeout. This parameter is ignored if not built with C++11 threading support. |
void waitForNewFrame | ( | FrameMap & | frame | ) |
Wait indefinitely for new frames.
[out] | frame | Caller is responsible to release the frames in frame . |
void release | ( | FrameMap & | frame | ) |
Shortcut to delete all frames in frame
.
|
virtual |
libfreenect2 calls this function when a new frame is decoded.
type | Type of the new frame. |
frame | Data of the frame. |
Implements FrameListener.