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

Side by Side Diff: webrtc/common_types.h

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Next round of comments. 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 | « webrtc/call/audio_send_stream.h ('k') | webrtc/common_types.cc » ('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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 int calls_to_silence_generator; // Number of calls where silence generated, 426 int calls_to_silence_generator; // Number of calls where silence generated,
427 // and NetEq was disengaged from decoding. 427 // and NetEq was disengaged from decoding.
428 int calls_to_neteq; // Number of calls to NetEq. 428 int calls_to_neteq; // Number of calls to NetEq.
429 int decoded_normal; // Number of calls where audio RTP packet decoded. 429 int decoded_normal; // Number of calls where audio RTP packet decoded.
430 int decoded_plc; // Number of calls resulted in PLC. 430 int decoded_plc; // Number of calls resulted in PLC.
431 int decoded_cng; // Number of calls where comfort noise generated due to DTX. 431 int decoded_cng; // Number of calls where comfort noise generated due to DTX.
432 int decoded_plc_cng; // Number of calls resulted where PLC faded to CNG. 432 int decoded_plc_cng; // Number of calls resulted where PLC faded to CNG.
433 int decoded_muted_output; // Number of calls returning a muted state output. 433 int decoded_muted_output; // Number of calls returning a muted state output.
434 }; 434 };
435 435
436 // Statistics related to Audio Network Adaptation.
437 struct ANAStats {
438 ANAStats();
439 ANAStats(const ANAStats&);
440 ~ANAStats();
441 // Number of actions taken by the ANA bitrate controller since the start of
ossu 2017/09/05 10:19:02 Please also include an explanation for what an emp
ivoc 2017/09/06 11:46:16 Done!
442 // the call.
443 rtc::Optional<uint32_t> bitrate_action_counter;
444 // Number of actions taken by the ANA channel controller since the start of
445 // the call.
446 rtc::Optional<uint32_t> channel_action_counter;
447 // Number of actions taken by the ANA DTX controller since the start of the
448 // call.
449 rtc::Optional<uint32_t> dtx_action_counter;
450 // Number of actions taken by the ANA FEC controller since the start of the
451 // call.
452 rtc::Optional<uint32_t> fec_action_counter;
453 // Number of actions taken by the ANA frame length controller since the start
454 // of the call.
455 rtc::Optional<uint32_t> frame_length_action_counter;
456 };
457
436 // ================================================================== 458 // ==================================================================
437 // Video specific types 459 // Video specific types
438 // ================================================================== 460 // ==================================================================
439 461
440 // TODO(nisse): Delete, and switch to fourcc values everywhere? 462 // TODO(nisse): Delete, and switch to fourcc values everywhere?
441 // Supported video types. 463 // Supported video types.
442 enum class VideoType { 464 enum class VideoType {
443 kUnknown, 465 kUnknown,
444 kI420, 466 kI420,
445 kIYUV, 467 kIYUV,
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 bool operator==(const RtpKeepAliveConfig& o) const { 987 bool operator==(const RtpKeepAliveConfig& o) const {
966 return timeout_interval_ms == o.timeout_interval_ms && 988 return timeout_interval_ms == o.timeout_interval_ms &&
967 payload_type == o.payload_type; 989 payload_type == o.payload_type;
968 } 990 }
969 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } 991 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); }
970 }; 992 };
971 993
972 } // namespace webrtc 994 } // namespace webrtc
973 995
974 #endif // WEBRTC_COMMON_TYPES_H_ 996 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « webrtc/call/audio_send_stream.h ('k') | webrtc/common_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698