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_engine/vie_remb.h" | 11 #include "webrtc/video_engine/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/interface/rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
18 #include "webrtc/modules/utility/interface/process_thread.h" | 18 #include "webrtc/modules/utility/include/process_thread.h" |
19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
20 #include "webrtc/system_wrappers/include/tick_util.h" | 20 #include "webrtc/system_wrappers/include/tick_util.h" |
21 #include "webrtc/system_wrappers/include/trace.h" | 21 #include "webrtc/system_wrappers/include/trace.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 const int kRembSendIntervalMs = 200; | 25 const int kRembSendIntervalMs = 200; |
26 | 26 |
27 // % threshold for if we should send a new REMB asap. | 27 // % threshold for if we should send a new REMB asap. |
28 const unsigned int kSendThresholdPercent = 97; | 28 const unsigned int kSendThresholdPercent = 97; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 last_send_bitrate_ = bitrate_; | 134 last_send_bitrate_ = bitrate_; |
135 | 135 |
136 list_crit_->Leave(); | 136 list_crit_->Leave(); |
137 | 137 |
138 if (sender) { | 138 if (sender) { |
139 sender->SetREMBData(bitrate_, ssrcs); | 139 sender->SetREMBData(bitrate_, ssrcs); |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 } // namespace webrtc | 143 } // namespace webrtc |
OLD | NEW |