| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" | 51 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
| 52 #include "webrtc/system_wrappers/include/trace.h" | 52 #include "webrtc/system_wrappers/include/trace.h" |
| 53 #include "webrtc/video/call_stats.h" | 53 #include "webrtc/video/call_stats.h" |
| 54 #include "webrtc/video/send_delay_stats.h" | 54 #include "webrtc/video/send_delay_stats.h" |
| 55 #include "webrtc/video/stats_counter.h" | 55 #include "webrtc/video/stats_counter.h" |
| 56 #include "webrtc/video/video_receive_stream.h" | 56 #include "webrtc/video/video_receive_stream.h" |
| 57 #include "webrtc/video/video_send_stream.h" | 57 #include "webrtc/video/video_send_stream.h" |
| 58 | 58 |
| 59 namespace webrtc { | 59 namespace webrtc { |
| 60 | 60 |
| 61 const int Call::Config::kDefaultStartBitrateBps = 300000; | |
| 62 | |
| 63 namespace { | 61 namespace { |
| 64 | 62 |
| 65 // TODO(nisse): This really begs for a shared context struct. | 63 // TODO(nisse): This really begs for a shared context struct. |
| 66 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, | 64 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, |
| 67 bool transport_cc) { | 65 bool transport_cc) { |
| 68 if (!transport_cc) | 66 if (!transport_cc) |
| 69 return false; | 67 return false; |
| 70 for (const auto& extension : extensions) { | 68 for (const auto& extension : extensions) { |
| 71 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) | 69 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) |
| 72 return true; | 70 return true; |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { | 1280 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { |
| 1283 receive_side_cc_.OnReceivedPacket( | 1281 receive_side_cc_.OnReceivedPacket( |
| 1284 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), | 1282 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), |
| 1285 header); | 1283 header); |
| 1286 } | 1284 } |
| 1287 } | 1285 } |
| 1288 | 1286 |
| 1289 } // namespace internal | 1287 } // namespace internal |
| 1290 | 1288 |
| 1291 } // namespace webrtc | 1289 } // namespace webrtc |
| OLD | NEW |