| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 |
| 11 #include <webrtc/modules/video_coding/protection_bitrate_calculator.h> | 11 #include "webrtc/modules/video_coding/protection_bitrate_calculator.h" |
| 12 | 12 |
| 13 namespace webrtc { | 13 namespace webrtc { |
| 14 | 14 |
| 15 using rtc::CritScope; | 15 using rtc::CritScope; |
| 16 | 16 |
| 17 struct ProtectionBitrateCalculator::EncodedFrameSample { | 17 struct ProtectionBitrateCalculator::EncodedFrameSample { |
| 18 EncodedFrameSample(size_t size_bytes, | 18 EncodedFrameSample(size_t size_bytes, |
| 19 uint32_t timestamp, | 19 uint32_t timestamp, |
| 20 int64_t time_complete_ms) | 20 int64_t time_complete_ms) |
| 21 : size_bytes(size_bytes), | 21 : size_bytes(size_bytes), |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 min_packets_per_frame, clock_->TimeInMilliseconds()); | 189 min_packets_per_frame, clock_->TimeInMilliseconds()); |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 if (!delta_frame && encoded_length > 0) { | 192 if (!delta_frame && encoded_length > 0) { |
| 193 loss_prot_logic_->UpdateKeyFrameSize(static_cast<float>(encoded_length)); | 193 loss_prot_logic_->UpdateKeyFrameSize(static_cast<float>(encoded_length)); |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 } // namespace webrtc | 198 } // namespace webrtc |
| OLD | NEW |