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 |
11 #include "webrtc/video/vie_remb.h" | 11 #include "webrtc/video/vie_remb.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 | 16 |
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
18 #include "webrtc/modules/utility/include/process_thread.h" | 18 #include "webrtc/modules/utility/include/process_thread.h" |
19 #include "webrtc/system_wrappers/include/tick_util.h" | |
20 #include "webrtc/system_wrappers/include/trace.h" | 19 #include "webrtc/system_wrappers/include/trace.h" |
21 | 20 |
22 namespace webrtc { | 21 namespace webrtc { |
23 | 22 |
24 const int kRembSendIntervalMs = 200; | 23 const int kRembSendIntervalMs = 200; |
25 | 24 |
26 // % threshold for if we should send a new REMB asap. | 25 // % threshold for if we should send a new REMB asap. |
27 const uint32_t kSendThresholdPercent = 97; | 26 const uint32_t kSendThresholdPercent = 97; |
28 | 27 |
29 VieRemb::VieRemb(Clock* clock) | 28 VieRemb::VieRemb(Clock* clock) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 127 } |
129 last_send_bitrate_ = bitrate_; | 128 last_send_bitrate_ = bitrate_; |
130 } | 129 } |
131 | 130 |
132 if (sender) { | 131 if (sender) { |
133 sender->SetREMBData(bitrate_, ssrcs); | 132 sender->SetREMBData(bitrate_, ssrcs); |
134 } | 133 } |
135 } | 134 } |
136 | 135 |
137 } // namespace webrtc | 136 } // namespace webrtc |
OLD | NEW |