git-svn-id: http://webrtc.googlecode.com/svn/trunk@4 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
72
modules/audio_coding/codecs/iSAC/main/test/debugUtility.h
Normal file
72
modules/audio_coding/codecs/iSAC/main/test/debugUtility.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_TEST_DEBUGUTILITY_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_TEST_DEBUGUTILITY_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "utility.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
FILE* res0to4FilePtr;
|
||||
FILE* res4to8FilePtr;
|
||||
FILE* res8to12FilePtr;
|
||||
FILE* res8to16FilePtr;
|
||||
|
||||
FILE* res0to4DecFilePtr;
|
||||
FILE* res4to8DecFilePtr;
|
||||
FILE* res8to12DecFilePtr;
|
||||
FILE* res8to16DecFilePtr;
|
||||
|
||||
FILE* in0to4FilePtr;
|
||||
FILE* in4to8FilePtr;
|
||||
FILE* in8to12FilePtr;
|
||||
FILE* in8to16FilePtr;
|
||||
|
||||
FILE* out0to4FilePtr;
|
||||
FILE* out4to8FilePtr;
|
||||
FILE* out8to12FilePtr;
|
||||
FILE* out8to16FilePtr;
|
||||
|
||||
FILE* fftFilePtr;
|
||||
FILE* fftDecFilePtr;
|
||||
|
||||
FILE* arrivalTime;
|
||||
|
||||
float lastArrivalTime;
|
||||
|
||||
int prevPacketLost;
|
||||
int currPacketLost;
|
||||
int nextPacketLost;
|
||||
|
||||
//double residualSignal4kHZ[240];
|
||||
int packetLossPercent;
|
||||
|
||||
int maxPayloadLB;
|
||||
int maxPayloadUB;
|
||||
int lbBytes;
|
||||
int ubBytes;
|
||||
|
||||
|
||||
}debugStruct;
|
||||
|
||||
|
||||
#define PRINT_ENTROPY_INFO(obj) \
|
||||
do \
|
||||
{ \
|
||||
printf("%10u, %u; ", \
|
||||
obj->bitstr_obj.streamval, obj->bitstr_obj.stream_index); \
|
||||
} while(0)
|
||||
|
||||
int setupDebugStruct(debugStruct* str);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user