| OLD | NEW |
| 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" | 11 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <limits> | 14 #include <limits> |
| 15 | 15 |
| 16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/base/logging.h" | 17 #include "webrtc/base/logging.h" |
| 18 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_s
end_time.h" | 18 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
| 19 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 20 #include "webrtc/modules/utility/include/process_thread.h" | 20 #include "webrtc/modules/utility/include/process_thread.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 const int64_t kNoTimestamp = -1; | 24 const int64_t kNoTimestamp = -1; |
| 25 const int64_t kSendTimeHistoryWindowMs = 10000; | 25 const int64_t kSendTimeHistoryWindowMs = 10000; |
| 26 const int64_t kBaseTimestampScaleFactor = | 26 const int64_t kBaseTimestampScaleFactor = |
| 27 rtcp::TransportFeedback::kDeltaScaleFactor * (1 << 8); | 27 rtcp::TransportFeedback::kDeltaScaleFactor * (1 << 8); |
| 28 const int64_t kBaseTimestampRangeSizeUs = kBaseTimestampScaleFactor * (1 << 24); | 28 const int64_t kBaseTimestampRangeSizeUs = kBaseTimestampScaleFactor * (1 << 24); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); | 136 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 139 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
| 140 int64_t max_rtt_ms) { | 140 int64_t max_rtt_ms) { |
| 141 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 141 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
| 142 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 142 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace webrtc | 145 } // namespace webrtc |
| OLD | NEW |