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 | |
77 void RemoteBitrateEstimatorSingleStream::IncomingPacket( | 72 void RemoteBitrateEstimatorSingleStream::IncomingPacket( |
78 int64_t arrival_time_ms, | 73 int64_t arrival_time_ms, |
79 size_t payload_size, | 74 size_t payload_size, |
80 const RTPHeader& header) { | 75 const RTPHeader& header) { |
81 if (!uma_recorded_) { | 76 if (!uma_recorded_) { |
82 BweNames type = BweNames::kReceiverTOffset; | 77 BweNames type = BweNames::kReceiverTOffset; |
83 if (!header.extension.hasTransmissionTimeOffset) | 78 if (!header.extension.hasTransmissionTimeOffset) |
84 type = BweNames::kReceiverNoExtension; | 79 type = BweNames::kReceiverNoExtension; |
85 RTC_HISTOGRAM_ENUMERATION(kBweTypeHistogram, type, BweNames::kBweNamesMax); | 80 RTC_HISTOGRAM_ENUMERATION(kBweTypeHistogram, type, BweNames::kBweNamesMax); |
86 uma_recorded_ = true; | 81 uma_recorded_ = true; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 (*ssrcs)[i] = it->first; | 249 (*ssrcs)[i] = it->first; |
255 } | 250 } |
256 } | 251 } |
257 | 252 |
258 void RemoteBitrateEstimatorSingleStream::SetMinBitrate(int min_bitrate_bps) { | 253 void RemoteBitrateEstimatorSingleStream::SetMinBitrate(int min_bitrate_bps) { |
259 CriticalSectionScoped cs(crit_sect_.get()); | 254 CriticalSectionScoped cs(crit_sect_.get()); |
260 remote_rate_->SetMinBitrate(min_bitrate_bps); | 255 remote_rate_->SetMinBitrate(min_bitrate_bps); |
261 } | 256 } |
262 | 257 |
263 } // namespace webrtc | 258 } // namespace webrtc |
OLD | NEW |