|
ofxDepthStream
|
Manages a reference to a Frame instance. More...
#include <Buffer.h>
Public Types | |
| 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 | |
| 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 Attributes | |
| NewDataCallback | newDataCallback =nullptr |
| FrameRef | buffered =nullptr |
Manages a reference to a Frame instance.
The Buffer class only manages a reference to a Frame instance, and allows the owner register a callback to be notified when the buffer is being written to.
| typedef std::function<void(const void*, size_t)> depth::Buffer::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.
|
inline |
Clear the buffer (doesn't trigger the output callback)
Referenced by depth::emptyBuffer().
|
inlinevirtual |
Referenced by depth::emptyBuffer().
|
inline |
Registers an output callback that updates the given buffer with this buffer's data whenever this buffer is updated.
|
inlinevirtual |
Updates the buffer with a new frame (triggers the output callback)
Referenced by setOutputTo(), depth::Receiver::threadFunc(), depth::Playback::update(), depth::Recorder::write(), and write().
|
inlinevirtual |
Updates the buffer with a new frame (triggers the output callback)
Reimplemented in depth::Recorder.
|
protected |
Referenced by setOutputTo(), and write().
1.8.14