Home
last modified time | relevance | path

Searched refs:fac_shift (Results 1 – 3 of 3) sorted by relevance

/external/libxaac/decoder/
Dixheaacd_aac_ec.c228 WORD32 fac_shift; in ixheaacd_aac_ec_interpolate() local
232 fac_shift = in ixheaacd_aac_ec_interpolate()
234 fac_mod = fac_shift & 3; in ixheaacd_aac_ec_interpolate()
235 fac_shift = (fac_shift >> 2) + 1; in ixheaacd_aac_ec_interpolate()
236 fac_shift += *ptr_spec_scale_prev - max(*ptr_spec_scale_prev, *ptr_spec_scale_act); in ixheaacd_aac_ec_interpolate()
237 fac_shift = max(min(fac_shift, INT_BITS - 1), -(INT_BITS - 1)); in ixheaacd_aac_ec_interpolate()
242 ptr_spec_coeff[line] = ixheaacd_shl32_dir_sat(accu, fac_shift); in ixheaacd_aac_ec_interpolate()
Dixheaacd_usac_ec.c144 WORD32 fac_shift; in ixheaacd_usac_ec_interpolate() local
148 fac_shift = in ixheaacd_usac_ec_interpolate()
150 fac_mod = fac_shift & 3; in ixheaacd_usac_ec_interpolate()
151 fac_shift = (fac_shift >> 2) + 1; in ixheaacd_usac_ec_interpolate()
152 fac_shift += *pq_spec_coeff_prev - ixheaacd_max16(*pq_spec_coeff_prev, *pq_spec_coeff_act); in ixheaacd_usac_ec_interpolate()
153 fac_shift = ixheaacd_max32(ixheaacd_min32(fac_shift, INT_BITS - 1), -(INT_BITS - 1)); in ixheaacd_usac_ec_interpolate()
158 ptr_spectrum[l] = ixheaacd_shl32_dir_sat((WORD32)accu, fac_shift); in ixheaacd_usac_ec_interpolate()
/external/aac/libAACdec/src/
Dconceal.cpp1231 int fac_shift; in CConcealment_InterpolateBuffer() local
1235 fac_shift = in CConcealment_InterpolateBuffer()
1237 fac_mod = fac_shift & 3; in CConcealment_InterpolateBuffer()
1238 fac_shift = (fac_shift >> 2) + 1; in CConcealment_InterpolateBuffer()
1239 fac_shift += *pSpecScalePrv - fixMax(*pSpecScalePrv, *pSpecScaleAct); in CConcealment_InterpolateBuffer()
1240 fac_shift = fMax(fMin(fac_shift, DFRACT_BITS - 1), -(DFRACT_BITS - 1)); in CConcealment_InterpolateBuffer()
1244 *(spectrum + line) = scaleValue(accu, fac_shift); in CConcealment_InterpolateBuffer()