12 #ifndef ROC_RTCP_BUILDER_H_
13 #define ROC_RTCP_BUILDER_H_
160 void* add_block_(
size_t size);
RTCP interface structures.
Base class for non-copyable objects.
RTCP compound packet builder.
void end_sr()
Finish SR packet.
void begin_rr(const header::ReceiverReportPacket &rr)
Start RR packet inside compound RTCP packet.
void add_xr_queue_metrics(const header::XrQueueMetricsBlock &queue_metrics)
Add queue metrics block.to current XR packet.
void end_sdes()
Finish current SDES packet.
void add_xr_dlrr_report(const header::XrDlrrSubblock &report)
Add DLRR report to current DLRR block.
void end_rr()
Finish RR packet.
void end_sdes_chunk()
Finish current SDES chunk.
void end_xr_dlrr()
Finish current DLRR block.
void begin_bye()
Start BYE packet inside compound RTCP packet.
void end_bye()
Finish current BYE packet.
void add_padding(size_t padding_len)
Add given number of padding bytes to last packet. Padding should be multiple of 4 in range [1; 255].
void add_rr_report(const header::ReceptionReportBlock &report)
Add reception report to current RR packet.
void add_xr_measurement_info(const header::XrMeasurementInfoBlock &measurement_info)
Add measurement info block.to current XR packet.
void add_xr_delay_metrics(const header::XrDelayMetricsBlock &delay_metrics)
Add delay metrics block.to current XR packet.
void begin_xr_dlrr(const header::XrDlrrBlock &dlrr)
Start DLRR block inside current XR packet.
bool is_ok() const
Check for errors.
void add_bye_ssrc(const packet::stream_source_t ssrc)
Add SSRC to current BYE packet.
Builder(const Config &config, core::Slice< uint8_t > &result)
Initialize builder. It will write data to the given slice.
void begin_sr(const header::SenderReportPacket &sr)
Start SR packet inside compound RTCP packet.
void begin_sdes()
Start SDES packet inside compound RTCP packet.
void add_xr_rrtr(const header::XrRrtrBlock &rrtr)
Add RRTR block to current XR packet.
void add_sdes_item(const SdesItem &item)
Add SDES item to current SDES chunk.
void end_xr()
Finish current XR packet.
void begin_sdes_chunk(const SdesChunk &chunk)
Start new SDES chunk in current SDES packet.
void add_bye_reason(const char *reason)
Add REASON to current BYE packet.
void begin_xr(const header::XrPacket &xr)
Start XR packet inside compound RTCP packet.
void add_sr_report(const header::ReceptionReportBlock &report)
Add reception report to current SR packet.
uint32_t stream_source_t
Packet stream identifier.
Commonly used types and functions.
Various units used in packets.