Lines Matching refs:scaleEnergies
133 INT *scaleEnergies, FIXP_DBL EnergyTotal, INT nSfb, INT start, INT border, in spectralChange() argument
157 FDK_ASSERT(scaleEnergies[0] >= 0); in spectralChange()
158 FDK_ASSERT(scaleEnergies[1] >= 0); in spectralChange()
160 energies_e = 19 - fMin(scaleEnergies[0], scaleEnergies[1]); in spectralChange()
175 prevEnergies_e_diff = scaleEnergies[0] - in spectralChange()
176 fMin(scaleEnergies[0], scaleEnergies[1]) + in spectralChange()
178 newEnergies_e_diff = scaleEnergies[1] - in spectralChange()
179 fMin(scaleEnergies[0], scaleEnergies[1]) + in spectralChange()
263 static FIXP_DBL addLowbandEnergies(FIXP_DBL **Energies, int *scaleEnergies, in addLowbandEnergies() argument
297 nrgTotal_m = fAddNorm(accu1, (sc1 - 5) - scaleEnergies[0], accu2, in addLowbandEnergies()
298 (sc2 - 5) - scaleEnergies[1], &nrgTotal_e); in addLowbandEnergies()
323 INT *scaleEnergies, INT YBufferWriteOffset, in addHighbandEnergies() argument
357 scale[0] = fixMin(8, scaleEnergies[0]); in addHighbandEnergies()
358 scale[1] = fixMin(8, scaleEnergies[1]); in addHighbandEnergies()
360 if ((scaleEnergies[0] - scale[0]) > (DFRACT_BITS - 1) || in addHighbandEnergies()
361 (scaleEnergies[1] - scale[1]) > (DFRACT_BITS - 1)) in addHighbandEnergies()
372 nrgTotal = accu >> (scaleEnergies[0] - scale[0]); in addHighbandEnergies()
379 nrgTotal = fAddSaturate(nrgTotal, accu >> (scaleEnergies[1] - scale[1])); in addHighbandEnergies()
394 FIXP_DBL **Energies, INT *scaleEnergies, in FDKsbrEnc_frameSplitter() argument
418 Energies, scaleEnergies, YBufferWriteOffset, YBufferSzShift, in FDKsbrEnc_frameSplitter()
422 addHighbandEnergies(Energies, scaleEnergies, YBufferWriteOffset, in FDKsbrEnc_frameSplitter()
439 (scaleEnergies[0] < 32 || scaleEnergies[1] < 32)) /* i.e. > 31 */ { in FDKsbrEnc_frameSplitter()
440 delta = spectralChange(EnergiesM, scaleEnergies, EnergyTotal, nSfb, 0, in FDKsbrEnc_frameSplitter()
471 INT *RESTRICT scaleEnergies, in calculateThresholds() argument
486 commonScale = fixMin(scaleEnergies[0], scaleEnergies[1]); in calculateThresholds()
489 scaleFactor0 = fixMin((scaleEnergies[0] - commonScale), (DFRACT_BITS - 1)); in calculateThresholds()
490 scaleFactor1 = fixMin((scaleEnergies[1] - commonScale), (DFRACT_BITS - 1)); in calculateThresholds()
552 FIXP_DBL **RESTRICT Energies, INT *RESTRICT scaleEnergies, in extractTransientCandidates() argument
563 tmpScaleEnergies0 = scaleEnergies[0]; in extractTransientCandidates()
564 tmpScaleEnergies1 = scaleEnergies[1]; in extractTransientCandidates()
650 FIXP_DBL **Energies, INT *scaleEnergies, in FDKsbrEnc_transientDetect() argument
678 calculateThresholds(Energies, scaleEnergies, h_sbrTran->thresholds, in FDKsbrEnc_transientDetect()
683 Energies, scaleEnergies, h_sbrTran->thresholds, h_sbrTran->transients, in FDKsbrEnc_transientDetect()
909 const FIXP_DBL *const *Energies, const int *const scaleEnergies, in FDKsbrEnc_fastTransientDetect() argument
987 (-scaleEnergies[0] + 2 * QMF_SCALE_OFFSET) + (10 + 6) - in FDKsbrEnc_fastTransientDetect()
991 (-scaleEnergies[1] + 2 * QMF_SCALE_OFFSET) + (10 + 6) - in FDKsbrEnc_fastTransientDetect()