• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_TEST_DEBUGUTILITY_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_TEST_DEBUGUTILITY_H_
13 
14 #include <stdio.h>
15 #include <string.h>
16 #include "utility.h"
17 
18 typedef struct
19 {
20     FILE*  res0to4FilePtr;
21     FILE*  res4to8FilePtr;
22     FILE*  res8to12FilePtr;
23     FILE*  res8to16FilePtr;
24 
25     FILE*  res0to4DecFilePtr;
26     FILE*  res4to8DecFilePtr;
27     FILE*  res8to12DecFilePtr;
28     FILE*  res8to16DecFilePtr;
29 
30     FILE*  in0to4FilePtr;
31     FILE*  in4to8FilePtr;
32     FILE*  in8to12FilePtr;
33     FILE*  in8to16FilePtr;
34 
35     FILE*  out0to4FilePtr;
36     FILE*  out4to8FilePtr;
37     FILE*  out8to12FilePtr;
38     FILE*  out8to16FilePtr;
39 
40     FILE*  fftFilePtr;
41     FILE*  fftDecFilePtr;
42 
43     FILE*  arrivalTime;
44 
45     float  lastArrivalTime;
46 
47     int    prevPacketLost;
48     int    currPacketLost;
49     int    nextPacketLost;
50 
51     //double residualSignal4kHZ[240];
52     int    packetLossPercent;
53 
54     int maxPayloadLB;
55     int maxPayloadUB;
56     int lbBytes;
57     int ubBytes;
58 
59 
60 }debugStruct;
61 
62 
63 #define PRINT_ENTROPY_INFO(obj)                                         \
64     do                                                                  \
65     {                                                                   \
66         printf("%10u, %u; ",                                            \
67             obj->bitstr_obj.streamval, obj->bitstr_obj.stream_index);   \
68     } while(0)
69 
70 int setupDebugStruct(debugStruct* str);
71 
72 #endif