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

📄 g722api.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: G.722.1 speech codec: API header file.
//
*/

#if !defined( __G7221API_H__ )
#define __G7221API_H__
#ifdef __cplusplus
extern "C" {
#endif

typedef enum{
    APIG722_StsBadCodecType     =   -5,
    APIG722_StsNotInitialized   =   -4,
    APIG722_StsBadArgErr        =   -3,
    APIG722_StsDeactivated      =   -2,
    APIG722_StsErr              =   -1,
    APIG722_StsNoErr            =    0
}APIG722_Status;


struct _G722Encoder_Obj;
struct _G722Decoder_Obj;
typedef struct _G722Encoder_Obj G722Encoder_Obj;
typedef struct _G722Decoder_Obj G722Decoder_Obj;


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


G722_CODECAPI( APIG722_Status, apiG722Encoder_Alloc, (unsigned int* objSize))
G722_CODECAPI( APIG722_Status, apiG722Encoder_Init, (G722Encoder_Obj* pEncoderObj))
G722_CODECAPI( APIG722_Status, apiG722Encoder_Free, (G722Encoder_Obj* pEncoderObj))
G722_CODECAPI( APIG722_Status, apiG722Encode, (G722Encoder_Obj* pEncoderObj,
              int nBitsPerFrame, short *pSrc, short *pDst))

G722_CODECAPI( APIG722_Status, apiG722Decoder_Alloc, (unsigned int* objSize))
G722_CODECAPI( APIG722_Status, apiG722Decoder_Init, (G722Decoder_Obj* pDecoderObj))
G722_CODECAPI( APIG722_Status, apiG722Decoder_Free, (G722Decoder_Obj* pDecoderObj))
G722_CODECAPI( APIG722_Status, apiG722Decode, (G722Decoder_Obj* pDecoderObj,
              short errFlag, int nBitsPerFrame, short *pSrc, short *pDst))

G722_CODECAPI(APIG722_Status, apiG722GetObjSize, (void* pObj,
              unsigned int *pObjSize))

#ifdef __cplusplus
}
#endif


#endif /* __CODECAPI_H__ */

⌨️ 快捷键说明

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