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

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

#if !defined( __CODECAPI_H__ )
#define __CODECAPI_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <ippsc.h>
#include "g728.h"
typedef enum{
    APIG728_StsBadCodecType     =   -5,
    APIG728_StsNotInitialized   =   -4,
    APIG728_StsBadArgErr        =   -3,
    APIG728_StsDeactivated      =   -2,
    APIG728_StsErr              =   -1,
    APIG728_StsNoErr            =    0
}APIG728_Status;


struct _G728Encoder_Obj;
struct _G728Decoder_Obj;
typedef struct _G728Encoder_Obj G728Encoder_Obj;
typedef struct _G728Decoder_Obj G728Decoder_Obj;


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


G728_CODECAPI( APIG728_Status, apiG728Encoder_Alloc,(unsigned int* objSize))
G728_CODECAPI( APIG728_Status, apiG728Encoder_Init,(G728Encoder_Obj* encoderObj, G728_Rate rate))
G728_CODECAPI( APIG728_Status, apiG728Encoder_GetSize,
         (G728Encoder_Obj* encoderObj, unsigned int *pCodecSize))

G728_CODECAPI( APIG728_Status, apiG728Encode,
         (G728Encoder_Obj* encoderObj, short *src, unsigned char *dst))

G728_CODECAPI( APIG728_Status, apiG728Decoder_Alloc,(unsigned int* objSize))
G728_CODECAPI( APIG728_Status, apiG728Decoder_Init,
              (G728Decoder_Obj* decoderObj, G728_Type type, G728_Rate rate, int pst))
G728_CODECAPI( APIG728_Status, apiG728Decoder_GetSize,
         (G728Decoder_Obj* decoderObj, unsigned int *pCodecSize))

G728_CODECAPI( APIG728_Status, apiG728Decode, (G728Decoder_Obj* decoderObj,
              unsigned char *src, short *dst))

#ifdef __cplusplus
}
#endif


#endif /* __CODECAPI_H__ */

⌨️ 快捷键说明

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