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

Side by Side Diff: webrtc/modules/bitrate_controller/bitrate_controller_impl.h

Issue 1922483002: De-flake VideoSendStreamTest.ReconfigureBitratesSetsEncoderBitratesCorrectly (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Feedback fixes Created 4 years, 7 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) 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 * Usage: this class will register multiple RtcpBitrateObserver's one at each 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each
(...skipping 16 matching lines...) Expand all
27 27
28 class BitrateControllerImpl : public BitrateController { 28 class BitrateControllerImpl : public BitrateController {
29 public: 29 public:
30 BitrateControllerImpl(Clock* clock, BitrateObserver* observer); 30 BitrateControllerImpl(Clock* clock, BitrateObserver* observer);
31 virtual ~BitrateControllerImpl() {} 31 virtual ~BitrateControllerImpl() {}
32 32
33 bool AvailableBandwidth(uint32_t* bandwidth) const override; 33 bool AvailableBandwidth(uint32_t* bandwidth) const override;
34 34
35 RtcpBandwidthObserver* CreateRtcpBandwidthObserver() override; 35 RtcpBandwidthObserver* CreateRtcpBandwidthObserver() override;
36 36
37 // Deprecated
37 void SetStartBitrate(int start_bitrate_bps) override; 38 void SetStartBitrate(int start_bitrate_bps) override;
39 // Deprecated
38 void SetMinMaxBitrate(int min_bitrate_bps, int max_bitrate_bps) override; 40 void SetMinMaxBitrate(int min_bitrate_bps, int max_bitrate_bps) override;
39 41
42 void SetBitrates(int start_bitrate_bps,
43 int min_bitrate_bps,
44 int max_bitrate_bps) override;
45
40 void UpdateDelayBasedEstimate(uint32_t bitrate_bps) override; 46 void UpdateDelayBasedEstimate(uint32_t bitrate_bps) override;
41 47
42 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override; 48 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override;
43 49
44 void SetEventLog(RtcEventLog* event_log) override; 50 void SetEventLog(RtcEventLog* event_log) override;
45 51
46 int64_t TimeUntilNextProcess() override; 52 int64_t TimeUntilNextProcess() override;
47 void Process() override; 53 void Process() override;
48 54
49 private: 55 private:
(...skipping 29 matching lines...) Expand all
79 85
80 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); 86 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_);
81 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); 87 uint8_t last_fraction_loss_ GUARDED_BY(critsect_);
82 int64_t last_rtt_ms_ GUARDED_BY(critsect_); 88 int64_t last_rtt_ms_ GUARDED_BY(critsect_);
83 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); 89 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_);
84 90
85 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); 91 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl);
86 }; 92 };
87 } // namespace webrtc 93 } // namespace webrtc
88 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ 94 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698