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

Side by Side Diff: webrtc/api/audio_codecs/audio_encoder.h

Issue 3007243002: Add and modify a few ANA stats. (Closed)
Patch Set: Rebase. Created 3 years, 3 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
« no previous file with comments | « no previous file | webrtc/api/statstypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/statstypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698