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/trace.h" | |
20 | 19 |
21 namespace webrtc { | 20 namespace webrtc { |
22 | 21 |
23 const int kRembSendIntervalMs = 200; | 22 const int kRembSendIntervalMs = 200; |
24 | 23 |
25 // % threshold for if we should send a new REMB asap. | 24 // % threshold for if we should send a new REMB asap. |
26 const uint32_t kSendThresholdPercent = 97; | 25 const uint32_t kSendThresholdPercent = 97; |
27 | 26 |
28 VieRemb::VieRemb(Clock* clock) | 27 VieRemb::VieRemb(Clock* clock) |
29 : clock_(clock), | 28 : clock_(clock), |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 126 } |
128 last_send_bitrate_ = bitrate_; | 127 last_send_bitrate_ = bitrate_; |
129 } | 128 } |
130 | 129 |
131 if (sender) { | 130 if (sender) { |
132 sender->SetREMBData(bitrate_, ssrcs); | 131 sender->SetREMBData(bitrate_, ssrcs); |
133 } | 132 } |
134 } | 133 } |
135 | 134 |
136 } // namespace webrtc | 135 } // namespace webrtc |
OLD | NEW |