Home
last modified time | relevance | path

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

/external/libhevc/encoder/
Dihevce_cabac.c654 WORD32 num_bins, unary_length; in ihevce_cabac_encode_egk() local
669 GETRANGE(unary_length, u4_sym_shiftk_plus1); in ihevce_cabac_encode_egk()
672 u4_unary_bins = (1 << unary_length) - 2; in ihevce_cabac_encode_egk()
675 u4_egk = (u4_unary_bins << (unary_length - 1)) | in ihevce_cabac_encode_egk()
676 (u4_sym_shiftk_plus1 & ((1 << (unary_length - 1)) - 1)); in ihevce_cabac_encode_egk()
682 num_bins = (2 * unary_length) - 1 + k; in ihevce_cabac_encode_egk()
721 WORD32 num_bins, unary_length, u4_unary_bins; in ihevce_cabac_encode_trunc_rice() local
734 unary_length = (u4_sym >> c_rice_param) + 1; in ihevce_cabac_encode_trunc_rice()
737 u4_unary_bins = (1 << unary_length) - 2; in ihevce_cabac_encode_trunc_rice()
743 num_bins = unary_length + c_rice_param; in ihevce_cabac_encode_trunc_rice()
Dihevce_cabac_tu.c2144 WORD32 num_bins, unary_length; in ihevce_cabac_residue_encode_rdopt() local
2182 GETRANGE(unary_length, u4_sym_shiftk_plus1); in ihevce_cabac_residue_encode_rdopt()
2185 num_bins = (2 * unary_length) + rice_param; in ihevce_cabac_residue_encode_rdopt()
2202 unary_length = (abs_coeff_rem >> rice_param) + 1; in ihevce_cabac_residue_encode_rdopt()
2205 num_bins = unary_length + rice_param; in ihevce_cabac_residue_encode_rdopt()
/external/libavc/encoder/
Dih264e_cabac.c117 WORD32 unary_length; in ih264e_cabac_UEGk0_binarization() local
122 unary_length = (32 - CLZ(u4_sufs_shiftk_plus1) + (0 == u4_sufs_shiftk_plus1)); in ih264e_cabac_UEGk0_binarization()
125 u4_unary_bins = (1 << unary_length) - 2; in ih264e_cabac_UEGk0_binarization()
128 u4_egk = (u4_unary_bins << (unary_length - 1)) in ih264e_cabac_UEGk0_binarization()
129 | (u4_sufs_shiftk_plus1 & ((1 << (unary_length - 1)) - 1)); in ih264e_cabac_UEGk0_binarization()
132 *pi1_bins_len = (2 * unary_length) - 1; in ih264e_cabac_UEGk0_binarization()