Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
FECFRAME packet composer. More...
#include <composer.h>
Public Member Functions | |
Composer (packet::IComposer *inner_composer) | |
Initialization. More... | |
virtual bool | align (core::Slice< uint8_t > &buffer, size_t header_size, size_t payload_alignment) |
Adjust buffer to align payload. More... | |
virtual bool | prepare (packet::Packet &packet, core::Slice< uint8_t > &buffer, size_t payload_size) |
Prepare buffer for composing a packet. More... | |
virtual bool | pad (packet::Packet &packet, size_t padding_size) |
Pad packet. More... | |
virtual bool | compose (packet::Packet &packet) |
Compose packet to buffer. More... | |
FECFRAME packet composer.
Definition at line 26 of file composer.h.
|
inline |
Initialization.
inner_composer
if it's not null. Definition at line 32 of file composer.h.
|
inlinevirtual |
Adjust buffer to align payload.
Implements roc::packet::IComposer.
Definition at line 38 of file composer.h.
|
inlinevirtual |
Compose packet to buffer.
Implements roc::packet::IComposer.
Definition at line 133 of file composer.h.
|
inlinevirtual |
|
inlinevirtual |
Prepare buffer for composing a packet.
Implements roc::packet::IComposer.
Definition at line 67 of file composer.h.