OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" | 52 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
53 #include "webrtc/system_wrappers/include/trace.h" | 53 #include "webrtc/system_wrappers/include/trace.h" |
54 #include "webrtc/video/call_stats.h" | 54 #include "webrtc/video/call_stats.h" |
55 #include "webrtc/video/send_delay_stats.h" | 55 #include "webrtc/video/send_delay_stats.h" |
56 #include "webrtc/video/stats_counter.h" | 56 #include "webrtc/video/stats_counter.h" |
57 #include "webrtc/video/video_receive_stream.h" | 57 #include "webrtc/video/video_receive_stream.h" |
58 #include "webrtc/video/video_send_stream.h" | 58 #include "webrtc/video/video_send_stream.h" |
59 | 59 |
60 namespace webrtc { | 60 namespace webrtc { |
61 | 61 |
62 const int Call::Config::kDefaultStartBitrateBps = 300000; | |
63 | |
64 namespace { | 62 namespace { |
65 | 63 |
66 // TODO(nisse): This really begs for a shared context struct. | 64 // TODO(nisse): This really begs for a shared context struct. |
67 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, | 65 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, |
68 bool transport_cc) { | 66 bool transport_cc) { |
69 if (!transport_cc) | 67 if (!transport_cc) |
70 return false; | 68 return false; |
71 for (const auto& extension : extensions) { | 69 for (const auto& extension : extensions) { |
72 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) | 70 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) |
73 return true; | 71 return true; |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { | 1286 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { |
1289 receive_side_cc_.OnReceivedPacket( | 1287 receive_side_cc_.OnReceivedPacket( |
1290 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), | 1288 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), |
1291 header); | 1289 header); |
1292 } | 1290 } |
1293 } | 1291 } |
1294 | 1292 |
1295 } // namespace internal | 1293 } // namespace internal |
1296 | 1294 |
1297 } // namespace webrtc | 1295 } // namespace webrtc |
OLD | NEW |