Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc

Issue 1441673002: Move BitrateAllocator from BitrateController logic to Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
11 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h"
12
11 #include <limits> 13 #include <limits>
12 14
13 #include "webrtc/base/checks.h" 15 #include "webrtc/base/checks.h"
14 #include "webrtc/base/logging.h" 16 #include "webrtc/base/logging.h"
15 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_s end_time.h" 17 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_s end_time.h"
16 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h"
17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" 18 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
18 #include "webrtc/modules/utility/include/process_thread.h" 19 #include "webrtc/modules/utility/include/process_thread.h"
19 20
20 namespace webrtc { 21 namespace webrtc {
21 22
22 const int64_t kNoTimestamp = -1; 23 const int64_t kNoTimestamp = -1;
23 const int64_t kSendTimeHistoryWindowMs = 10000; 24 const int64_t kSendTimeHistoryWindowMs = 10000;
24 const int64_t kBaseTimestampScaleFactor = 25 const int64_t kBaseTimestampScaleFactor =
25 rtcp::TransportFeedback::kDeltaScaleFactor * (1 << 8); 26 rtcp::TransportFeedback::kDeltaScaleFactor * (1 << 8);
26 const int64_t kBaseTimestampRangeSizeUs = kBaseTimestampScaleFactor * (1 << 24); 27 const int64_t kBaseTimestampRangeSizeUs = kBaseTimestampScaleFactor * (1 << 24);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 rtcp_bandwidth_observer_->OnReceivedEstimatedBitrate(bitrate); 127 rtcp_bandwidth_observer_->OnReceivedEstimatedBitrate(bitrate);
127 } 128 }
128 129
129 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, 130 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms,
130 int64_t max_rtt_ms) { 131 int64_t max_rtt_ms) {
131 RTC_DCHECK(bitrate_estimator_.get() != nullptr); 132 RTC_DCHECK(bitrate_estimator_.get() != nullptr);
132 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); 133 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms);
133 } 134 }
134 135
135 } // namespace webrtc 136 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698