Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
RTP 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... | |
RTP packet composer.
Definition at line 22 of file composer.h.
roc::rtp::Composer::Composer | ( | packet::IComposer * | inner_composer | ) |
Initialization.
inner_composer
is not NULL, it is used to compose the packet payload.
|
virtual |
Adjust buffer to align payload.
Implements roc::packet::IComposer.
|
virtual |
Compose packet to buffer.
Implements roc::packet::IComposer.
|
virtual |
Pad packet.
Implements roc::packet::IComposer.
|
virtual |
Prepare buffer for composing a packet.
Implements roc::packet::IComposer.