Breaking out RTP header parsing from the RTP module.
This is the first step in order to move bandwidth estimation closer to the network. The goal is to have RTP header parsing and bandwidth estimation before voice and video engine, and have a joint estimate for audio and video. Moving bandwidth estimation before the RTP module is also required for RTX. TEST=vie_auto_test, voe_auto_test, trybots. BUG=1811 R=andresp@webrtc.org, henrika@webrtc.org, mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1545004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4129 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -142,7 +142,7 @@ void RemoteBitrateEstimatorMultiStream::IncomingPacket(
|
||||
const WebRtcRTPHeader& header) {
|
||||
uint32_t ssrc = header.header.ssrc;
|
||||
uint32_t rtp_timestamp = header.header.timestamp +
|
||||
header.extension.transmissionTimeOffset;
|
||||
header.header.extension.transmissionTimeOffset;
|
||||
CriticalSectionScoped cs(crit_sect_.get());
|
||||
incoming_bitrate_.Update(payload_size, arrival_time_ms);
|
||||
// Add this stream to the map of streams if it doesn't already exist.
|
||||
|
||||
@@ -89,7 +89,7 @@ void RemoteBitrateEstimatorSingleStream::IncomingPacket(
|
||||
const WebRtcRTPHeader& header) {
|
||||
uint32_t ssrc = header.header.ssrc;
|
||||
uint32_t rtp_timestamp = header.header.timestamp +
|
||||
header.extension.transmissionTimeOffset;
|
||||
header.header.extension.transmissionTimeOffset;
|
||||
CriticalSectionScoped cs(crit_sect_.get());
|
||||
SsrcOveruseDetectorMap::iterator it = overuse_detectors_.find(ssrc);
|
||||
if (it == overuse_detectors_.end()) {
|
||||
|
||||
@@ -227,7 +227,7 @@ void RemoteBitrateEstimatorTest::IncomingPacket(uint32_t ssrc,
|
||||
memset(&header, 0, sizeof(header));
|
||||
header.header.ssrc = ssrc;
|
||||
header.header.timestamp = rtp_timestamp;
|
||||
header.extension.absoluteSendTime = absolute_send_time;
|
||||
header.header.extension.absoluteSendTime = absolute_send_time;
|
||||
bitrate_estimator_->IncomingPacket(arrival_time, payload_size, header);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user