CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
结构体 | 宏定义 | 类型定义 | 枚举 | 函数
aacdec.h 文件参考

浏览源代码.

结构体

struct  _AACFrameInfo
 

宏定义

#define AAC_MAX_NCHANS   2 /* set to default max number of channels */
 
#define AAC_MAX_NSAMPS   1024
 
#define AAC_MAINBUF_SIZE   (768 * AAC_MAX_NCHANS)
 
#define AAC_NUM_PROFILES   3
 
#define AAC_PROFILE_MP   0
 
#define AAC_PROFILE_LC   1
 
#define AAC_PROFILE_SSR   2
 
#define AAC_ENABLE_MPEG4
 

类型定义

typedef struct _AACFrameInfo AACFrameInfo
 
typedef void * HAACDecoder
 

枚举

enum  {
  ERR_AAC_NONE = 0,
  ERR_AAC_INDATA_UNDERFLOW = -1,
  ERR_AAC_NULL_POINTER = -2,
  ERR_AAC_INVALID_ADTS_HEADER = -3,
  ERR_AAC_INVALID_ADIF_HEADER = -4,
  ERR_AAC_INVALID_FRAME = -5,
  ERR_AAC_MPEG4_UNSUPPORTED = -6,
  ERR_AAC_CHANNEL_MAP = -7,
  ERR_AAC_SYNTAX_ELEMENT = -8,
  ERR_AAC_DEQUANT = -9,
  ERR_AAC_STEREO_PROCESS = -10,
  ERR_AAC_PNS = -11,
  ERR_AAC_SHORT_BLOCK_DEINT = -12,
  ERR_AAC_TNS = -13,
  ERR_AAC_IMDCT = -14,
  ERR_AAC_NCHANS_TOO_HIGH = -15,
  ERR_AAC_SBR_INIT = -16,
  ERR_AAC_SBR_BITSTREAM = -17,
  ERR_AAC_SBR_DATA = -18,
  ERR_AAC_SBR_PCM_FORMAT = -19,
  ERR_AAC_SBR_NCHANS_TOO_HIGH = -20,
  ERR_AAC_SBR_SINGLERATE_UNSUPPORTED = -21,
  ERR_AAC_RAWBLOCK_PARAMS = -22,
  ERR_AAC_UNKNOWN = -9999
}
 

函数

HAACDecoder AACInitDecoder (void)
 
void AACFreeDecoder (HAACDecoder hAACDecoder)
 
int AACClearDecoder (HAACDecoder hAACDecoder)
 
int AACDecode (HAACDecoder hAACDecoder, unsigned char **inbuf, int *bytesLeft, short *outbuf)
 
int AACFindSyncWord (unsigned char *buf, int nBytes)
 
void AACGetLastFrameInfo (HAACDecoder hAACDecoder, AACFrameInfo *aacFrameInfo)
 
int AACSetRawBlockParams (HAACDecoder hAACDecoder, int copyLast, AACFrameInfo *aacFrameInfo)
 
int AACFlushCodec (HAACDecoder hAACDecoder)
 

结构体说明

◆ _AACFrameInfo

struct _AACFrameInfo
成员变量
int bitRate
int bitsPerSample
int nChans
int outputSamps
int pnsUsed
int profile
int sampRateCore
int sampRateOut
int tnsUsed

宏定义说明

◆ AAC_ENABLE_MPEG4

#define AAC_ENABLE_MPEG4

◆ AAC_MAINBUF_SIZE

#define AAC_MAINBUF_SIZE   (768 * AAC_MAX_NCHANS)

◆ AAC_MAX_NCHANS

#define AAC_MAX_NCHANS   2 /* set to default max number of channels */

◆ AAC_MAX_NSAMPS

#define AAC_MAX_NSAMPS   1024

◆ AAC_NUM_PROFILES

#define AAC_NUM_PROFILES   3

◆ AAC_PROFILE_LC

#define AAC_PROFILE_LC   1

◆ AAC_PROFILE_MP

#define AAC_PROFILE_MP   0

◆ AAC_PROFILE_SSR

#define AAC_PROFILE_SSR   2

类型定义说明

◆ AACFrameInfo

typedef struct _AACFrameInfo AACFrameInfo

◆ HAACDecoder

typedef void* HAACDecoder

枚举类型说明

◆ anonymous enum

anonymous enum
枚举值
ERR_AAC_NONE 
ERR_AAC_INDATA_UNDERFLOW 
ERR_AAC_NULL_POINTER 
ERR_AAC_INVALID_ADTS_HEADER 
ERR_AAC_INVALID_ADIF_HEADER 
ERR_AAC_INVALID_FRAME 
ERR_AAC_MPEG4_UNSUPPORTED 
ERR_AAC_CHANNEL_MAP 
ERR_AAC_SYNTAX_ELEMENT 
ERR_AAC_DEQUANT 
ERR_AAC_STEREO_PROCESS 
ERR_AAC_PNS 
ERR_AAC_SHORT_BLOCK_DEINT 
ERR_AAC_TNS 
ERR_AAC_IMDCT 
ERR_AAC_NCHANS_TOO_HIGH 
ERR_AAC_SBR_INIT 
ERR_AAC_SBR_BITSTREAM 
ERR_AAC_SBR_DATA 
ERR_AAC_SBR_PCM_FORMAT 
ERR_AAC_SBR_NCHANS_TOO_HIGH 
ERR_AAC_SBR_SINGLERATE_UNSUPPORTED 
ERR_AAC_RAWBLOCK_PARAMS 
ERR_AAC_UNKNOWN 

函数说明

◆ AACClearDecoder()

int AACClearDecoder ( HAACDecoder  hAACDecoder)

◆ AACDecode()

int AACDecode ( HAACDecoder  hAACDecoder,
unsigned char **  inbuf,
int *  bytesLeft,
short *  outbuf 
)

◆ AACFindSyncWord()

int AACFindSyncWord ( unsigned char *  buf,
int  nBytes 
)

◆ AACFlushCodec()

int AACFlushCodec ( HAACDecoder  hAACDecoder)

◆ AACFreeDecoder()

void AACFreeDecoder ( HAACDecoder  hAACDecoder)

◆ AACGetLastFrameInfo()

void AACGetLastFrameInfo ( HAACDecoder  hAACDecoder,
AACFrameInfo aacFrameInfo 
)

◆ AACInitDecoder()

HAACDecoder AACInitDecoder ( void  )

◆ AACSetRawBlockParams()

int AACSetRawBlockParams ( HAACDecoder  hAACDecoder,
int  copyLast,
AACFrameInfo aacFrameInfo 
)