• Home
  • Raw
  • Download

Lines Matching refs:blockSwitchingControl

104         BLOCK_SWITCHING_CONTROL *RESTRICT blockSwitchingControl,
151 void FDKaacEnc_InitBlockSwitching(BLOCK_SWITCHING_CONTROL *blockSwitchingControl, INT isLowDelay) in FDKaacEnc_InitBlockSwitching() argument
153 FDKmemclear (blockSwitchingControl, sizeof(BLOCK_SWITCHING_CONTROL)); in FDKaacEnc_InitBlockSwitching()
157 blockSwitchingControl->nBlockSwitchWindows = 4; in FDKaacEnc_InitBlockSwitching()
158 blockSwitchingControl->allowShortFrames = 0; in FDKaacEnc_InitBlockSwitching()
159 blockSwitchingControl->allowLookAhead = 0; in FDKaacEnc_InitBlockSwitching()
163 blockSwitchingControl->nBlockSwitchWindows = 8; in FDKaacEnc_InitBlockSwitching()
164 blockSwitchingControl->allowShortFrames = 1; in FDKaacEnc_InitBlockSwitching()
165 blockSwitchingControl->allowLookAhead = 1; in FDKaacEnc_InitBlockSwitching()
168 blockSwitchingControl->noOfGroups = MAX_NO_OF_GROUPS; in FDKaacEnc_InitBlockSwitching()
171 blockSwitchingControl->lastWindowSequence = LONG_WINDOW; in FDKaacEnc_InitBlockSwitching()
172blockSwitchingControl->windowShape = blockType2windowShape[blockSwitchingControl->allowS… in FDKaacEnc_InitBlockSwitching()
208 int FDKaacEnc_BlockSwitching(BLOCK_SWITCHING_CONTROL *blockSwitchingControl, const INT granuleLengt… in FDKaacEnc_BlockSwitching() argument
213 UINT nBlockSwitchWindows = blockSwitchingControl->nBlockSwitchWindows; in FDKaacEnc_BlockSwitching()
220 blockSwitchingControl->lastWindowSequence = LONG_WINDOW; in FDKaacEnc_BlockSwitching()
221 blockSwitchingControl->windowShape = SINE_WINDOW; in FDKaacEnc_BlockSwitching()
222 blockSwitchingControl->noOfGroups = 1; in FDKaacEnc_BlockSwitching()
223 blockSwitchingControl->groupLen[0] = 1; in FDKaacEnc_BlockSwitching()
229 blockSwitchingControl->lastattack = blockSwitchingControl->attack; in FDKaacEnc_BlockSwitching()
230 blockSwitchingControl->lastAttackIndex = blockSwitchingControl->attackIndex; in FDKaacEnc_BlockSwitching()
233 …FDKmemcpy(blockSwitchingControl->windowNrg[0], blockSwitchingControl->windowNrg[1], sizeof(blockSw… in FDKaacEnc_BlockSwitching()
234 …FDKmemcpy(blockSwitchingControl->windowNrgF[0], blockSwitchingControl->windowNrgF[1], sizeof(block… in FDKaacEnc_BlockSwitching()
236 if (blockSwitchingControl->allowShortFrames) in FDKaacEnc_BlockSwitching()
241 FDKmemclear (blockSwitchingControl->groupLen, sizeof(blockSwitchingControl->groupLen)); in FDKaacEnc_BlockSwitching()
244 blockSwitchingControl->noOfGroups = MAX_NO_OF_GROUPS; in FDKaacEnc_BlockSwitching()
246 …FDKmemcpy(blockSwitchingControl->groupLen, suggestedGroupingTable[blockSwitchingControl->lastAttac… in FDKaacEnc_BlockSwitching()
248 if (blockSwitchingControl->attack == TRUE) in FDKaacEnc_BlockSwitching()
249blockSwitchingControl->maxWindowNrg = FDKaacEnc_GetWindowEnergy(blockSwitchingControl->windowNrg[0… in FDKaacEnc_BlockSwitching()
251 blockSwitchingControl->maxWindowNrg = FL2FXCONST_DBL(0.0); in FDKaacEnc_BlockSwitching()
257 …FDKaacEnc_CalcWindowEnergy(blockSwitchingControl, granuleLength>>(nBlockSwitchWindows==4? 2:3 ), p… in FDKaacEnc_BlockSwitching()
262 blockSwitchingControl->attack = FALSE; in FDKaacEnc_BlockSwitching()
266 enM1 = blockSwitchingControl->windowNrgF[0][nBlockSwitchWindows-1]; in FDKaacEnc_BlockSwitching()
269 FIXP_DBL tmp = fMultDiv2(oneMinusAccWindowNrgFac, blockSwitchingControl->accWindowNrg); in FDKaacEnc_BlockSwitching()
270 blockSwitchingControl->accWindowNrg = fMultAdd(tmp, accWindowNrgFac, enM1) ; in FDKaacEnc_BlockSwitching()
272 …if (fMult(blockSwitchingControl->windowNrgF[1][i],invAttackRatio) > blockSwitchingControl->accWind… in FDKaacEnc_BlockSwitching()
273 blockSwitchingControl->attack = TRUE; in FDKaacEnc_BlockSwitching()
274 blockSwitchingControl->attackIndex = i; in FDKaacEnc_BlockSwitching()
276 enM1 = blockSwitchingControl->windowNrgF[1][i]; in FDKaacEnc_BlockSwitching()
281 if (enMax < minAttackNrg) blockSwitchingControl->attack = FALSE; in FDKaacEnc_BlockSwitching()
284 if((blockSwitchingControl->attack == FALSE) && (blockSwitchingControl->lastattack == TRUE)) { in FDKaacEnc_BlockSwitching()
286 …if ( ((blockSwitchingControl->windowNrgF[0][nBlockSwitchWindows-1]>>4) > fMult((FIXP_DBL)(10<<(DFR… in FDKaacEnc_BlockSwitching()
287 && (blockSwitchingControl->lastAttackIndex == (INT)nBlockSwitchWindows-1) in FDKaacEnc_BlockSwitching()
290 blockSwitchingControl->attack = TRUE; in FDKaacEnc_BlockSwitching()
291 blockSwitchingControl->attackIndex = 0; in FDKaacEnc_BlockSwitching()
296 if(blockSwitchingControl->allowLookAhead) in FDKaacEnc_BlockSwitching()
300 blockSwitchingControl->lastWindowSequence = in FDKaacEnc_BlockSwitching()
301 …chgWndSqLkAhd[blockSwitchingControl->lastattack][blockSwitchingControl->attack][blockSwitchingCont… in FDKaacEnc_BlockSwitching()
306 blockSwitchingControl->lastWindowSequence = in FDKaacEnc_BlockSwitching()
307 chgWndSq[blockSwitchingControl->attack][blockSwitchingControl->lastWindowSequence]; in FDKaacEnc_BlockSwitching()
312blockSwitchingControl->windowShape = blockType2windowShape[blockSwitchingControl->allowShortFrames… in FDKaacEnc_BlockSwitching()
329 static void FDKaacEnc_CalcWindowEnergy(BLOCK_SWITCHING_CONTROL *RESTRICT blockSwitchingControl, INT… in FDKaacEnc_CalcWindowEnergy() argument
338 for (w=0; w < blockSwitchingControl->nBlockSwitchWindows; w++) { in FDKaacEnc_CalcWindowEnergy()
342 FIXP_DBL temp_iirState0 = blockSwitchingControl->iirStates[0]; in FDKaacEnc_CalcWindowEnergy()
343 FIXP_DBL temp_iirState1 = blockSwitchingControl->iirStates[1]; in FDKaacEnc_CalcWindowEnergy()
370 blockSwitchingControl->windowNrg[1][w] = temp_windowNrg; in FDKaacEnc_CalcWindowEnergy()
371 blockSwitchingControl->windowNrgF[1][w] = temp_windowNrgF; in FDKaacEnc_CalcWindowEnergy()
372 blockSwitchingControl->iirStates[0] = temp_iirState0; in FDKaacEnc_CalcWindowEnergy()
373 blockSwitchingControl->iirStates[1] = temp_iirState1; in FDKaacEnc_CalcWindowEnergy()