| 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 #ifdef HAVE_MEDIA |
| 61 const int Call::Config::kDefaultStartBitrateBps = 300000; | 62 const int Call::Config::kDefaultStartBitrateBps = 300000; |
| 63 #endif |
| 62 | 64 |
| 63 namespace { | 65 namespace { |
| 64 | 66 |
| 65 // TODO(nisse): This really begs for a shared context struct. | 67 // TODO(nisse): This really begs for a shared context struct. |
| 66 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, | 68 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, |
| 67 bool transport_cc) { | 69 bool transport_cc) { |
| 68 if (!transport_cc) | 70 if (!transport_cc) |
| 69 return false; | 71 return false; |
| 70 for (const auto& extension : extensions) { | 72 for (const auto& extension : extensions) { |
| 71 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) | 73 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { | 1284 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { |
| 1283 receive_side_cc_.OnReceivedPacket( | 1285 receive_side_cc_.OnReceivedPacket( |
| 1284 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), | 1286 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), |
| 1285 header); | 1287 header); |
| 1286 } | 1288 } |
| 1287 } | 1289 } |
| 1288 | 1290 |
| 1289 } // namespace internal | 1291 } // namespace internal |
| 1290 | 1292 |
| 1291 } // namespace webrtc | 1293 } // namespace webrtc |
| OLD | NEW |