CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
宏定义 | 函数 | 变量
aacsbrhfadj.c 文件参考
#include "aacsbr.h"
#include "aacassembly.h"

宏定义

#define GBOOST_MAX   0x2830afd3 /* Q28, 1.584893192 squared */
 
#define ACC_SCALE   6
 

函数

static void EstimateEnvelope (PSInfoSBR *psi, SBRHeader *sbrHdr, SBRGrid *sbrGrid, SBRFreq *sbrFreq, int env)
 
static int GetSMapped (SBRGrid *sbrGrid, SBRFreq *sbrFreq, SBRChan *sbrChan, int env, int band, int la)
 
static void CalcMaxGain (PSInfoSBR *psi, SBRHeader *sbrHdr, SBRGrid *sbrGrid, SBRFreq *sbrFreq, int ch, int env, int lim, int fbitsDQ)
 
static void CalcNoiseDivFactors (int q, int *qp1Inv, int *qqp1Inv)
 
static void CalcComponentGains (PSInfoSBR *psi, SBRGrid *sbrGrid, SBRFreq *sbrFreq, SBRChan *sbrChan, int ch, int env, int lim, int fbitsDQ)
 
static void ApplyBoost (PSInfoSBR *psi, SBRFreq *sbrFreq, int lim, int fbitsDQ)
 
static void CalcGain (PSInfoSBR *psi, SBRHeader *sbrHdr, SBRGrid *sbrGrid, SBRFreq *sbrFreq, SBRChan *sbrChan, int ch, int env)
 
static void MapHF (PSInfoSBR *psi, SBRHeader *sbrHdr, SBRGrid *sbrGrid, SBRFreq *sbrFreq, SBRChan *sbrChan, int env, int hfReset)
 
void STATNAME() AdjustHighFreq (PSInfoSBR *psi, SBRHeader *sbrHdr, SBRGrid *sbrGrid, SBRFreq *sbrFreq, SBRChan *sbrChan, int ch)
 

变量

static const int invBandTab [64]
 
static const int limGainTab [4] = {0x20138ca7, 0x40000000, 0x7fb27dce, 0x80000000}
 
static const int hSmoothCoef [5]
 

宏定义说明

◆ ACC_SCALE

#define ACC_SCALE   6

◆ GBOOST_MAX

#define GBOOST_MAX   0x2830afd3 /* Q28, 1.584893192 squared */

函数说明

◆ AdjustHighFreq()

void STATNAME() AdjustHighFreq ( PSInfoSBR psi,
SBRHeader sbrHdr,
SBRGrid sbrGrid,
SBRFreq sbrFreq,
SBRChan sbrChan,
int  ch 
)

◆ ApplyBoost()

static void ApplyBoost ( PSInfoSBR psi,
SBRFreq sbrFreq,
int  lim,
int  fbitsDQ 
)
static

◆ CalcComponentGains()

static void CalcComponentGains ( PSInfoSBR psi,
SBRGrid sbrGrid,
SBRFreq sbrFreq,
SBRChan sbrChan,
int  ch,
int  env,
int  lim,
int  fbitsDQ 
)
static

◆ CalcGain()

static void CalcGain ( PSInfoSBR psi,
SBRHeader sbrHdr,
SBRGrid sbrGrid,
SBRFreq sbrFreq,
SBRChan sbrChan,
int  ch,
int  env 
)
static

◆ CalcMaxGain()

static void CalcMaxGain ( PSInfoSBR psi,
SBRHeader sbrHdr,
SBRGrid sbrGrid,
SBRFreq sbrFreq,
int  ch,
int  env,
int  lim,
int  fbitsDQ 
)
static

◆ CalcNoiseDivFactors()

static void CalcNoiseDivFactors ( int  q,
int *  qp1Inv,
int *  qqp1Inv 
)
static

◆ EstimateEnvelope()

static void EstimateEnvelope ( PSInfoSBR psi,
SBRHeader sbrHdr,
SBRGrid sbrGrid,
SBRFreq sbrFreq,
int  env 
)
static

◆ GetSMapped()

static int GetSMapped ( SBRGrid sbrGrid,
SBRFreq sbrFreq,
SBRChan sbrChan,
int  env,
int  band,
int  la 
)
static

◆ MapHF()

static void MapHF ( PSInfoSBR psi,
SBRHeader sbrHdr,
SBRGrid sbrGrid,
SBRFreq sbrFreq,
SBRChan sbrChan,
int  env,
int  hfReset 
)
static

变量说明

◆ hSmoothCoef

const int hSmoothCoef[5]
static
初始值:
= {
0x2aaaaaab, 0x2697a512, 0x1becfa68, 0x0ebdb043, 0x04130598,
}

◆ invBandTab

const int invBandTab[64]
static
初始值:
= {
0x7fffffff, 0x40000000, 0x2aaaaaab, 0x20000000, 0x1999999a, 0x15555555, 0x12492492, 0x10000000,
0x0e38e38e, 0x0ccccccd, 0x0ba2e8ba, 0x0aaaaaab, 0x09d89d8a, 0x09249249, 0x08888889, 0x08000000,
0x07878788, 0x071c71c7, 0x06bca1af, 0x06666666, 0x06186186, 0x05d1745d, 0x0590b216, 0x05555555,
0x051eb852, 0x04ec4ec5, 0x04bda12f, 0x04924925, 0x0469ee58, 0x04444444, 0x04210842, 0x04000000,
0x03e0f83e, 0x03c3c3c4, 0x03a83a84, 0x038e38e4, 0x03759f23, 0x035e50d8, 0x03483483, 0x03333333,
0x031f3832, 0x030c30c3, 0x02fa0be8, 0x02e8ba2f, 0x02d82d83, 0x02c8590b, 0x02b93105, 0x02aaaaab,
0x029cbc15, 0x028f5c29, 0x02828283, 0x02762762, 0x026a439f, 0x025ed098, 0x0253c825, 0x02492492,
0x023ee090, 0x0234f72c, 0x022b63cc, 0x02222222, 0x02192e2a, 0x02108421, 0x02082082, 0x02000000,
}

◆ limGainTab

const int limGainTab[4] = {0x20138ca7, 0x40000000, 0x7fb27dce, 0x80000000}
static