@(webrtc)[webrtc, congestion control]
Webrtc delay-base-bwe代码分析(6): 整体分析
当收到RTP数据包时,会触发RemoteBitrateEstimatorSingleStream::IncomingPacket函数进行处理。
这里面使用到了之前几篇文章分析的模块,各自进行各自的处理。
void RemoteBitrateEstimatorSingleStream::IncomingPacket(
int64_t arrival_time_ms,
size_t payload_size,
const RTPHeader& header) {
uint32_t ssrc = header.ssrc;
uint32_t rtp_timestamp = header.timestamp +
header.extension.transmissionTimeOffset;
int64_t now_ms = clock_->TimeInMilliseconds();
CriticalSectionScoped cs(crit_sect_.get());
SsrcOveruseEstimatorMap::iterator it = overuse_detectors_.find(ssrc);
// 根据SSRC查找对应的检测器
if (it == overuse_detectors_.end()) {