53 #define SYNCWORDH 0xff 54 #define SYNCWORDL 0xf0 56 #define MAX_NCHANS_ELEM 2 58 #define ADTS_HEADER_BYTES 7 59 #define NUM_SAMPLE_RATES 12 60 #define NUM_DEF_CHAN_MAPS 8 61 #define NUM_ELEMENTS 8 62 #define MAX_NUM_PCE_ADIF 16 64 #define MAX_WIN_GROUPS 8 65 #define MAX_SFB_SHORT 15 66 #define MAX_SF_BANDS (MAX_SFB_SHORT*MAX_WIN_GROUPS) 67 #define MAX_MS_MASK_BYTES ((MAX_SF_BANDS + 7) >> 3) 68 #define MAX_PRED_SFB 41 69 #define MAX_TNS_FILTERS 8 70 #define MAX_TNS_COEFS 60 71 #define MAX_TNS_ORDER 20 73 #define MAX_GAIN_BANDS 3 74 #define MAX_GAIN_WIN 8 75 #define MAX_GAIN_ADJUST 7 77 #define NSAMPS_LONG 1024 78 #define NSAMPS_SHORT 128 80 #define NUM_SYN_ID_BITS 3 81 #define NUM_INST_TAG_BITS 4 83 #define EXT_SBR_DATA 0x0d 84 #define EXT_SBR_DATA_CRC 0x0e 86 #define IS_ADIF(p) ((p)[0] == 'A' && (p)[1] == 'D' && (p)[2] == 'I' && (p)[3] == 'F') 87 #define GET_ELE_ID(p) ((AACElementID)(*(p) >> (8-NUM_SYN_ID_BITS))) int DecodeNextElement(AACDecInfo *aacDecInfo, unsigned char **buf, int *bitOffset, int *bitsAvail)
Definition: aacdecelmnt.c:363
int UnpackADIFHeader(AACDecInfo *aacDecInfo, unsigned char **buf, int *bitOffset, int *bitsAvail)
Definition: aacfilefmt.c:306
int sbDeinterleaveReqd[2]
Definition: aaccommon.h:132
int frameCount
Definition: aaccommon.h:144
Definition: aaccommon.h:108
Definition: aaccommon.h:104
Definition: aaccommon.h:109
Definition: aaccommon.h:91
int DecodeSBRBitstream(AACDecInfo *aacDecInfo, int chBase)
Definition: aacsbr.c:176
const int sfBandTabLongOffset[NUM_SAMPLE_RATES]
Definition: aactabs.c:102
const int sfBandTabShortOffset[NUM_SAMPLE_RATES]
Definition: aactabs.c:81
int rawSampleBytes
Definition: aaccommon.h:120
const int sfBandTabShortTabSize[NUM_SAMPLE_RATES]
Definition: aactabs.c:83
int nChans
Definition: aaccommon.h:137
const int predSFBMax[NUM_SAMPLE_RATES]
Definition: aactabs.c:55
int fillCount
Definition: aaccommon.h:125
const unsigned char tnsMaxOrderLong[AAC_NUM_PROFILES]
Definition: aactabs.c:161
const unsigned char tnsMaxOrderShort[AAC_NUM_PROFILES]
Definition: aactabs.c:152
int DecodeSBRData(AACDecInfo *aacDecInfo, int chBase, short *outbuf)
Definition: aacsbr.c:252
int FlushCodec(AACDecInfo *aacDecInfo)
Definition: aacfilefmt.c:484
int PrepareRawBlock(AACDecInfo *aacDecInfo)
Definition: aacfilefmt.c:447
const int sampRateTab[NUM_SAMPLE_RATES]
Definition: aactabs.c:49
const short sfBandTabLong[325]
Definition: aactabs.c:106
const unsigned char tnsMaxBandsShort[2 *NUM_SAMPLE_RATES]
Definition: aactabs.c:147
#define AAC_MAX_NCHANS
Definition: aacdec.h:69
int FlushCodecSBR(AACDecInfo *aacDecInfo)
Definition: aacsbr.c:415
unsigned char * fillBuf
Definition: aaccommon.h:124
Definition: aaccommon.h:94
int IMDCT(AACDecInfo *aacDecInfo, int ch, int chOut, short *outbuf)
Definition: aacimdct.c:524
void FreeBuffers(AACDecInfo *aacDecInfo)
Definition: aacbuffers.c:131
void * psInfoSBR
Definition: aaccommon.h:116
int DecodeNoiselessData(AACDecInfo *aacDecInfo, unsigned char **buf, int *bitOffset, int *bitsAvail, int ch)
Definition: aacnoiseless.c:452
int UnpackADTSHeader(AACDecInfo *aacDecInfo, unsigned char **buf, int *bitOffset, int *bitsAvail)
Definition: aacfilefmt.c:67
Definition: aaccommon.h:95
int TNSFilter(AACDecInfo *aacDecInfo, int ch)
Definition: aactns.c:180
int sbrEnabled
Definition: aaccommon.h:141
#define NUM_DEF_CHAN_MAPS
Definition: aaccommon.h:60
Definition: aaccommon.h:106
Definition: aaccommon.h:107
Definition: aaccommon.h:101
void * rawSampleBuf[2]
Definition: aaccommon.h:119
int Dequantize(AACDecInfo *aacDecInfo, int ch)
Definition: aacdequant.c:289
#define NUM_ELEMENTS
Definition: aaccommon.h:61
int SetRawBlockParams(AACDecInfo *aacDecInfo, int copyLast, int nChans, int sampRate, int profile)
Definition: aacfilefmt.c:404
int prevBlockID
Definition: aaccommon.h:129
int fillExtType
Definition: aaccommon.h:126
const int elementNumChans[NUM_ELEMENTS]
Definition: aactabs.c:67
Definition: aaccommon.h:113
int InitSBR(AACDecInfo *aacDecInfo)
Definition: aacsbr.c:99
void FreeSBR(AACDecInfo *aacDecInfo)
Definition: aacsbr.c:130
void ClearBuffer(void *buf, int nBytes)
Definition: aacbuffers.c:69
void * psInfoBase
Definition: aaccommon.h:115
const unsigned char sfBandTotalShort[NUM_SAMPLE_RATES]
Definition: aactabs.c:72
Definition: aaccommon.h:93
int PNS(AACDecInfo *aacDecInfo, int ch)
Definition: aacpns.c:270
int pnsUsed
Definition: aaccommon.h:143
int rawSampleFBits
Definition: aaccommon.h:121
AACDecInfo * AllocateBuffers(void)
Definition: aacbuffers.c:95
const unsigned char tnsMaxBandsLong[2 *NUM_SAMPLE_RATES]
Definition: aactabs.c:156
Definition: aaccommon.h:103
int sampRate
Definition: aaccommon.h:138
const int sfBandTabLongTabSize[NUM_SAMPLE_RATES]
Definition: aactabs.c:104
Definition: aaccommon.h:105
const unsigned char sfBandTotalLong[NUM_SAMPLE_RATES]
Definition: aactabs.c:76
const int tnsMaxBandsShortOffset[AAC_NUM_PROFILES]
Definition: aactabs.c:145
int profile
Definition: aaccommon.h:139
const int channelMapTab[NUM_DEF_CHAN_MAPS]
Definition: aactabs.c:60
void ClearBuffers(AACDecInfo *aacDecInfo)
Definition: aacbuffers.c:153
Definition: aaccommon.h:110
#define MAX_NCHANS_ELEM
Definition: aaccommon.h:56
int bitRate
Definition: aaccommon.h:136
const int tnsMaxBandsLongOffset[AAC_NUM_PROFILES]
Definition: aactabs.c:154
int currBlockID
Definition: aaccommon.h:130
int GetADTSChannelMapping(AACDecInfo *aacDecInfo, unsigned char *buf, int bitOffset, int bitsAvail)
Definition: aacfilefmt.c:169
int tnsUsed
Definition: aaccommon.h:142
#define AAC_NUM_PROFILES
Definition: aacdec.h:74
int StereoProcess(AACDecInfo *aacDecInfo)
Definition: aacstproc.c:187
int currInstTag
Definition: aaccommon.h:131
struct _AACDecInfo AACDecInfo
int DeinterleaveShortBlocks(AACDecInfo *aacDecInfo, int ch)
Definition: aacdequant.c:362
int adtsBlocksLeft
Definition: aaccommon.h:133
int format
Definition: aaccommon.h:140
#define NUM_SAMPLE_RATES
Definition: aaccommon.h:59
const short sfBandTabShort[76]
Definition: aactabs.c:85