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

Side by Side Diff: webrtc/modules/audio_coding/acm2/call_statistics.h

Issue 2341293002: Add new decoding statistics for muted output (Closed)
Patch Set: Updates after reviews Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 19 matching lines...) Expand all
30 namespace webrtc { 30 namespace webrtc {
31 31
32 namespace acm2 { 32 namespace acm2 {
33 33
34 class CallStatistics { 34 class CallStatistics {
35 public: 35 public:
36 CallStatistics() {} 36 CallStatistics() {}
37 ~CallStatistics() {} 37 ~CallStatistics() {}
38 38
39 // Call this method to indicate that NetEq engaged in decoding. |speech_type| 39 // Call this method to indicate that NetEq engaged in decoding. |speech_type|
40 // is the audio-type according to NetEq. 40 // is the audio-type according to NetEq, and |muted| indicates if the decoded
41 void DecodedByNetEq(AudioFrame::SpeechType speech_type); 41 // frame was produced in muted state.
42 void DecodedByNetEq(AudioFrame::SpeechType speech_type, bool muted);
42 43
43 // Call this method to indicate that a decoding call resulted in generating 44 // Call this method to indicate that a decoding call resulted in generating
44 // silence, i.e. call to NetEq is bypassed and the output audio is zero. 45 // silence, i.e. call to NetEq is bypassed and the output audio is zero.
45 void DecodedBySilenceGenerator(); 46 void DecodedBySilenceGenerator();
46 47
47 // Get statistics for decoding. The statistics include the number of calls to 48 // Get statistics for decoding. The statistics include the number of calls to
48 // NetEq and silence generator, as well as the type of speech pulled of off 49 // NetEq and silence generator, as well as the type of speech pulled of off
49 // NetEq, c.f. declaration of AudioDecodingCallStats for detailed description. 50 // NetEq, c.f. declaration of AudioDecodingCallStats for detailed description.
50 const AudioDecodingCallStats& GetDecodingStatistics() const; 51 const AudioDecodingCallStats& GetDecodingStatistics() const;
51 52
52 private: 53 private:
53 // Reset the decoding statistics. 54 // Reset the decoding statistics.
54 void ResetDecodingStatistics(); 55 void ResetDecodingStatistics();
55 56
56 AudioDecodingCallStats decoding_stat_; 57 AudioDecodingCallStats decoding_stat_;
57 }; 58 };
58 59
59 } // namespace acm2 60 } // namespace acm2
60 61
61 } // namespace webrtc 62 } // namespace webrtc
62 63
63 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_CALL_STATISTICS_H_ 64 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_CALL_STATISTICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698