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

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_encoder.h

Issue 2661043003: Allow ANA to receive RPLR (recoverable packet loss rate) indications (Closed)
Patch Set: Uncomment thread-checker to fix UT Created 3 years, 9 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) 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const Clock* clock); 168 const Clock* clock);
169 169
170 // Disables audio network adaptor. 170 // Disables audio network adaptor.
171 virtual void DisableAudioNetworkAdaptor(); 171 virtual void DisableAudioNetworkAdaptor();
172 172
173 // Provides uplink packet loss fraction to this encoder to allow it to adapt. 173 // Provides uplink packet loss fraction to this encoder to allow it to adapt.
174 // |uplink_packet_loss_fraction| is in the range [0.0, 1.0]. 174 // |uplink_packet_loss_fraction| is in the range [0.0, 1.0].
175 virtual void OnReceivedUplinkPacketLossFraction( 175 virtual void OnReceivedUplinkPacketLossFraction(
176 float uplink_packet_loss_fraction); 176 float uplink_packet_loss_fraction);
177 177
178 // Provides 1st-order-FEC-recoverable uplink packet loss rate to this encoder
179 // to allow it to adapt.
180 // |uplink_recoverable_packet_loss_fraction| is in the range [0.0, 1.0].
181 virtual void OnReceivedUplinkRecoverablePacketLossFraction(
182 float uplink_recoverable_packet_loss_fraction);
183
178 // Provides target audio bitrate to this encoder to allow it to adapt. 184 // Provides target audio bitrate to this encoder to allow it to adapt.
179 virtual void OnReceivedTargetAudioBitrate(int target_bps); 185 virtual void OnReceivedTargetAudioBitrate(int target_bps);
180 186
181 // Provides target audio bitrate and corresponding probing interval of 187 // Provides target audio bitrate and corresponding probing interval of
182 // the bandwidth estimator to this encoder to allow it to adapt. 188 // the bandwidth estimator to this encoder to allow it to adapt.
183 virtual void OnReceivedUplinkBandwidth( 189 virtual void OnReceivedUplinkBandwidth(
184 int target_audio_bitrate_bps, 190 int target_audio_bitrate_bps,
185 rtc::Optional<int64_t> probing_interval_ms); 191 rtc::Optional<int64_t> probing_interval_ms);
186 192
187 // Provides RTT to this encoder to allow it to adapt. 193 // Provides RTT to this encoder to allow it to adapt.
(...skipping 10 matching lines...) Expand all
198 204
199 protected: 205 protected:
200 // Subclasses implement this to perform the actual encoding. Called by 206 // Subclasses implement this to perform the actual encoding. Called by
201 // Encode(). 207 // Encode().
202 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp, 208 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp,
203 rtc::ArrayView<const int16_t> audio, 209 rtc::ArrayView<const int16_t> audio,
204 rtc::Buffer* encoded) = 0; 210 rtc::Buffer* encoded) = 0;
205 }; 211 };
206 } // namespace webrtc 212 } // namespace webrtc
207 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_ 213 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698