• Home
  • Raw
  • Download

Lines Matching refs:pConcealmentInfo

206     CConcealmentInfo       *pConcealmentInfo,
218 CConcealmentInfo *pConcealmentInfo,
228 CConcealmentInfo *pConcealmentInfo,
827 CConcealment_ApplyNoise (CConcealmentInfo *pConcealmentInfo, in CConcealment_ApplyNoise() argument
834 CConcealParams *pConcealCommonData = pConcealmentInfo->pConcealParams; in CConcealment_ApplyNoise()
845 switch (pConcealmentInfo->concealState) in CConcealment_ApplyNoise()
861 FDK_ASSERT(pConcealmentInfo != NULL); in CConcealment_ApplyNoise()
862 FDK_ASSERT(pConcealmentInfo->cntFadeFrames >= 0); in CConcealment_ApplyNoise()
863 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < CONCEAL_MAX_NUM_FADE_FACTORS); in CConcealment_ApplyNoise()
864 FDK_ASSERT(pConcealmentInfo->cntFadeFrames <= pConcealCommonData->numFadeOutFrames); in CConcealment_ApplyNoise()
867 tFadeFrames = pConcealmentInfo->cntFadeFrames; in CConcealment_ApplyNoise()
872 pIcsInfo->WindowShape = pConcealmentInfo->windowShape; in CConcealment_ApplyNoise()
873 pIcsInfo->WindowSequence = pConcealmentInfo->windowSequence; in CConcealment_ApplyNoise()
875 if (pConcealmentInfo->windowSequence == 2) { in CConcealment_ApplyNoise()
879 lastWindow = numWindows - pConcealmentInfo->lastWinGrpLen; in CConcealment_ApplyNoise()
884 FIXP_CNCL *pCncl = pConcealmentInfo->spectralCoefficient + (lastWindow * windowLen); in CConcealment_ApplyNoise()
896 CConcealment_ApplyRandomSign(pConcealmentInfo->iRandomPhase, in CConcealment_ApplyNoise()
901pConcealmentInfo->iRandomPhase = (pConcealmentInfo->iRandomPhase + 1) & (AAC_NF_NO_RANDOM_VAL - 1); in CConcealment_ApplyNoise()
904 pSpecScale[win*win_idx_stride] = pConcealmentInfo->specScale[win_idx_stride*lastWindow++]; in CConcealment_ApplyNoise()
910 lastWindow = numWindows - pConcealmentInfo->lastWinGrpLen; in CConcealment_ApplyNoise()
922 pConcealmentInfo->cntFadeFrames = tFadeFrames; in CConcealment_ApplyNoise()
931 …pIcsInfo->WindowShape = pConcealmentInfo->windowShape; /* Prevent an invalid WindowShape (re… in CConcealment_ApplyNoise()
932 pIcsInfo->WindowSequence = CConcealment_GetWinSeq(pConcealmentInfo->windowSequence); in CConcealment_ApplyNoise()
933pConcealmentInfo->windowSequence = pIcsInfo->WindowSequence; /* Store for next frame (spectrum in … in CConcealment_ApplyNoise()
969 FDK_ASSERT(pConcealmentInfo->cntFadeFrames >= 0); in CConcealment_ApplyNoise()
970 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < CONCEAL_MAX_NUM_FADE_FACTORS); in CConcealment_ApplyNoise()
971 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < pConcealCommonData->numFadeInFrames); in CConcealment_ApplyNoise()
975 FIXP_SGL fac = pConcealCommonData->fadeInFactor[pConcealmentInfo->cntFadeFrames]; in CConcealment_ApplyNoise()
1007 CConcealmentInfo *pConcealmentInfo, in CConcealment_ApplyInter() argument
1014 CConcealParams *pConcealCommonData = pConcealmentInfo->pConcealParams; in CConcealment_ApplyInter()
1034 pIcsInfo->WindowShape = pConcealmentInfo->windowShape; in CConcealment_ApplyInter()
1035 pIcsInfo->WindowSequence = pConcealmentInfo->windowSequence; in CConcealment_ApplyInter()
1039 pSpectralCoefficient[i] = FX_CNCL2FX_DBL(pConcealmentInfo->spectralCoefficient[i]); in CConcealment_ApplyInter()
1043 FDKmemcpy(pSpecScale, pConcealmentInfo->specScale, 8*sizeof(SHORT)); in CConcealment_ApplyInter()
1047 if (!pConcealmentInfo->prevFrameOk[1]) { in CConcealment_ApplyInter()
1053 if (frameOk && pConcealmentInfo->prevFrameOk[0]) in CConcealment_ApplyInter()
1066 … if (pConcealmentInfo->windowSequence == EightShortSequence) { /* f_n == EightShortSequence */ in CConcealment_ApplyInter()
1084 &pConcealmentInfo->spectralCoefficient[wnd * (samplesPerFrame / 8)], /* spec_n */ in CConcealment_ApplyInter()
1093 &pConcealmentInfo->specScale[wnd], in CConcealment_ApplyInter()
1114 CConcealment_CalcBandEnergy(pConcealmentInfo->spectralCoefficient, /* spec_n */ in CConcealment_ApplyInter()
1124 pSpectralCoefficient[i] = pConcealmentInfo->spectralCoefficient[i]; /* spec_n */ in CConcealment_ApplyInter()
1135 &pConcealmentInfo->specScale[0], in CConcealment_ApplyInter()
1151 SHORT specScaleAct = pConcealmentInfo->specScale[0]; in CConcealment_ApplyInter()
1159 … if (pConcealmentInfo->windowSequence == EightShortSequence) { /* f_n == EightShortSequence */ in CConcealment_ApplyInter()
1166 if (pConcealmentInfo->specScale[i] > specScaleAct) { in CConcealment_ApplyInter()
1167 specScaleAct = pConcealmentInfo->specScale[i]; in CConcealment_ApplyInter()
1172 CConcealment_CalcBandEnergy(pConcealmentInfo->spectralCoefficient, /* spec_n */ in CConcealment_ApplyInter()
1183 CConcealment_CalcBandEnergy(pConcealmentInfo->spectralCoefficient, /* spec_n */ in CConcealment_ApplyInter()
1204 CConcealment_ApplyRandomSign (pConcealmentInfo->iRandomPhase, in CConcealment_ApplyInter()
1208pConcealmentInfo->iRandomPhase = (pConcealmentInfo->iRandomPhase + 1) & (AAC_NF_NO_RANDOM_VAL - 1); in CConcealment_ApplyInter()
1212 switch (pConcealmentInfo->concealState) in CConcealment_ApplyInter()
1220 FDK_ASSERT(pConcealmentInfo->cntFadeFrames >= 0); in CConcealment_ApplyInter()
1221 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < CONCEAL_MAX_NUM_FADE_FACTORS); in CConcealment_ApplyInter()
1222 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < pConcealCommonData->numFadeOutFrames); in CConcealment_ApplyInter()
1226 FIXP_SGL fac = pConcealCommonData->fadeOutFactor[pConcealmentInfo->cntFadeFrames]; in CConcealment_ApplyInter()
1238 FDK_ASSERT(pConcealmentInfo->cntFadeFrames >= 0); in CConcealment_ApplyInter()
1239 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < CONCEAL_MAX_NUM_FADE_FACTORS); in CConcealment_ApplyInter()
1240 FDK_ASSERT(pConcealmentInfo->cntFadeFrames < pConcealCommonData->numFadeInFrames); in CConcealment_ApplyInter()
1244 FIXP_SGL fac = pConcealCommonData->fadeInFactor[pConcealmentInfo->cntFadeFrames]; in CConcealment_ApplyInter()
1260 …pIcsInfo->WindowShape = pConcealmentInfo->windowShape; /* Prevent an invalid WindowShape (re… in CConcealment_ApplyInter()
1261 pIcsInfo->WindowSequence = CConcealment_GetWinSeq(pConcealmentInfo->windowSequence); in CConcealment_ApplyInter()
1262pConcealmentInfo->windowSequence = pIcsInfo->WindowSequence; /* Store for next frame (spectrum in … in CConcealment_ApplyInter()
1508 CConcealmentInfo *pConcealmentInfo, in CConcealment_UpdateState() argument
1511 CConcealParams *pConcealCommonData = pConcealmentInfo->pConcealParams; in CConcealment_UpdateState()
1517 if (pConcealmentInfo->concealState != ConcealState_Ok) { in CConcealment_UpdateState()
1520 pConcealmentInfo->cntValidFrames += 1; in CConcealment_UpdateState()
1522 pConcealmentInfo->cntValidFrames = 0; in CConcealment_UpdateState()
1527 switch (pConcealmentInfo->concealState) in CConcealment_UpdateState()
1533 pConcealmentInfo->concealState = ConcealState_Single; in CConcealment_UpdateState()
1536 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()
1538 pConcealmentInfo->cntFadeFrames = 0; in CConcealment_UpdateState()
1539 pConcealmentInfo->cntValidFrames = 0; in CConcealment_UpdateState()
1544 pConcealmentInfo->cntFadeFrames += 1; in CConcealment_UpdateState()
1546 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1548 pConcealmentInfo->concealState = ConcealState_FadeIn; in CConcealment_UpdateState()
1549 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1550 pConcealmentInfo->cntFadeFrames-1, in CConcealment_UpdateState()
1554 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1557 if (pConcealmentInfo->cntFadeFrames >= pConcealCommonData->numFadeOutFrames) { in CConcealment_UpdateState()
1559 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()
1562 pConcealmentInfo->concealState = ConcealState_FadeOut; in CConcealment_UpdateState()
1568 pConcealmentInfo->cntFadeFrames += 1; /* used to address the fade-out factors */ in CConcealment_UpdateState()
1569 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1572 pConcealmentInfo->concealState = ConcealState_FadeIn; in CConcealment_UpdateState()
1573 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1574 pConcealmentInfo->cntFadeFrames-1, in CConcealment_UpdateState()
1578 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1581 if (pConcealmentInfo->cntFadeFrames >= pConcealCommonData->numFadeOutFrames) { in CConcealment_UpdateState()
1583 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()
1589 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1592 pConcealmentInfo->concealState = ConcealState_FadeIn; in CConcealment_UpdateState()
1593 pConcealmentInfo->cntFadeFrames = pConcealCommonData->numFadeInFrames - 1; in CConcealment_UpdateState()
1596 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1602 pConcealmentInfo->cntFadeFrames -= 1; /* used to address the fade-in factors */ in CConcealment_UpdateState()
1604 if (pConcealmentInfo->cntFadeFrames < 0) { in CConcealment_UpdateState()
1606 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1611 pConcealmentInfo->concealState = ConcealState_FadeOut; in CConcealment_UpdateState()
1612 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1613 pConcealmentInfo->cntFadeFrames+1, in CConcealment_UpdateState()
1617 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()
1632 if (pConcealmentInfo->concealState != ConcealState_Ok) { in CConcealment_UpdateState()
1634 if ( pConcealmentInfo->prevFrameOk[1] || in CConcealment_UpdateState()
1635 (pConcealmentInfo->prevFrameOk[0] && !pConcealmentInfo->prevFrameOk[1] && frameOk) ) { in CConcealment_UpdateState()
1637 pConcealmentInfo->cntValidFrames += 1; in CConcealment_UpdateState()
1639 pConcealmentInfo->cntValidFrames = 0; in CConcealment_UpdateState()
1644 switch (pConcealmentInfo->concealState) in CConcealment_UpdateState()
1647 if (!(pConcealmentInfo->prevFrameOk[1] || in CConcealment_UpdateState()
1648 (pConcealmentInfo->prevFrameOk[0] && !pConcealmentInfo->prevFrameOk[1] && frameOk))) { in CConcealment_UpdateState()
1651 pConcealmentInfo->concealState = ConcealState_FadeOut; in CConcealment_UpdateState()
1654 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()
1656 pConcealmentInfo->cntFadeFrames = 0; in CConcealment_UpdateState()
1657 pConcealmentInfo->cntValidFrames = 0; in CConcealment_UpdateState()
1662 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1666 pConcealmentInfo->cntFadeFrames += 1; in CConcealment_UpdateState()
1668 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1671 pConcealmentInfo->concealState = ConcealState_FadeIn; in CConcealment_UpdateState()
1672 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1673 pConcealmentInfo->cntFadeFrames-1, in CConcealment_UpdateState()
1677 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1680 if (pConcealmentInfo->cntFadeFrames >= pConcealCommonData->numFadeOutFrames) { in CConcealment_UpdateState()
1682 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()
1688 if (pConcealmentInfo->cntValidFrames > pConcealCommonData->numMuteReleaseFrames) { in CConcealment_UpdateState()
1691 pConcealmentInfo->concealState = ConcealState_FadeIn; in CConcealment_UpdateState()
1692 pConcealmentInfo->cntFadeFrames = pConcealCommonData->numFadeInFrames - 1; in CConcealment_UpdateState()
1695 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1701 pConcealmentInfo->cntFadeFrames -= 1; /* used to address the fade-in factors */ in CConcealment_UpdateState()
1703 if (frameOk || pConcealmentInfo->prevFrameOk[1]) { in CConcealment_UpdateState()
1704 if (pConcealmentInfo->cntFadeFrames < 0) { in CConcealment_UpdateState()
1706 pConcealmentInfo->concealState = ConcealState_Ok; in CConcealment_UpdateState()
1711 pConcealmentInfo->concealState = ConcealState_FadeOut; in CConcealment_UpdateState()
1712 pConcealmentInfo->cntFadeFrames = findEquiFadeFrame( pConcealCommonData, in CConcealment_UpdateState()
1713 pConcealmentInfo->cntFadeFrames+1, in CConcealment_UpdateState()
1717 pConcealmentInfo->concealState = ConcealState_Mute; in CConcealment_UpdateState()