AVBlocks for C++
1.9
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. | |
static bool_t | pop (MediaBuffer *buffer, int32_t dataSize) |
Removes data from the beginning of the MediaBuffer data. | |
static bool_t | normalize (MediaBuffer *buffer) |
Moves the data (if any) to the start of the buffer. | |
static bool_t | push (MediaBuffer *buffer, const void *data, int32_t dataSize) |
Adds data at the end of the MediaBuffer data. | |
static int32_t | freeLinearSpace (MediaBuffer *buffer) |
Returns the free linear space in MediaBuffer that can be used to add more data. |
Provides FIFO semantics and helper functions for MediaBuffer.
static bool_t clear | ( | MediaBuffer * | buffer | ) | [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 int32_t freeLinearSpace | ( | MediaBuffer * | buffer | ) | [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 bool_t normalize | ( | MediaBuffer * | buffer | ) | [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 bool_t pop | ( | MediaBuffer * | buffer, |
int32_t | dataSize | ||
) | [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 bool_t push | ( | MediaBuffer * | buffer, |
const void * | data, | ||
int32_t | dataSize | ||
) | [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().