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 */ |
| 27 | WebRtc_UWord32 expandLength; /* number of samples produced through expand */ |
| 28 | WebRtc_UWord32 preemptiveLength; /* number of samples produced through pre-emptive |
| 29 | expand */ |
| 30 | WebRtc_UWord32 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 */ |
| 34 | WebRtc_UWord32 expandedVoiceSamples; /* number of voice samples produced through expand */ |
| 35 | WebRtc_UWord32 expandedNoiseSamples; /* number of noise (background) samples produced |
| 36 | through expand */ |
| 37 | |
| 38 | } DSPStats_t; |
| 39 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 40 | #endif |
| 41 | |