Lines Matching refs:av_clip
207 sce->sf_idx[w*16+g] = av_clip(roundf(log2f(sce->is_ener[w*16+g])*2), -155, 100); in set_special_band_scalefactors()
210 sce->sf_idx[w*16+g] = av_clip(3+ceilf(log2f(sce->pns_ener[w*16+g])*2), -100, 155); in set_special_band_scalefactors()
227 …sce->sf_idx[w*16+g] = prevscaler_i = av_clip(sce->sf_idx[w*16+g], prevscaler_i - SCALE_MAX_DIFF, p… in set_special_band_scalefactors()
229 …sce->sf_idx[w*16+g] = prevscaler_n = av_clip(sce->sf_idx[w*16+g], prevscaler_n - SCALE_MAX_DIFF, p… in set_special_band_scalefactors()
266 q0 = av_clip(coef2minsf(q0f), 0, SCALE_MAX_POS-1); in search_for_quantizers_anmr()
268 q1 = av_clip(coef2maxsf(q1f), 1, SCALE_MAX_POS); in search_for_quantizers_anmr()
287 q1 = av_clip(q0+1, 1, SCALE_MAX_POS); in search_for_quantizers_anmr()
288 q0 = av_clip(q1-1, 0, SCALE_MAX_POS - 1); in search_for_quantizers_anmr()
336 minscale = av_clip(minscale - q0, 0, TRELLIS_STATES - 1); in search_for_quantizers_anmr()
337 maxscale = av_clip(maxscale - q0, 0, TRELLIS_STATES); in search_for_quantizers_anmr()
339 maxscale = av_clip(minscale+1, 1, TRELLIS_STATES); in search_for_quantizers_anmr()
340 minscale = av_clip(maxscale-1, 0, TRELLIS_STATES - 1); in search_for_quantizers_anmr()
521 minscaler = av_clip(minscaler, 60, 255 - SCALE_MAX_DIFF); in search_for_quantizers_fast()
532 … sce->sf_idx[w*16+g] = av_clip(sce->sf_idx[w*16+g], minscaler, minscaler + SCALE_MAX_DIFF); in search_for_quantizers_fast()
632 noise_sfi = av_clip(roundf(log2f(pns_tgt_energy)*2), -100, 155); /* Quantize */ in search_for_pns()
809 mididx = av_clip(minidx, 0, SCALE_MAX_POS - SCALE_DIV_512); in search_for_ms()
810 sididx = av_clip(minidx - sid_sf_boost * 3, 0, SCALE_MAX_POS - SCALE_DIV_512); in search_for_ms()