Update to not count unprocessed blocks. This increase performance at startup.

git-svn-id: http://webrtc.googlecode.com/svn/trunk@177 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
bjornv@google.com 2011-07-07 13:57:28 +00:00
parent e8ba343b93
commit 67c6769b1d
2 changed files with 6 additions and 6 deletions

View File

@ -872,8 +872,6 @@ int WebRtcNs_ProcessCore(NSinst_t *inst,
deltaGainHB = deltaBweHB;
}
//
inst->blockInd++;
//
updateParsFlag = inst->modelUpdatePars[0];
//
@ -980,6 +978,8 @@ int WebRtcNs_ProcessCore(NSinst_t *inst,
return 0;
}
//
inst->blockInd++; // Update the block index only when we process a block.
// FFT
rdft(inst->anaLen, 1, winData, inst->ip, inst->wfft);

View File

@ -1897,10 +1897,6 @@ int WebRtcNsx_ProcessCore(NsxInst_t *inst, short *speechFrame, short *speechFram
return -1;
}
// Update block index
inst->blockIndex++;
//
// Store speechFrame and transform to frequency domain
WebRtcNsx_DataAnalysis(inst, speechFrame, magnU16);
@ -1924,6 +1920,10 @@ int WebRtcNsx_ProcessCore(NsxInst_t *inst, short *speechFrame, short *speechFram
return 0;
}
// Update block index when we have something to process
inst->blockIndex++;
//
// Norm of magn
qMagn = inst->normData - inst->stages;