⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 util.h

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 H
字号:
/*////////////////////////////////////////////////////////////////////////
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2005 Intel Corporation. All Rights Reserved.
//
//   Intel(R)  Integrated Performance Primitives
//
//     USC speech codec sample
//
// By downloading and installing this sample, you hereby agree that the
// accompanying Materials are being provided to you under the terms and
// conditions of the End User License Agreement for the Intel(R) Integrated
// Performance Primitives product previously accepted by you. Please refer
// to the file ipplic.htm located in the root directory of your Intel(R) IPP
// product installation for more information.
//
// Purpose: Auxiliary functions header file.
//
////////////////////////////////////////////////////////////////////////*/
#ifndef __UTIL_H__
#define __UTIL_H__

#define LINIAR_PCM        1
#define ALAW_PCM          6
#define MULAW_PCM         7
typedef struct _USCCodec {
   USC_MemBank*        pBanks;
   USC_Handle          hUSCCodec;
}USCCodec;
#define MAX_CHANNELS      2 /*Stereo file*/
#define MAX_FILENAME_LEN      256
typedef struct _USCParams {
   int                 nChannels;
   USC_CodecInfo       pInfo;
   USC_Fxns            *USC_Fns;
   int                 nbanks;
   USCCodec            uCodec[MAX_CHANNELS];
}USCParams;

typedef struct _CommandLineParams {
   char inputFileName[MAX_FILENAME_LEN];
   char outputFileName[MAX_FILENAME_LEN];
   char logFileName[MAX_FILENAME_LEN];
   char csvFileName[MAX_FILENAME_LEN];
   char codecName[MAX_FILENAME_LEN];
   char TimingCodecName[MAX_FILENAME_LEN];
   int  bitrate;
   int  Vad;
   int  enumerate;
   int  optionReport;
   int  puttocsv;
   int  puttologfile;
   int  timing;
   int  nRepeat;
   int  nOutputPCMType;
}CommandLineParams;

void ReadCommandLine(CommandLineParams *params, int argc, char *argv[]);
void SetCommandLineByDefault(CommandLineParams *params);
void PrintUsage();
int OutputString2CSVFile(CommandLineParams *params, USC_CodecInfo *pInfo, float spSeconds,float speed_in_mhz);
int OutputDuplexString2CSVFile(CommandLineParams *params, USC_CodecInfo *pInfo, float spSeconds,
                               float ENCspeed_in_mhz, float DECspeed_in_mhz);
int OutputSysInfo2CSVFile(CommandLineParams *params);
int Timing();
#endif/* __UTIL_H__*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -