| 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 30 matching lines...) Expand all Loading... |
| 41 // controller is disabled. | 41 // controller is disabled. |
| 42 rtc::Optional<uint32_t> channel_action_counter; | 42 rtc::Optional<uint32_t> channel_action_counter; |
| 43 // Number of actions taken by the ANA DTX controller since the start of the | 43 // Number of actions taken by the ANA DTX controller since the start of the |
| 44 // call. If this value is not set, it indicates that the DTX controller is | 44 // call. If this value is not set, it indicates that the DTX controller is |
| 45 // disabled. | 45 // disabled. |
| 46 rtc::Optional<uint32_t> dtx_action_counter; | 46 rtc::Optional<uint32_t> dtx_action_counter; |
| 47 // Number of actions taken by the ANA FEC controller since the start of the | 47 // Number of actions taken by the ANA FEC controller since the start of the |
| 48 // call. If this value is not set, it indicates that the FEC controller is | 48 // call. If this value is not set, it indicates that the FEC controller is |
| 49 // disabled. | 49 // disabled. |
| 50 rtc::Optional<uint32_t> fec_action_counter; | 50 rtc::Optional<uint32_t> fec_action_counter; |
| 51 // Number of actions taken by the ANA frame length controller since the start | 51 // Number of times the ANA frame length controller decided to increase the |
| 52 // of the call. If this value is not set, it indicates that the frame length | 52 // frame length since the start of the call. If this value is not set, it |
| 53 // controller is disabled. | 53 // indicates that the frame length controller is disabled. |
| 54 rtc::Optional<uint32_t> frame_length_action_counter; | 54 rtc::Optional<uint32_t> frame_length_increase_counter; |
| 55 // Number of times the ANA frame length controller decided to decrease the |
| 56 // frame length since the start of the call. If this value is not set, it |
| 57 // indicates that the frame length controller is disabled. |
| 58 rtc::Optional<uint32_t> frame_length_decrease_counter; |
| 59 // The uplink packet loss fractions as set by the ANA FEC controller. If this |
| 60 // value is not set, it indicates that the ANA FEC controller is not active. |
| 61 rtc::Optional<float> uplink_packet_loss_fraction; |
| 55 }; | 62 }; |
| 56 | 63 |
| 57 // This is the interface class for encoders in AudioCoding module. Each codec | 64 // This is the interface class for encoders in AudioCoding module. Each codec |
| 58 // type must have an implementation of this class. | 65 // type must have an implementation of this class. |
| 59 class AudioEncoder { | 66 class AudioEncoder { |
| 60 public: | 67 public: |
| 61 // Used for UMA logging of codec usage. The same codecs, with the | 68 // Used for UMA logging of codec usage. The same codecs, with the |
| 62 // same values, must be listed in | 69 // same values, must be listed in |
| 63 // src/tools/metrics/histograms/histograms.xml in chromium to log | 70 // src/tools/metrics/histograms/histograms.xml in chromium to log |
| 64 // correct values. | 71 // correct values. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 242 |
| 236 protected: | 243 protected: |
| 237 // Subclasses implement this to perform the actual encoding. Called by | 244 // Subclasses implement this to perform the actual encoding. Called by |
| 238 // Encode(). | 245 // Encode(). |
| 239 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp, | 246 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp, |
| 240 rtc::ArrayView<const int16_t> audio, | 247 rtc::ArrayView<const int16_t> audio, |
| 241 rtc::Buffer* encoded) = 0; | 248 rtc::Buffer* encoded) = 0; |
| 242 }; | 249 }; |
| 243 } // namespace webrtc | 250 } // namespace webrtc |
| 244 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ | 251 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ |
| OLD | NEW |