AVBlocks for C++
1.13
Audio and Video Software Development Kit
|
Provides FIFO semantics and helper functions for MediaBuffer. More...
Static Public Member Functions | |
static bool_t | clear (MediaBuffer *buffer) |
Clears the data in MediaBuffer and resets the data offset to the beginning of the buffer. More... | |
static bool_t | pop (MediaBuffer *buffer, int32_t dataSize) |
Removes data from the beginning of the MediaBuffer data. More... | |
static bool_t | normalize (MediaBuffer *buffer) |
Moves the data (if any) to the start of the buffer. More... | |
static bool_t | push (MediaBuffer *buffer, const void *data, int32_t dataSize) |
Adds data at the end of the MediaBuffer data. More... | |
static int32_t | freeLinearSpace (MediaBuffer *buffer) |
Returns the free linear space in MediaBuffer that can be used to add more data. More... | |
Provides FIFO semantics and helper functions for MediaBuffer.
|
static |
Clears the data in MediaBuffer and resets the data offset to the beginning of the buffer.
buffer | A pointer to a MediaBuffer object. |
References MediaBuffer::setData().
|
static |
Returns the free linear space in MediaBuffer that can be used to add more data.
buffer | A pointer to a MediaBuffer object. |
References MediaBuffer::capacity(), MediaBuffer::dataOffset(), and MediaBuffer::dataSize().
|
static |
Moves the data (if any) to the start of the buffer.
buffer | A pointer to a MediaBuffer object. |
References MediaBuffer::data(), MediaBuffer::dataOffset(), MediaBuffer::dataSize(), MediaBuffer::setData(), and MediaBuffer::start().
|
static |
Removes data from the beginning of the MediaBuffer data.
buffer | A pointer to a MediaBuffer object. |
dataSize | The number of bytes that should be removed from the valid data. |
References MediaBuffer::dataOffset(), MediaBuffer::dataSize(), and MediaBuffer::setData().
|
static |
Adds data at the end of the MediaBuffer data.
buffer | A pointer to a MediaBuffer object. |
data | A pointer to the data that should be added. |
dataSize | The number of bytes that should be added. |
References MediaBuffer::data(), MediaBuffer::dataOffset(), MediaBuffer::dataSize(), and MediaBuffer::setData().