OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 RemoteBitrateEstimatorSingleStream::~RemoteBitrateEstimatorSingleStream() { | 64 RemoteBitrateEstimatorSingleStream::~RemoteBitrateEstimatorSingleStream() { |
65 while (!overuse_detectors_.empty()) { | 65 while (!overuse_detectors_.empty()) { |
66 SsrcOveruseEstimatorMap::iterator it = overuse_detectors_.begin(); | 66 SsrcOveruseEstimatorMap::iterator it = overuse_detectors_.begin(); |
67 delete it->second; | 67 delete it->second; |
68 overuse_detectors_.erase(it); | 68 overuse_detectors_.erase(it); |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
| 72 void RemoteBitrateEstimatorSingleStream::IncomingPacketFeedbackVector( |
| 73 const std::vector<PacketInfo>& packet_feedback_vector) { |
| 74 assert(false); |
| 75 } |
| 76 |
72 void RemoteBitrateEstimatorSingleStream::IncomingPacket( | 77 void RemoteBitrateEstimatorSingleStream::IncomingPacket( |
73 int64_t arrival_time_ms, | 78 int64_t arrival_time_ms, |
74 size_t payload_size, | 79 size_t payload_size, |
75 const RTPHeader& header) { | 80 const RTPHeader& header) { |
76 if (!uma_recorded_) { | 81 if (!uma_recorded_) { |
77 BweNames type = BweNames::kReceiverTOffset; | 82 BweNames type = BweNames::kReceiverTOffset; |
78 if (!header.extension.hasTransmissionTimeOffset) | 83 if (!header.extension.hasTransmissionTimeOffset) |
79 type = BweNames::kReceiverNoExtension; | 84 type = BweNames::kReceiverNoExtension; |
80 RTC_HISTOGRAM_ENUMERATION(kBweTypeHistogram, type, BweNames::kBweNamesMax); | 85 RTC_HISTOGRAM_ENUMERATION(kBweTypeHistogram, type, BweNames::kBweNamesMax); |
81 uma_recorded_ = true; | 86 uma_recorded_ = true; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 (*ssrcs)[i] = it->first; | 254 (*ssrcs)[i] = it->first; |
250 } | 255 } |
251 } | 256 } |
252 | 257 |
253 void RemoteBitrateEstimatorSingleStream::SetMinBitrate(int min_bitrate_bps) { | 258 void RemoteBitrateEstimatorSingleStream::SetMinBitrate(int min_bitrate_bps) { |
254 CriticalSectionScoped cs(crit_sect_.get()); | 259 CriticalSectionScoped cs(crit_sect_.get()); |
255 remote_rate_->SetMinBitrate(min_bitrate_bps); | 260 remote_rate_->SetMinBitrate(min_bitrate_bps); |
256 } | 261 } |
257 | 262 |
258 } // namespace webrtc | 263 } // namespace webrtc |
OLD | NEW |