niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | /* |
| 12 | * Definitions of statistics data structures for MCU and DSP sides. |
| 13 | */ |
| 14 | |
| 15 | #include "typedefs.h" |
| 16 | |
| 17 | #ifndef NETEQ_STATISTICS_H |
| 18 | #define NETEQ_STATISTICS_H |
| 19 | |
| 20 | /* |
| 21 | * Statistics struct on DSP side |
| 22 | */ |
| 23 | typedef struct |
| 24 | { |
| 25 | |
| 26 | /* variables for in-call statistics; queried through WebRtcNetEQ_GetNetworkStatistics */ |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 27 | uint32_t expandLength; /* number of samples produced through expand */ |
| 28 | uint32_t preemptiveLength; /* number of samples produced through pre-emptive |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 29 | expand */ |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 30 | uint32_t accelerateLength; /* number of samples removed through accelerate */ |
roosa@google.com | b8ba4d8 | 2012-12-14 00:06:18 +0000 | [diff] [blame] | 31 | int addedSamples; /* number of samples inserted in off mode */ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 32 | |
| 33 | /* variables for post-call statistics; queried through WebRtcNetEQ_GetJitterStatistics */ |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 34 | uint32_t expandedVoiceSamples; /* number of voice samples produced through expand */ |
| 35 | uint32_t expandedNoiseSamples; /* number of noise (background) samples produced |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | through expand */ |
| 37 | |
| 38 | } DSPStats_t; |
| 39 | |
turaj@webrtc.org | 92d1f07 | 2013-04-15 16:52:04 +0000 | [diff] [blame^] | 40 | typedef struct { |
| 41 | int preemptive_expand_bgn_samples; |
| 42 | int preemptive_expand_normal_samples; |
| 43 | |
| 44 | int expand_bgn_samples; |
| 45 | int expand_normal_samples; |
| 46 | |
| 47 | int merge_expand_bgn_samples; |
| 48 | int merge_expand_normal_samples; |
| 49 | |
| 50 | int accelerate_bgn_samples; |
| 51 | int accelarate_normal_samples; |
| 52 | } ActivityStats; |
| 53 | |
| 54 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 55 | #endif |
| 56 | |