blob: f355b58057ee8d90582e9ede1c3cfc509898582b [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 */
pbos@webrtc.org0946a562013-04-09 00:28:06 +000027 uint32_t expandLength; /* number of samples produced through expand */
28 uint32_t preemptiveLength; /* number of samples produced through pre-emptive
niklase@google.com470e71d2011-07-07 08:21:25 +000029 expand */
pbos@webrtc.org0946a562013-04-09 00:28:06 +000030 uint32_t 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 */
pbos@webrtc.org0946a562013-04-09 00:28:06 +000034 uint32_t expandedVoiceSamples; /* number of voice samples produced through expand */
35 uint32_t expandedNoiseSamples; /* number of noise (background) samples produced
niklase@google.com470e71d2011-07-07 08:21:25 +000036 through expand */
37
38} DSPStats_t;
39
niklase@google.com470e71d2011-07-07 08:21:25 +000040#endif
41