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

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

Issue 2070343002: Remove ViEncoder::Pause / Start (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove from header file. 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
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Returns target rate for the encoder given the channel parameters. 53 // Returns target rate for the encoder given the channel parameters.
54 // Inputs: estimated_bitrate_bps - the estimated network bitrate in bits/s. 54 // Inputs: estimated_bitrate_bps - the estimated network bitrate in bits/s.
55 // actual_framerate - encoder frame rate. 55 // actual_framerate - encoder frame rate.
56 // fraction_lost - packet loss rate in % in the network. 56 // fraction_lost - packet loss rate in % in the network.
57 // round_trip_time_ms - round trip time in milliseconds. 57 // round_trip_time_ms - round trip time in milliseconds.
58 uint32_t SetTargetRates(uint32_t estimated_bitrate_bps, 58 uint32_t SetTargetRates(uint32_t estimated_bitrate_bps,
59 int actual_framerate, 59 int actual_framerate,
60 uint8_t fraction_lost, 60 uint8_t fraction_lost,
61 int64_t round_trip_time_ms); 61 int64_t round_trip_time_ms);
62 62 uint32_t GetEncoderTargetRate() const;
63 // Informs of encoded output. 63 // Informs of encoded output.
64 void UpdateWithEncodedData(const EncodedImage& encoded_image); 64 void UpdateWithEncodedData(const EncodedImage& encoded_image);
65 65
66 private: 66 private:
67 struct EncodedFrameSample; 67 struct EncodedFrameSample;
68 enum { kBitrateAverageWinMs = 1000 }; 68 enum { kBitrateAverageWinMs = 1000 };
69 69
70 Clock* const clock_; 70 Clock* const clock_;
71 VCMProtectionCallback* const protection_callback_; 71 VCMProtectionCallback* const protection_callback_;
72 72
73 rtc::CriticalSection crit_sect_; 73 rtc::CriticalSection crit_sect_;
74 std::unique_ptr<media_optimization::VCMLossProtectionLogic> loss_prot_logic_ 74 std::unique_ptr<media_optimization::VCMLossProtectionLogic> loss_prot_logic_
75 GUARDED_BY(crit_sect_); 75 GUARDED_BY(crit_sect_);
76 size_t max_payload_size_ GUARDED_BY(crit_sect_); 76 size_t max_payload_size_ GUARDED_BY(crit_sect_);
77 uint32_t last_encoder_target_rate_ GUARDED_BY(crit_sect_);
77 78
78 RTC_DISALLOW_COPY_AND_ASSIGN(ProtectionBitrateCalculator); 79 RTC_DISALLOW_COPY_AND_ASSIGN(ProtectionBitrateCalculator);
79 }; 80 };
80 81
81 } // namespace webrtc 82 } // namespace webrtc
82 #endif // WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ 83 #endif // WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698