#include "cast/streaming/impl/rtcp_common.h"
#include <algorithm>
#include <limits>
#include "cast/streaming/impl/packet_util.h"
#include "util/saturate_cast.h"
namespace openscreen::cast {
RtcpCommonHeader::RtcpCommonHeader() = default;
RtcpCommonHeader::~RtcpCommonHeader() = default;
void RtcpCommonHeader::AppendFields(ByteBuffer& buffer) const { … }
std::optional<RtcpCommonHeader> RtcpCommonHeader::Parse(ByteView buffer) { … }
RtcpReportBlock::RtcpReportBlock() = default;
RtcpReportBlock::~RtcpReportBlock() = default;
void RtcpReportBlock::AppendFields(ByteBuffer& buffer) const { … }
void RtcpReportBlock::SetPacketFractionLostNumerator(
int64_t num_apparently_sent,
int64_t num_received) { … }
void RtcpReportBlock::SetCumulativePacketsLost(int64_t num_apparently_sent,
int64_t num_received) { … }
void RtcpReportBlock::SetDelaySinceLastReport(
Clock::duration local_clock_delay) { … }
std::optional<RtcpReportBlock> RtcpReportBlock::ParseOne(ByteView buffer,
int report_count,
Ssrc ssrc) { … }
RtcpSenderReport::RtcpSenderReport() = default;
RtcpSenderReport::~RtcpSenderReport() = default;
}