| 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 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 capture_time_ms_(0), | 117 capture_time_ms_(0), |
| 118 last_timestamp_time_ms_(0), | 118 last_timestamp_time_ms_(0), |
| 119 media_has_been_sent_(false), | 119 media_has_been_sent_(false), |
| 120 last_packet_marker_bit_(false), | 120 last_packet_marker_bit_(false), |
| 121 csrcs_(), | 121 csrcs_(), |
| 122 rtx_(kRtxOff), | 122 rtx_(kRtxOff), |
| 123 rtp_overhead_bytes_per_packet_(0), | 123 rtp_overhead_bytes_per_packet_(0), |
| 124 retransmission_rate_limiter_(retransmission_rate_limiter), | 124 retransmission_rate_limiter_(retransmission_rate_limiter), |
| 125 overhead_observer_(overhead_observer), | 125 overhead_observer_(overhead_observer), |
| 126 send_side_bwe_with_overhead_( | 126 send_side_bwe_with_overhead_( |
| 127 webrtc::field_trial::FindFullName( | 127 webrtc::field_trial::IsEnabled("WebRTC-SendSideBwe-WithOverhead")) { |
| 128 "WebRTC-SendSideBwe-WithOverhead") == "Enabled") { | |
| 129 // This random initialization is not intended to be cryptographic strong. | 128 // This random initialization is not intended to be cryptographic strong. |
| 130 timestamp_offset_ = random_.Rand<uint32_t>(); | 129 timestamp_offset_ = random_.Rand<uint32_t>(); |
| 131 // Random start, 16 bits. Can't be 0. | 130 // Random start, 16 bits. Can't be 0. |
| 132 sequence_number_rtx_ = random_.Rand(1, kMaxInitRtpSeqNumber); | 131 sequence_number_rtx_ = random_.Rand(1, kMaxInitRtpSeqNumber); |
| 133 sequence_number_ = random_.Rand(1, kMaxInitRtpSeqNumber); | 132 sequence_number_ = random_.Rand(1, kMaxInitRtpSeqNumber); |
| 134 | 133 |
| 135 // Store FlexFEC packets in the packet history data structure, so they can | 134 // Store FlexFEC packets in the packet history data structure, so they can |
| 136 // be found when paced. | 135 // be found when paced. |
| 137 if (flexfec_sender) { | 136 if (flexfec_sender) { |
| 138 flexfec_packet_history_.SetStorePacketsStatus( | 137 flexfec_packet_history_.SetStorePacketsStatus( |
| (...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { | 1274 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { |
| 1276 return; | 1275 return; |
| 1277 } | 1276 } |
| 1278 rtp_overhead_bytes_per_packet_ = packet.headers_size(); | 1277 rtp_overhead_bytes_per_packet_ = packet.headers_size(); |
| 1279 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; | 1278 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; |
| 1280 } | 1279 } |
| 1281 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); | 1280 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); |
| 1282 } | 1281 } |
| 1283 | 1282 |
| 1284 } // namespace webrtc | 1283 } // namespace webrtc |
| OLD | NEW |