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

📄 gsmamrapi.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: GSMAMR speech codec: API header file.
//
*/

#ifndef GSMAMR_API_H
#define GSMAMR_API_H

#include "gsmamr.h"
#include "gsmamr_types.h"
#ifdef __cplusplus
extern "C" {
/* for C++ */
#endif

typedef enum _GSMAMRCodec_Type{
   GSMAMR_CODEC=0
}GSMAMRCodec_Type;

typedef enum _GSMAMREncode_Mode{
   GSMAMREncode_DefaultMode=0,
   GSMAMREncode_VAD1_Enabled,
   GSMAMREncode_VAD2_Enabled
}GSMAMREncode_Mode;

typedef enum _GSMAMRDecode_Mode{
   GSMAMRDecode_DefaultMode=0
}GSMAMRDecode_Mode;

typedef struct _GSMAMREnc_Params{
   GSMAMRCodec_Type codecType;
   int mode;
}GSMAMREnc_Params;

typedef struct _GSMAMRDec_Params{
   GSMAMRCodec_Type codecType;
   int mode;
}GSMAMRDec_Params;

typedef enum{
    APIGSMAMR_StsBadCodecType     =   -5,
    APIGSMAMR_StsNotInitialized   =   -4,
    APIGSMAMR_StsBadArgErr        =   -3,
    APIGSMAMR_StsDeactivated      =   -2,
    APIGSMAMR_StsErr              =   -1,
    APIGSMAMR_StsNoErr            =    0
}APIGSMAMR_Status;

struct _GSMAMREncoder_Obj;
struct _GSMAMRDecoder_Obj;
typedef struct _GSMAMREncoder_Obj GSMAMREncoder_Obj;
typedef struct _GSMAMRDecoder_Obj GSMAMRDecoder_Obj;

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

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

/*
                   Functions declarations
*/
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMREncoder_Alloc,
         (const GSMAMREnc_Params *gsm_Params, unsigned int *pCodecSize))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMRDecoder_Alloc,
         (const GSMAMRDec_Params *gsm_Params, unsigned int *pCodecSize))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMREncoder_Init,
         (GSMAMREncoder_Obj* encoderObj, unsigned int mode))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMRDecoder_Init,
         (GSMAMRDecoder_Obj* decoderObj, unsigned int mode))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMREncoder_Mode,
         (GSMAMREncoder_Obj* encoderObj, unsigned int mode))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMRDecoder_Mode,
         (GSMAMRDecoder_Obj* decoderObj, unsigned int mode))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMRDecoder_GetSize,
         (GSMAMRDecoder_Obj* decoderObj, unsigned int *pCodecSize))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMREncoder_GetSize,
         (GSMAMREncoder_Obj* encoderObj, unsigned int *pCodecSize))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMREncode,
         (GSMAMREncoder_Obj* encoderObj,const short* src, GSMAMR_Rate_t rate,
          unsigned char* dst, int *pVad  ))
GSMAMR_CODECAPI( APIGSMAMR_Status, apiGSMAMRDecode,
         (GSMAMRDecoder_Obj* decoderObj,const unsigned char* src, GSMAMR_Rate_t rate,
          RXFrameType rx_type, short* dst))

#ifdef __cplusplus
}
#endif


#endif /* GSMAMR_API_H */

⌨️ 快捷键说明

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