|
ofxDepthStream
|
#include <Playback.h>
Data Structures | |
| struct | Frame |
Public Types | |
| typedef std::function< void(void *, size_t)> | FrameCallback |
Public Types inherited from depth::Buffer | |
| typedef std::function< void(const void *, size_t)> | NewDataCallback |
| A new data callback takes a void pointer to the memory block and a size_t with the number of bytes in the memory block. More... | |
Public Member Functions | |
| ~Playback () | |
| void | start (const std::string &name) |
| void | startThreaded () |
| void | startThreaded (const std::string &name) |
| void | stop (bool wait=true) |
| bool | update (FrameCallback inlineCallback=nullptr) |
| bool | isPlaying () const |
| const std::string & | getFilename () const |
Public Member Functions inherited from depth::Buffer | |
| virtual FrameRef | getRef () |
| virtual void | write (FrameRef f) |
| Updates the buffer with a new frame (triggers the output callback) More... | |
| virtual void | write (const void *data, size_t size) |
| Updates the buffer with a new frame (triggers the output callback) More... | |
| void | clear () |
| Clear the buffer (doesn't trigger the output callback) More... | |
| void | setOutputTo (Buffer *b) |
| Registers an output callback that updates the given buffer with this buffer's data whenever this buffer is updated. More... | |
Protected Member Functions | |
| Frame * | readFrame () |
| void | threadFunc () |
| void | onEnd () |
Additional Inherited Members | |
Protected Attributes inherited from depth::Buffer | |
| NewDataCallback | newDataCallback =nullptr |
| FrameRef | buffered =nullptr |
| typedef std::function<void(void*, size_t)> depth::Playback::FrameCallback |
|
inline |
|
inline |
|
inline |
|
protected |
Referenced by update().
|
protected |
Referenced by update().
| void Playback::start | ( | const std::string & | name | ) |
Referenced by onEnd(), and threadFunc().
| void Playback::startThreaded | ( | ) |
Referenced by startThreaded().
| void Playback::startThreaded | ( | const std::string & | name | ) |
| void Playback::stop | ( | bool | wait = true | ) |
Referenced by onEnd(), and ~Playback().
|
protected |
Referenced by startThreaded().
| bool Playback::update | ( | FrameCallback | inlineCallback = nullptr | ) |
Referenced by start(), and threadFunc().
1.8.14