blob: bba5b06b9640f815ec6403941a285dd7b1aa0847 [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
turaj@webrtc.org92d1f072013-04-15 16:52:04 +000040typedef 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.com470e71d2011-07-07 08:21:25 +000055#endif
56