mirror of
https://gitlab.com/ecodis/exhale.git
synced 2025-01-23 20:20:52 +01:00
editorial changes
This commit is contained in:
parent
ae36f449ae
commit
9ece3e4f70
@ -193,10 +193,10 @@ unsigned TempAnalyzer::temporalAnalysis (const int32_t* const timeSignals[USAC_M
|
||||
m_tempAnaStats[ch] = 0; // flat/stationary frame
|
||||
m_transientLoc[ch] = -1;
|
||||
// re-init stats history for this channel
|
||||
m_avgAbsHpPrev[ch] = 0; // sumAbsValR >> 9
|
||||
m_avgAbsHpPrev[ch] = 0;
|
||||
m_maxAbsHpPrev[ch] = 0; // maxAbsValR
|
||||
m_maxIdxHpPrev[ch] = 1; // (unsigned) maxAbsIdxR
|
||||
m_pitchLagPrev[ch] = 0; // (unsigned) pLagBestR
|
||||
m_maxIdxHpPrev[ch] = 1; // maxAbsIdxR
|
||||
m_pitchLagPrev[ch] = 0; // pLagBestR
|
||||
}
|
||||
else // nonzero signal in the current frame
|
||||
{
|
||||
@ -249,9 +249,9 @@ unsigned TempAnalyzer::temporalAnalysis (const int32_t* const timeSignals[USAC_M
|
||||
pLagBestR = pLag;
|
||||
}
|
||||
#if TA_MORE_PITCH_TESTS
|
||||
if (pLagBestR > 0) // try half or double
|
||||
if (pLagBestR >= halfFrameOffset) // half
|
||||
{
|
||||
pLag = (pLagBestR < halfFrameOffset ? pLagBestR << 1 : pLagBestR >> 1);
|
||||
pLag = pLagBestR >> 1;
|
||||
pSgn = (((chSig[maxAbsIdxR] - chSigM1[maxAbsIdxR] > 0) && (chSig[maxAbsIdxR-pLag] - chSigM1[maxAbsIdxR-pLag] < 0)) ||
|
||||
((chSig[maxAbsIdxR] - chSigM1[maxAbsIdxR] < 0) && (chSig[maxAbsIdxR-pLag] - chSigM1[maxAbsIdxR-pLag] > 0)) ? -1 : 1);
|
||||
if ((sumAbsValL = applyPitchPred (chSig, halfFrameOffset, pLag, pSgn)) < sumAbsPpL)
|
||||
|
Loading…
Reference in New Issue
Block a user