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

📄 encoderapi.h

📁 Intel开发的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) 2003-2006 Intel Corporation. All Rights Reserved.
//
//     Intel(R) Integrated Performance Primitives Advanced Aurora Sample for Windows*
//
//   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 ippEULA.rtf located in the root directory of your Intel(R) IPP
//   product installation for more information.
//
//   ES 202 050 v1.1.1 is the international standard promoted by ETSI
//   and other organizations. Implementations of these standards, or the standard
//   enabled platforms may require licenses from various entities, including
//   Intel Corporation.
//
*/

#include <ipps.h>
#include <ippsr.h>
#include <ippcore.h>

#define NUM_CODEBOOK            7
#define NUM_MULTI_BYTE         144
#define NUM_CEP_COEFF          13

#define FRAME_LEN_8         200
#define FRAME_LEN_16        400

#define FRAME_SHIFT_8       80
#define FRAME_SHIFT_16      160

typedef enum _AuroraDataType{
    WAVEFORM = 0,
    FEATURE  = 1,
    QUANTIZED = 2,
    MULTIFRAME = 4

}AuroraDataType;


typedef enum _AuroraRate{
    r8KHz = 0,
    r11KHz = 1,
    r16KHz = 2

}AuroraRate;

struct EncoderStruct;
typedef struct EncoderStruct AuroraEncoder;


int  InitAuroraEncoder(AuroraEncoder **pCodec, AuroraRate SamplingFrequency, AuroraDataType EncoderInput,
                          AuroraDataType EncoderOutput);
void ReleaseAuroraEncoder(AuroraEncoder *pCodec);
int  ApplyAuroraEncoder_WW(AuroraEncoder *pCodec, short *pSrc, int InputLength,
                           short *pDst,int StreamEnd);
int  ApplyAuroraEncoder_WF(AuroraEncoder *pCodec, short *pSrc, int InputLength,
                           short *pDst, unsigned char *pDstVad,int StreamEnd);
int  ApplyAuroraEncoder_WQ(AuroraEncoder *pCodec, short *pSrc, int InputLength,
                           unsigned char *pDst,int StreamEnd);
int  ApplyAuroraEncoder_WM(AuroraEncoder *pCodec, short *pSrc, int InputLength,
                           unsigned char *pDst,int StreamEnd);
int  ApplyAuroraEncoder_FQ(AuroraEncoder *pCodec, short *pSrc, unsigned char * pSrcVad,
                           int InputLength, unsigned char *pDst,int StreamEnd);
int  ApplyAuroraEncoder_FM(AuroraEncoder *pCodec, short *pSrc, unsigned char * pSrcVad,
                           int InputLength, unsigned char *pDst,int StreamEnd);

⌨️ 快捷键说明

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