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

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: 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
(...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
63 // Informs of encoded output. 62 // Informs of encoded output.
64 void UpdateWithEncodedData(const EncodedImage& encoded_image); 63 void UpdateWithEncodedData(const EncodedImage& encoded_image);
65 64
66 private: 65 private:
67 struct EncodedFrameSample; 66 struct EncodedFrameSample;
68 enum { kBitrateAverageWinMs = 1000 }; 67 enum { kBitrateAverageWinMs = 1000 };
69 68
70 Clock* const clock_; 69 Clock* const clock_;
71 VCMProtectionCallback* const protection_callback_; 70 VCMProtectionCallback* const protection_callback_;
72 71
73 rtc::CriticalSection crit_sect_; 72 rtc::CriticalSection crit_sect_;
74 std::unique_ptr<media_optimization::VCMLossProtectionLogic> loss_prot_logic_ 73 std::unique_ptr<media_optimization::VCMLossProtectionLogic> loss_prot_logic_
75 GUARDED_BY(crit_sect_); 74 GUARDED_BY(crit_sect_);
76 size_t max_payload_size_ GUARDED_BY(crit_sect_); 75 size_t max_payload_size_ GUARDED_BY(crit_sect_);
77 76
78 RTC_DISALLOW_COPY_AND_ASSIGN(ProtectionBitrateCalculator); 77 RTC_DISALLOW_COPY_AND_ASSIGN(ProtectionBitrateCalculator);
79 }; 78 };
80 79
81 } // namespace webrtc 80 } // namespace webrtc
82 #endif // WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ 81 #endif // WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/generic_encoder.cc ('k') | webrtc/modules/video_coding/protection_bitrate_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698