CI13LC SDK API手册  2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
宏定义 | 函数
mp3huffman.c 文件参考
#include "mp3coder.h"

宏定义

#define GetMaxbits(x)   ((int)( (((unsigned short)(x)) >> 0) & 0x000f))
 
#define GetHLen(x)   ((int)( (((unsigned short)(x)) >> 12) & 0x000f))
 
#define GetCWY(x)   ((int)( (((unsigned short)(x)) >> 8) & 0x000f))
 
#define GetCWX(x)   ((int)( (((unsigned short)(x)) >> 4) & 0x000f))
 
#define GetSignBits(x)   ((int)( (((unsigned short)(x)) >> 0) & 0x000f))
 
#define GetHLenQ(x)   ((int)( (((unsigned char)(x)) >> 4) & 0x0f))
 
#define GetCWVQ(x)   ((int)( (((unsigned char)(x)) >> 3) & 0x01))
 
#define GetCWWQ(x)   ((int)( (((unsigned char)(x)) >> 2) & 0x01))
 
#define GetCWXQ(x)   ((int)( (((unsigned char)(x)) >> 1) & 0x01))
 
#define GetCWYQ(x)   ((int)( (((unsigned char)(x)) >> 0) & 0x01))
 
#define ApplySign(x, s)   { (x) |= ((s) & 0x80000000); }
 

函数

static _XIF_ int DecodeHuffmanPairs (int *xy, int nVals, int tabIdx, int bitsLeft, unsigned char *buf, int bitOffset)
 
static _XIF_ int DecodeHuffmanQuads (int *vwxy, int nVals, int tabIdx, int bitsLeft, unsigned char *buf, int bitOffset)
 
_XIF_ int DecodeHuffman (MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int huffBlockBits, int gr, int ch)
 

宏定义说明

◆ ApplySign

#define ApplySign (   x,
 
)    { (x) |= ((s) & 0x80000000); }

◆ GetCWVQ

#define GetCWVQ (   x)    ((int)( (((unsigned char)(x)) >> 3) & 0x01))

◆ GetCWWQ

#define GetCWWQ (   x)    ((int)( (((unsigned char)(x)) >> 2) & 0x01))

◆ GetCWX

#define GetCWX (   x)    ((int)( (((unsigned short)(x)) >> 4) & 0x000f))

◆ GetCWXQ

#define GetCWXQ (   x)    ((int)( (((unsigned char)(x)) >> 1) & 0x01))

◆ GetCWY

#define GetCWY (   x)    ((int)( (((unsigned short)(x)) >> 8) & 0x000f))

◆ GetCWYQ

#define GetCWYQ (   x)    ((int)( (((unsigned char)(x)) >> 0) & 0x01))

◆ GetHLen

#define GetHLen (   x)    ((int)( (((unsigned short)(x)) >> 12) & 0x000f))

◆ GetHLenQ

#define GetHLenQ (   x)    ((int)( (((unsigned char)(x)) >> 4) & 0x0f))

◆ GetMaxbits

#define GetMaxbits (   x)    ((int)( (((unsigned short)(x)) >> 0) & 0x000f))

◆ GetSignBits

#define GetSignBits (   x)    ((int)( (((unsigned short)(x)) >> 0) & 0x000f))

函数说明

◆ DecodeHuffman()

_XIF_ int DecodeHuffman ( MP3DecInfo mp3DecInfo,
unsigned char *  buf,
int *  bitOffset,
int  huffBlockBits,
int  gr,
int  ch 
)

◆ DecodeHuffmanPairs()

static _XIF_ int DecodeHuffmanPairs ( int *  xy,
int  nVals,
int  tabIdx,
int  bitsLeft,
unsigned char *  buf,
int  bitOffset 
)
static

◆ DecodeHuffmanQuads()

static _XIF_ int DecodeHuffmanQuads ( int *  vwxy,
int  nVals,
int  tabIdx,
int  bitsLeft,
unsigned char *  buf,
int  bitOffset 
)
static