📄 liblfadec.h
字号:
/**************************************************************************** (C) copyright Coding Technologies (2007) All Rights Reserved This software module was developed by Coding Technologies (CT). This is company confidential information and the property of CT, and can not be reproduced or disclosed in any form without written authorization of CT. Those intending to use this software module for other purposes are advised that this infringe existing or pending patents. CT has no liability for use of this software module or derivatives thereof in any implementation. Copyright is not released for any means. CT retains full right to use the code for its own purpose, assign or sell the code to a third party and to inhibit any user or third party from using the code. This copyright notice must be included in all copies or derivative works. $Id: liblfadec.h,v 1.1.2.7 2007/01/18 14:02:21 boe Exp $*******************************************************************************//*! \file \brief DAB (LFA) aacPlus Decoder Library Interface Functions \author Reinhold Boehm*/#ifndef _LFADECLIB_H_#define _LFADECLIB_H_#ifndef __LFADEC_DLL__#define LFADECSTATIC#endif#ifndef LFADECSTATIC #ifdef LFADECDLL_EXPORTS #define LFADEC_EXTERN extern __declspec( dllexport ) #else #define LFADEC_EXTERN extern __declspec( dllimport ) #endif#else #define LFADEC_EXTERN extern#endif#ifdef WIN32 #define LFADEC_API __stdcall#else #define LFADEC_API#endif#if (defined WIN32 && !defined __ICL) #pragma comment(linker, "-nodefaultlib:libmmt.lib") #pragma comment(linker, "-nodefaultlib:libircmt.lib") #pragma comment(linker, "-nodefaultlib:svml_disp.lib")#endif#ifdef __cplusplusextern "C" {#endiftypedef void* HANDLE_LFADECODER;/*! \brief LFA Decoder return values*/typedef enum ENUM_LFADEC_ERROR { LFADEC_OK = 0, LFADEC_ERROR_GENERALERROR, LFADEC_ERROR_INVALIDHANDLE, LFADEC_ERROR_OUTOFMEMORY, LFADEC_ERROR_WRONGARGUMENT, LFADEC_ERROR_WRONGAUDIOPARAM, LFADEC_ERROR_RECONFIGURATION} LFADEC_ERROR;/*** CONVENIENCE *****//*! \brief Return Library Version Information*/LFADEC_EXTERN char * LFADEC_APIDABaacPlusDecGetVersionInfo(void);/*! \brief Check the CRC and Fire code values in the Audio Super Frame*/LFADEC_EXTERN int LFADEC_APIDABaacPlusDecCheckSuperframe(HANDLE_LFADECODER hDecoder, unsigned char *lfaSuperframe);/*** OPEN / CLOSE *****//*! \brief Creates A Decoder Instance This function creates a decoder instance.*/LFADEC_EXTERN LFADEC_ERROR LFADEC_APIDABaacPlusDecOpen( HANDLE_LFADECODER *phDecoder, int subchannelIndex);/*! \brief Destroys A Decoder Instance*/LFADEC_EXTERN void LFADEC_APIDABaacPlusDecClose( HANDLE_LFADECODER *phDecoder);/*** DECODE *****//*! \brief Decodes One Audio Super Frame Directly Provided*/LFADEC_EXTERN LFADEC_ERROR LFADEC_APIDABaacPlusDecDecodeSuperframe( HANDLE_LFADECODER hDecoder, unsigned char *lfaSuperframe, /*!< the LFA audio super frame */ short *pcmBuffer, /*!< the audio samples buffer */ int *nSamples, /*!< number of audio samples */ int *asfStatus /*!< ASF status */ );/*** END *****************************/#ifdef __cplusplus} /* extern "C" */#endif#endif /* _LFADECLIB_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -