Lines Matching defs:sf
662 * @param sf array of scalefactors or intensity stereo positions
666 static int decode_scalefactors(AACContext * ac, float sf[120], GetBitContext * gb,
679 sf[idx] = 0.;
688 sf[idx] = ff_aac_pow2sf_tab[-offset[2] + 300];
701 sf[idx] = -ff_aac_pow2sf_tab[ offset[1] + sf_offset + 100];
711 sf[idx] = -ff_aac_pow2sf_tab[ offset[0] + sf_offset];
804 * @param sf array of scalefactors or intensity stereo positions
811 static int decode_spectrum_and_dequant(AACContext * ac, float coef[1024], GetBitContext * gb, float sf[120],
841 scale = sf[idx] / sqrtf(band_energy);
900 coef[coef_tmp_idx ] *= sf[idx];
901 coef[coef_tmp_idx + 1] *= sf[idx];
903 coef[coef_tmp_idx + 2] *= sf[idx];
904 coef[coef_tmp_idx + 3] *= sf[idx];
919 if (band_type[idx] != NOISE_BT && sf[idx]) {
922 co /= sf[idx];
925 coef_base[ pulse->pos[i] ] = cbrtf(fabsf(ico)) * ico * sf[idx];
1040 if (decode_scalefactors(ac, sce->sf, gb, global_gain, ics, sce->band_type, sce->band_type_run_end) < 0)
1063 if (decode_spectrum_and_dequant(ac, out, gb, sce->sf, pulse_present, &pulse, ics, sce->band_type) < 0)
1122 scale = c * sce1->sf[idx];