Lines Matching refs:pConcealCommonData
263 CConcealment_InitCommonData (CConcealParams *pConcealCommonData) in CConcealment_InitCommonData() argument
265 if (pConcealCommonData != NULL) in CConcealment_InitCommonData()
270 pConcealCommonData->method = ConcealMethodInter; in CConcealment_InitCommonData()
272 pConcealCommonData->numFadeOutFrames = CONCEAL_DFLT_FADEOUT_FRAMES; in CConcealment_InitCommonData()
273 pConcealCommonData->numFadeInFrames = CONCEAL_DFLT_FADEIN_FRAMES; in CConcealment_InitCommonData()
274 pConcealCommonData->numMuteReleaseFrames = CONCEAL_DFLT_MUTE_RELEASE_FRAMES; in CConcealment_InitCommonData()
276 pConcealCommonData->comfortNoiseLevel = CONCEAL_DFLT_COMF_NOISE_LEVEL; in CConcealment_InitCommonData()
279 pConcealCommonData->fadeOutFactor[0] = FL2FXCONST_SGL( CONCEAL_DFLT_FADE_FACTOR ); in CConcealment_InitCommonData()
280 pConcealCommonData->fadeInFactor[0] = pConcealCommonData->fadeOutFactor[0]; in CConcealment_InitCommonData()
283 …pConcealCommonData->fadeOutFactor[i] = FX_DBL2FX_SGL(fMult(pConcealCommonData->fadeOutFactor[i-1],… in CConcealment_InitCommonData()
284 pConcealCommonData->fadeInFactor[i] = pConcealCommonData->fadeOutFactor[i]; in CConcealment_InitCommonData()
299 CConcealment_GetMethod( CConcealParams *pConcealCommonData ) in CConcealment_GetMethod() argument
303 if (pConcealCommonData != NULL) { in CConcealment_GetMethod()
304 method = pConcealCommonData->method; in CConcealment_GetMethod()
323 CConcealParams *pConcealCommonData, in CConcealment_InitChannelData() argument
328 pConcealChannelInfo->pConcealParams = pConcealCommonData; in CConcealment_InitChannelData()
834 CConcealParams *pConcealCommonData = pConcealmentInfo->pConcealParams; in CConcealment_ApplyNoise() local
864 FDK_ASSERT(pConcealmentInfo->cntFadeFrames <= pConcealCommonData->numFadeOutFrames); in CConcealment_ApplyNoise()
868 fac = pConcealCommonData->fadeOutFactor[tFadeFrames]; in CConcealment_ApplyNoise()
913 if (tFadeFrames < pConcealCommonData->numFadeOutFrames) { in CConcealment_ApplyNoise()
914 fac = pConcealCommonData->fadeOutFactor[tFadeFrames]; in CConcealment_ApplyNoise()
939 && pConcealCommonData->comfortNoiseLevel >= 0 in CConcealment_ApplyNoise()
940 && pConcealCommonData->comfortNoiseLevel <= 61 /* -90dB */) in CConcealment_ApplyNoise()
949 pConcealCommonData->comfortNoiseLevel in CConcealment_ApplyNoise()
971 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < pConcealCommonData->numFadeInFrames); in CConcealment_ApplyNoise()
975 FIXP_SGL fac = pConcealCommonData->fadeInFactor[pConcealmentInfo->cntFadeFrames]; in CConcealment_ApplyNoise()
1014 CConcealParams *pConcealCommonData = pConcealmentInfo->pConcealParams; in CConcealment_ApplyInter() local
1222 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < pConcealCommonData->numFadeOutFrames); in CConcealment_ApplyInter()
1226 FIXP_SGL fac = pConcealCommonData->fadeOutFactor[pConcealmentInfo->cntFadeFrames]; in CConcealment_ApplyInter()
1240 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < pConcealCommonData->numFadeInFrames); in CConcealment_ApplyInter()
1244 FIXP_SGL fac = pConcealCommonData->fadeInFactor[pConcealmentInfo->cntFadeFrames]; in CConcealment_ApplyInter()
1256 int fac = pConcealCommonData->comfortNoiseLevel; in CConcealment_ApplyInter()
1448 CConcealParams *pConcealCommonData, in findEquiFadeFrame() argument
1463 numFrames = pConcealCommonData->numFadeInFrames; in findEquiFadeFrame()
1464 referenceVal = pConcealCommonData->fadeOutFactor[actFadeIndex] >> 1; in findEquiFadeFrame()
1465 pFactor = pConcealCommonData->fadeInFactor; in findEquiFadeFrame()
1468 numFrames = pConcealCommonData->numFadeOutFrames; in findEquiFadeFrame()
1469 referenceVal = pConcealCommonData->fadeInFactor[actFadeIndex] >> 1; in findEquiFadeFrame()
1470 pFactor = pConcealCommonData->fadeOutFactor; in findEquiFadeFrame()
1511 CConcealParams *pConcealCommonData = pConcealmentInfo->pConcealParams; in CConcealment_UpdateState() local
1513 switch (pConcealCommonData->method) in CConcealment_UpdateState()
1531 if (pConcealCommonData->numFadeOutFrames > 0) { in CConcealment_UpdateState()
1546 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1549 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1557 if (pConcealmentInfo->cntFadeFrames >= pConcealCommonData->numFadeOutFrames) { in CConcealment_UpdateState()
1569 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1570 if (pConcealCommonData->numFadeInFrames > 0) { in CConcealment_UpdateState()
1573 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1581 if (pConcealmentInfo->cntFadeFrames >= pConcealCommonData->numFadeOutFrames) { in CConcealment_UpdateState()
1589 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1590 if (pConcealCommonData->numFadeInFrames > 0) { in CConcealment_UpdateState()
1593 pConcealmentInfo->cntFadeFrames = pConcealCommonData->numFadeInFrames - 1; in CConcealment_UpdateState()
1609 if (pConcealCommonData->numFadeOutFrames > 0) { in CConcealment_UpdateState()
1612 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1649 if (pConcealCommonData->numFadeOutFrames > 0) { in CConcealment_UpdateState()
1668 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1669 if (pConcealCommonData->numFadeInFrames > 0) { in CConcealment_UpdateState()
1672 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1680 if (pConcealmentInfo->cntFadeFrames >= pConcealCommonData->numFadeOutFrames) { in CConcealment_UpdateState()
1688 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1689 if (pConcealCommonData->numFadeInFrames > 0) { in CConcealment_UpdateState()
1692 pConcealmentInfo->cntFadeFrames = pConcealCommonData->numFadeInFrames - 1; in CConcealment_UpdateState()
1709 if (pConcealCommonData->numFadeOutFrames > 0) { in CConcealment_UpdateState()
1712 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1786 CConcealParams *pConcealCommonData = hConcealmentInfo->pConcealParams; in CConcealment_GetFadeFactor() local
1801 … fac = (idx < 0) ? (FIXP_DBL)MAXVAL_DBL : FX_SGL2FX_DBL(pConcealCommonData->fadeOutFactor[idx]); in CConcealment_GetFadeFactor()
1807 …fo->pConcealParams->numFadeInFrames) ? (FIXP_DBL)0 : FX_SGL2FX_DBL(pConcealCommonData->fadeInFacto… in CConcealment_GetFadeFactor()
1848 CConcealParams *pConcealCommonData in CConcealment_GetDelay() argument
1853 if (pConcealCommonData != NULL) { in CConcealment_GetDelay()
1854 switch (pConcealCommonData->method) { in CConcealment_GetDelay()