blob: 727b10957794f8dd2263c6ffe52d09f34e5f4857 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
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 */
23typedef 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.comb8ba4d82012-12-14 00:06:18 +000031 int addedSamples; /* number of samples inserted in off mode */
niklase@google.com470e71d2011-07-07 08:21:25 +000032
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.com470e71d2011-07-07 08:21:25 +000040#endif
41