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/congestion_controller/transport_feedback_adapter.h" | 11 #include "webrtc/modules/congestion_controller/transport_feedback_adapter.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | |
14 #include "webrtc/base/logging.h" | |
15 #include "webrtc/base/mod_ops.h" | |
16 #include "webrtc/modules/congestion_controller/delay_based_bwe.h" | 13 #include "webrtc/modules/congestion_controller/delay_based_bwe.h" |
17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 14 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 15 #include "webrtc/rtc_base/checks.h" |
| 16 #include "webrtc/rtc_base/logging.h" |
| 17 #include "webrtc/rtc_base/mod_ops.h" |
18 #include "webrtc/system_wrappers/include/field_trial.h" | 18 #include "webrtc/system_wrappers/include/field_trial.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 const int64_t kNoTimestamp = -1; | 22 const int64_t kNoTimestamp = -1; |
23 const int64_t kSendTimeHistoryWindowMs = 60000; | 23 const int64_t kSendTimeHistoryWindowMs = 60000; |
24 const int64_t kBaseTimestampScaleFactor = | 24 const int64_t kBaseTimestampScaleFactor = |
25 rtcp::TransportFeedback::kDeltaScaleFactor * (1 << 8); | 25 rtcp::TransportFeedback::kDeltaScaleFactor * (1 << 8); |
26 const int64_t kBaseTimestampRangeSizeUs = kBaseTimestampScaleFactor * (1 << 24); | 26 const int64_t kBaseTimestampRangeSizeUs = kBaseTimestampScaleFactor * (1 << 24); |
27 | 27 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 observer->OnPacketFeedbackVector(last_packet_feedback_vector_); | 182 observer->OnPacketFeedbackVector(last_packet_feedback_vector_); |
183 } | 183 } |
184 } | 184 } |
185 } | 185 } |
186 | 186 |
187 std::vector<PacketFeedback> | 187 std::vector<PacketFeedback> |
188 TransportFeedbackAdapter::GetTransportFeedbackVector() const { | 188 TransportFeedbackAdapter::GetTransportFeedbackVector() const { |
189 return last_packet_feedback_vector_; | 189 return last_packet_feedback_vector_; |
190 } | 190 } |
191 } // namespace webrtc | 191 } // namespace webrtc |
OLD | NEW |