📄 g722sbapi.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 speech codec: API header file.
//
*/
#if !defined( __G722SBAPI_H__ )
#define __G722SBAPI_H__
#ifdef __cplusplus
extern "C" {
/* for C++ */
#endif
#define G722_SBAD_ENC_KEY 0xecd722
#define G722_SBAD_DEC_KEY 0xdec722
typedef struct {
int objSize;
int key;
unsigned int mode; /* mode's */
unsigned int rat: 1; /* decode rate: 1-64kbit/s, 2-56kbit/s, 3-48kbit/s other bits reserved.*/
}G722SB_Obj_t;
typedef enum{
API_G722SB_StsBadCodecType = -5,
API_G722SB_StsNotInitialized = -4,
API_G722SB_StsBadArgErr = -3,
API_G722SB_StsDeactivated = -2,
API_G722SB_StsErr = -1,
API_G722SB_StsNoErr = 0
}API_G722SB_Status;
struct _G722SB_Encoder_Obj;
struct _G722SB_Decoder_Obj;
typedef struct _G722SB_Encoder_Obj G722SB_Encoder_Obj;
typedef struct _G722SB_Decoder_Obj G722SB_Decoder_Obj;
#define G722SB_CODECAPI( type,name,arg ) extern type name arg;
G722SB_CODECAPI( API_G722SB_Status, apiG722SBEncoder_Alloc, (int *pSize))
G722SB_CODECAPI( API_G722SB_Status, apiG722SBEncoder_Init, (G722SB_Encoder_Obj* encoderObj, unsigned int mode_qmf))
G722SB_CODECAPI( API_G722SB_Status, apiG722SBEncode, (G722SB_Encoder_Obj* encoderObj,
int lenSamples, short *pSrc, char *pDst ))
G722SB_CODECAPI( API_G722SB_Status, apiG722SBDecoder_Alloc, (int *pSize))
G722SB_CODECAPI( API_G722SB_Status, apiG722SBDecoder_Init, (G722SB_Decoder_Obj* decoderObj, unsigned int mode_qmf))
G722SB_CODECAPI( API_G722SB_Status, apiG722SBDecode, (G722SB_Decoder_Obj* decoderObj,
int lenBitstream, short mode, char *pSrc, short *pDst ))
#ifdef __cplusplus
}
#endif
#endif /* __G722SBAPI_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -