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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" | 53 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
54 #include "webrtc/system_wrappers/include/trace.h" | 54 #include "webrtc/system_wrappers/include/trace.h" |
55 #include "webrtc/video/call_stats.h" | 55 #include "webrtc/video/call_stats.h" |
56 #include "webrtc/video/send_delay_stats.h" | 56 #include "webrtc/video/send_delay_stats.h" |
57 #include "webrtc/video/stats_counter.h" | 57 #include "webrtc/video/stats_counter.h" |
58 #include "webrtc/video/video_receive_stream.h" | 58 #include "webrtc/video/video_receive_stream.h" |
59 #include "webrtc/video/video_send_stream.h" | 59 #include "webrtc/video/video_send_stream.h" |
60 | 60 |
61 namespace webrtc { | 61 namespace webrtc { |
62 | 62 |
63 const int Call::Config::kDefaultStartBitrateBps = 300000; | |
64 | |
65 namespace { | 63 namespace { |
66 | 64 |
67 // TODO(nisse): This really begs for a shared context struct. | 65 // TODO(nisse): This really begs for a shared context struct. |
68 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, | 66 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, |
69 bool transport_cc) { | 67 bool transport_cc) { |
70 if (!transport_cc) | 68 if (!transport_cc) |
71 return false; | 69 return false; |
72 for (const auto& extension : extensions) { | 70 for (const auto& extension : extensions) { |
73 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) | 71 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) |
74 return true; | 72 return true; |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { | 1375 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { |
1378 receive_side_cc_.OnReceivedPacket( | 1376 receive_side_cc_.OnReceivedPacket( |
1379 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), | 1377 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), |
1380 header); | 1378 header); |
1381 } | 1379 } |
1382 } | 1380 } |
1383 | 1381 |
1384 } // namespace internal | 1382 } // namespace internal |
1385 | 1383 |
1386 } // namespace webrtc | 1384 } // namespace webrtc |
OLD | NEW |