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

Side by Side Diff: webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h

Issue 2528933002: Adding OnReceivedOverhead to AudioEncoder. (Closed)
Patch Set: fixing and adding unittest Created 4 years 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void SetTargetBitrate(int target_bps) override; 106 void SetTargetBitrate(int target_bps) override;
107 107
108 bool EnableAudioNetworkAdaptor(const std::string& config_string, 108 bool EnableAudioNetworkAdaptor(const std::string& config_string,
109 const Clock* clock) override; 109 const Clock* clock) override;
110 void DisableAudioNetworkAdaptor() override; 110 void DisableAudioNetworkAdaptor() override;
111 void OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) override; 111 void OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) override;
112 void OnReceivedUplinkPacketLossFraction( 112 void OnReceivedUplinkPacketLossFraction(
113 float uplink_packet_loss_fraction) override; 113 float uplink_packet_loss_fraction) override;
114 void OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) override; 114 void OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) override;
115 void OnReceivedRtt(int rtt_ms) override; 115 void OnReceivedRtt(int rtt_ms) override;
116 void OnReceivedOverhead(size_t overhead_bytes_per_packet) override;
116 void SetReceiverFrameLengthRange(int min_frame_length_ms, 117 void SetReceiverFrameLengthRange(int min_frame_length_ms,
117 int max_frame_length_ms) override; 118 int max_frame_length_ms) override;
118 rtc::ArrayView<const int> supported_frame_lengths_ms() const { 119 rtc::ArrayView<const int> supported_frame_lengths_ms() const {
119 return config_.supported_frame_lengths_ms; 120 return config_.supported_frame_lengths_ms;
120 } 121 }
121 122
122 // Getters for testing. 123 // Getters for testing.
123 double packet_loss_rate() const { return packet_loss_rate_; } 124 double packet_loss_rate() const { return packet_loss_rate_; }
124 ApplicationMode application() const { return config_.application; } 125 ApplicationMode application() const { return config_.application; }
125 bool fec_enabled() const { return config_.fec_enabled; } 126 bool fec_enabled() const { return config_.fec_enabled; }
(...skipping 30 matching lines...) Expand all
156 std::unique_ptr<PacketLossFractionSmoother> packet_loss_fraction_smoother_; 157 std::unique_ptr<PacketLossFractionSmoother> packet_loss_fraction_smoother_;
157 AudioNetworkAdaptorCreator audio_network_adaptor_creator_; 158 AudioNetworkAdaptorCreator audio_network_adaptor_creator_;
158 std::unique_ptr<AudioNetworkAdaptor> audio_network_adaptor_; 159 std::unique_ptr<AudioNetworkAdaptor> audio_network_adaptor_;
159 160
160 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); 161 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus);
161 }; 162 };
162 163
163 } // namespace webrtc 164 } // namespace webrtc
164 165
165 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ 166 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698