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

📄 decoderapi.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 <math.h>
#include <stdio.h>
#include <ipps.h>
#include <ippsr.h>


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

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

}AuroraDataType;


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

}AuroraRate;


struct DecoderStruct;
typedef struct DecoderStruct AuroraDecoder;

int  InitAuroraDecoder(AuroraDecoder **pCodec, AuroraRate SamplingFrequency, AuroraDataType DecoderInput);
void ReleaseAuroraDecoder(AuroraDecoder *pCodec);
int  ApplyAuroraDecoder_QF(AuroraDecoder *pCodec, unsigned char *pSrc, int InputLength, short *pDst, unsigned char *pDstVad, int StreamEnd);
int  ApplyAuroraDecoder_MF(AuroraDecoder *pCodec, unsigned char *pSrc, int InputLength, short *pDst, unsigned char *pDstVad, int StreamEnd);
int  ApplyAuroraDecoder_DerCal(AuroraDecoder *pCodec, short *pSrc, unsigned char * pSrcVad, int InputLength, short *pDst);

⌨️ 快捷键说明

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