Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: webrtc/modules/video_coding/protection_bitrate_calculator.cc

Issue 2070343002: Remove ViEncoder::Pause / Start (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698