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

📄 amrwbapi.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 - Unified Speech Codec interface library
//
// By downloading and installing USC codec, 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.
//
// A speech coding standards promoted by ITU, ETSI, 3GPP and other
// organizations. Implementations of these standards, or the standard enabled
// platforms may require licenses from various entities, including
// Intel Corporation.
//
//
// Purpose: AMRWB speech codec API header.
//
*/

#ifndef AMRWB_API_H
#define AMRWB_API_H

#include <ipps.h>
#include <ippsc.h>
#include "amrwb_types.h"
#ifdef __cplusplus
extern "C" {
#endif

typedef enum _AMRWBCodec_Type{
   AMRWB_CODEC=0
}AMRWBCodec_Type;

typedef enum _AMRWBEncode_Mode{
   AMRWBEncode_DefaultMode=0,
   AMRWBEncode_VAD_Enabled
}AMRWBEncode_Mode;

typedef enum _AMRWBDecode_Mode{
   AMRWBDecode_DefaultMode=0
}AMRWBDecode_Mode;

typedef struct _AMRWBEnc_Params{
   AMRWBCodec_Type codecType;
   int mode;
}AMRWBEnc_Params;

typedef struct _AMRWBDec_Params{
   AMRWBCodec_Type codecType;
   int mode;
}AMRWBDec_Params;

typedef enum{
    APIAMRWB_StsBadCodecType     =   -5,
    APIAMRWB_StsNotInitialized   =   -4,
    APIAMRWB_StsBadArgErr        =   -3,
    APIAMRWB_StsDeactivated      =   -2,
    APIAMRWB_StsErr              =   -1,
    APIAMRWB_StsNoErr            =    0
}APIAMRWB_Status;

struct _AMRWBEncoder_Obj;
struct _AMRWBDecoder_Obj;
typedef struct _AMRWBEncoder_Obj AMRWBEncoder_Obj;
typedef struct _AMRWBDecoder_Obj AMRWBDecoder_Obj;

#if defined( _WIN32 ) || defined ( _WIN64 )
  #define __STDCALL  __stdcall
  #define __CDECL    __cdecl
#else
  #define __STDCALL
  #define __CDECL
#endif

#define   AMRWB_CODECAPI(type,name,arg)                extern type name arg;

/*
                   Functions declarations
*/
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBEncoder_Alloc,
         (const AMRWBEnc_Params *amrwb_Params, unsigned int *pCodecSize))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBDecoder_Alloc,
         (const AMRWBDec_Params *amrwb_Params, unsigned int *pCodecSize))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBEncoder_Init,
         (AMRWBEncoder_Obj* encoderObj, int mode))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBDecoder_Init,
         (AMRWBDecoder_Obj* decoderObj))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBDecoder_GetSize,
         (AMRWBDecoder_Obj* decoderObj, unsigned int *pCodecSize))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBEncoder_GetSize,
         (AMRWBEncoder_Obj* encoderObj, unsigned int *pCodecSize))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBEncode,
         (AMRWBEncoder_Obj* encoderObj, const unsigned short* src, unsigned char* dst,
         AMRWB_Rate_t *rate, int Vad ))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBDecode,
         (AMRWBDecoder_Obj* decoderObj,const unsigned char* src, AMRWB_Rate_t rate,
          RXFrameType rx_type, unsigned short* dst))
AMRWB_CODECAPI( APIAMRWB_Status, apiAMRWBEncoder_Mode,
               (AMRWBEncoder_Obj* encoderObj, int mode))

#ifdef __cplusplus
}
#endif


#endif /* AMRWB_API_H */

⌨️ 快捷键说明

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