Lines Matching refs:u4_range
150 ps_cabac->u4_range = (UWORD32)510 << RANGE_SHIFT; in ihevcd_cabac_init()
155 ps_cabac->u4_range = (UWORD32)510; in ihevcd_cabac_init()
165 DEBUG_RANGE_OFST("init", ps_cabac->u4_range, ps_cabac->u4_ofst); in ihevcd_cabac_init()
170 if(ps_cabac->u4_ofst >= ps_cabac->u4_range) in ihevcd_cabac_init()
190 ps_cabac->u4_range = (UWORD32)510 << RANGE_SHIFT; in ihevcd_cabac_reset()
195 ps_cabac->u4_range = (UWORD32)510; in ihevcd_cabac_reset()
235 UWORD32 u4_range = ps_cabac->u4_range; in ihevcd_cabac_decode_bin() local
247 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bin()
251 clz = CLZ(u4_range); in ihevcd_cabac_decode_bin()
253 u4_qnt_range = u4_range << clz; in ihevcd_cabac_decode_bin()
256 u4_qnt_range = (u4_range >> 6) & 0x3; in ihevcd_cabac_decode_bin()
263 u4_range -= u4_rlps; in ihevcd_cabac_decode_bin()
267 if(u4_ofst >= u4_range) in ihevcd_cabac_decode_bin()
270 u4_ofst -= u4_range; in ihevcd_cabac_decode_bin()
271 u4_range = u4_rlps; in ihevcd_cabac_decode_bin()
279 if(u4_range < (1 << 8)) in ihevcd_cabac_decode_bin()
283 numbits = CLZ(u4_range); in ihevcd_cabac_decode_bin()
293 u4_range <<= numbits; in ihevcd_cabac_decode_bin()
297 ps_cabac->u4_range = u4_range; in ihevcd_cabac_decode_bin()
299 DEBUG_RANGE_OFST("bin", ps_cabac->u4_range, ps_cabac->u4_ofst); in ihevcd_cabac_decode_bin()
329 UWORD32 u4_range = ps_cabac->u4_range; in ihevcd_cabac_decode_bypass_bin() local
334 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bypass_bin()
343 if(u4_ofst >= u4_range) in ihevcd_cabac_decode_bypass_bin()
346 u4_ofst -= u4_range; in ihevcd_cabac_decode_bypass_bin()
351 DEBUG_RANGE_OFST("bypass end", ps_cabac->u4_range, ps_cabac->u4_ofst); in ihevcd_cabac_decode_bypass_bin()
377 UWORD32 u4_range = ps_cabac->u4_range; in ihevcd_cabac_decode_terminate() local
384 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_terminate()
386 clz = CLZ(u4_range); in ihevcd_cabac_decode_terminate()
388 u4_range -= 2 << (RANGE_SHIFT - clz); in ihevcd_cabac_decode_terminate()
390 u4_range -= 2; in ihevcd_cabac_decode_terminate()
393 if(u4_ofst >= u4_range) in ihevcd_cabac_decode_terminate()
402 clz = CLZ(ps_cabac->u4_range); in ihevcd_cabac_decode_terminate()
420 numbits = CLZ(u4_range); in ihevcd_cabac_decode_terminate()
433 u4_range <<= numbits; in ihevcd_cabac_decode_terminate()
437 ps_cabac->u4_range = u4_range; in ihevcd_cabac_decode_terminate()
439 DEBUG_RANGE_OFST("term", ps_cabac->u4_range, ps_cabac->u4_ofst); in ihevcd_cabac_decode_terminate()
475 UWORD32 u4_range = ps_cabac->u4_range; in ihevcd_cabac_decode_bypass_bins() local
478 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bypass_bins()
498 if(u4_ofst >= u4_range) in ihevcd_cabac_decode_bypass_bins()
501 u4_ofst -= u4_range; in ihevcd_cabac_decode_bypass_bins()
507 DEBUG_RANGE_OFST("bypass", ps_cabac->u4_range, ps_cabac->u4_ofst); in ihevcd_cabac_decode_bypass_bins()
611 UWORD32 u4_range = ps_cabac->u4_range; in ihevcd_cabac_decode_bypass_bins_tunary() local
615 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bypass_bins_tunary()
627 if(u4_ofst >= u4_range) in ihevcd_cabac_decode_bypass_bins_tunary()
630 u4_ofst -= u4_range; in ihevcd_cabac_decode_bypass_bins_tunary()