| OLD | NEW |
| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 float uplink_packet_loss_fraction) override; | 109 float uplink_packet_loss_fraction) override; |
| 110 void OnReceivedUplinkRecoverablePacketLossFraction( | 110 void OnReceivedUplinkRecoverablePacketLossFraction( |
| 111 float uplink_recoverable_packet_loss_fraction) override; | 111 float uplink_recoverable_packet_loss_fraction) override; |
| 112 void OnReceivedUplinkBandwidth( | 112 void OnReceivedUplinkBandwidth( |
| 113 int target_audio_bitrate_bps, | 113 int target_audio_bitrate_bps, |
| 114 rtc::Optional<int64_t> probing_interval_ms) override; | 114 rtc::Optional<int64_t> probing_interval_ms) 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 OnReceivedOverhead(size_t overhead_bytes_per_packet) override; |
| 117 void SetReceiverFrameLengthRange(int min_frame_length_ms, | 117 void SetReceiverFrameLengthRange(int min_frame_length_ms, |
| 118 int max_frame_length_ms) override; | 118 int max_frame_length_ms) override; |
| 119 AudioEncoderStats GetStats() const override; |
| 119 rtc::ArrayView<const int> supported_frame_lengths_ms() const { | 120 rtc::ArrayView<const int> supported_frame_lengths_ms() const { |
| 120 return config_.supported_frame_lengths_ms; | 121 return config_.supported_frame_lengths_ms; |
| 121 } | 122 } |
| 122 | 123 |
| 123 // Getters for testing. | 124 // Getters for testing. |
| 124 float packet_loss_rate() const { return packet_loss_rate_; } | 125 float packet_loss_rate() const { return packet_loss_rate_; } |
| 125 AudioEncoderOpusConfig::ApplicationMode application() const { | 126 AudioEncoderOpusConfig::ApplicationMode application() const { |
| 126 return config_.application; | 127 return config_.application; |
| 127 } | 128 } |
| 128 bool fec_enabled() const { return config_.fec_enabled; } | 129 bool fec_enabled() const { return config_.fec_enabled; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 rtc::Optional<size_t> overhead_bytes_per_packet_; | 173 rtc::Optional<size_t> overhead_bytes_per_packet_; |
| 173 const std::unique_ptr<SmoothingFilter> bitrate_smoother_; | 174 const std::unique_ptr<SmoothingFilter> bitrate_smoother_; |
| 174 rtc::Optional<int64_t> bitrate_smoother_last_update_time_; | 175 rtc::Optional<int64_t> bitrate_smoother_last_update_time_; |
| 175 | 176 |
| 176 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); | 177 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 } // namespace webrtc | 180 } // namespace webrtc |
| 180 | 181 |
| 181 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ | 182 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ |
| OLD | NEW |