Home
last modified time | relevance | path

Searched refs:ps_cabac (Results 1 – 12 of 12) sorted by relevance

/external/libhevc/decoder/
Dihevcd_cabac.c132 IHEVCD_ERROR_T ihevcd_cabac_init(cab_ctxt_t *ps_cabac, in ihevcd_cabac_init() argument
139 ASSERT(ps_cabac != NULL); in ihevcd_cabac_init()
150 ps_cabac->u4_range = (UWORD32)510 << RANGE_SHIFT; in ihevcd_cabac_init()
151 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, in ihevcd_cabac_init()
155 ps_cabac->u4_range = (UWORD32)510; in ihevcd_cabac_init()
156 BITS_GET(ps_cabac->u4_ofst, ps_bitstrm->pu4_buf, ps_bitstrm->u4_bit_ofst, in ihevcd_cabac_init()
162 memcpy(ps_cabac->au1_ctxt_models, 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()
178 IHEVCD_ERROR_T ihevcd_cabac_reset(cab_ctxt_t *ps_cabac, in ihevcd_cabac_reset() argument
[all …]
Dihevcd_cabac.h59 #define IHEVCD_CABAC_DECODE_BIN(u4_bin, ps_cabac, ps_bitstrm, ctxt_index) \ argument
61 UWORD32 u4_range = ps_cabac->u4_range; \
62 UWORD32 u4_ofst = ps_cabac->u4_ofst; \
64 UWORD8 *pu1_ctxt_model = &ps_cabac->au1_ctxt_models[ctxt_index]; \
112 ps_cabac->u4_range = u4_range; \
113 ps_cabac->u4_ofst = u4_ofst; \
117 #define IHEVCD_CABAC_DECODE_BIN(u4_bin, ps_cabac, ps_bitstrm, ctxt_index) \ argument
118 u4_bin = ihevcd_cabac_decode_bin(ps_cabac, ps_bitstrm, ctxt_index);
122 #define IHEVCD_CABAC_DECODE_BYPASS_BIN(u4_bin, ps_cabac, ps_bitstrm) \ argument
125 UWORD32 u4_range = ps_cabac->u4_range; \
[all …]
Dihevcd_parse_residual.c198 cab_ctxt_t *ps_cabac = &ps_codec->s_parse.s_cabac; in ihevcd_parse_residual_coding() local
226 TRACE_CABAC_CTXT("transform_skip_flag", ps_cabac->u4_range, ctxt_idx); in ihevcd_parse_residual_coding()
227 value = ihevcd_cabac_decode_bin(ps_cabac, in ihevcd_parse_residual_coding()
230 AEV_TRACE("transform_skip_flag", value, ps_cabac->u4_range); in ihevcd_parse_residual_coding()
254 TRACE_CABAC_CTXT("last_coeff_x_prefix", ps_cabac->u4_range, ctxt_idx_x); in ihevcd_parse_residual_coding()
255 last_significant_coeff_x_prefix = ihevcd_cabac_decode_bins_tunary(ps_cabac, in ihevcd_parse_residual_coding()
262 AEV_TRACE("last_coeff_x_prefix", last_significant_coeff_x_prefix, ps_cabac->u4_range); in ihevcd_parse_residual_coding()
264 TRACE_CABAC_CTXT("last_coeff_y_prefix", ps_cabac->u4_range, ctxt_idx_y); in ihevcd_parse_residual_coding()
265 last_significant_coeff_y_prefix = ihevcd_cabac_decode_bins_tunary(ps_cabac, in ihevcd_parse_residual_coding()
272 AEV_TRACE("last_coeff_y_prefix", last_significant_coeff_y_prefix, ps_cabac->u4_range); in ihevcd_parse_residual_coding()
[all …]
Dihevcd_parse_slice.c136 cab_ctxt_t *ps_cabac = &ps_codec->s_parse.s_cabac; in ihevcd_parse_transform_tree() local
153 TRACE_CABAC_CTXT("split_transform_flag", ps_cabac->u4_range, ctxt_idx); in ihevcd_parse_transform_tree()
154 split_transform_flag = ihevcd_cabac_decode_bin(ps_cabac, ps_bitstrm, ctxt_idx); in ihevcd_parse_transform_tree()
156 ps_cabac->u4_range); in ihevcd_parse_transform_tree()
195 TRACE_CABAC_CTXT("cbf_cb", ps_cabac->u4_range, ctxt_idx); in ihevcd_parse_transform_tree()
196 value = ihevcd_cabac_decode_bin(ps_cabac, ps_bitstrm, ctxt_idx); in ihevcd_parse_transform_tree()
197 AEV_TRACE("cbf_cb", value, ps_cabac->u4_range); in ihevcd_parse_transform_tree()
203 TRACE_CABAC_CTXT("cbf_cr", ps_cabac->u4_range, ctxt_idx); in ihevcd_parse_transform_tree()
204 value = ihevcd_cabac_decode_bin(ps_cabac, ps_bitstrm, ctxt_idx); in ihevcd_parse_transform_tree()
205 AEV_TRACE("cbf_cr", value, ps_cabac->u4_range); in ihevcd_parse_transform_tree()
[all …]
Dihevcd_trace.h100 m_state_mps = ps_cabac->au1_ctxt_models[m_ctxt_idx]; \
123 m_state_mps = ps_cabac->au1_ctxt_models[m_ctxt_idx]; \
/external/libavc/encoder/
Dih264e_cabac.c161 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_get_cabac_context()
471 void ih264e_cabac_encode_bin(cabac_ctxt_t *ps_cabac, WORD32 bin, in ih264e_cabac_encode_bin() argument
475 encoding_envirnoment_t *ps_cab_enc_env = &(ps_cabac->s_cab_enc_env); in ih264e_cabac_encode_bin()
530 ih264e_cabac_put_byte(ps_cabac); in ih264e_cabac_encode_bin()
574 cabac_ctxt_t *ps_cabac) in ih264e_encode_decision_bins() argument
587 ih264e_cabac_encode_bin(ps_cabac, u1_bin, in ih264e_encode_decision_bins()
617 void ih264e_cabac_encode_terminate(cabac_ctxt_t *ps_cabac, WORD32 term_bin) in ih264e_cabac_encode_terminate() argument
620 encoding_envirnoment_t *ps_cab_enc_env = &(ps_cabac->s_cab_enc_env); in ih264e_cabac_encode_terminate()
660 ih264e_cabac_put_byte(ps_cabac); in ih264e_cabac_encode_terminate()
665 ih264e_cabac_flush(ps_cabac); in ih264e_cabac_encode_terminate()
[all …]
Dih264e_cabac.h244 void ih264e_cabac_encode_bin(cabac_ctxt_t *ps_cabac, WORD32 bin,
285 cabac_ctxt_t *ps_cabac);
306 void ih264e_cabac_encode_terminate(cabac_ctxt_t *ps_cabac, WORD32 term_bin);
327 void ih264e_cabac_encode_bypass_bin(cabac_ctxt_t *ps_cabac, WORD32 bin);
355 void ih264e_cabac_encode_bypass_bins(cabac_ctxt_t *ps_cabac, UWORD32 u4_bins,
Dih264e_cabac_init.c154 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_init_cabac_table()
195 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_init_cabac_ctxt()
Dih264e_cabac_encode.c888 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_cabac_encode_residue_luma_dc()
969 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_cabac_write_chroma_residue()
1145 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_cabac_encode_residue()
1625 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_write_islice_mb_cabac()
1774 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_write_pslice_mb_cabac()
2065 cabac_ctxt_t *ps_cabac_ctxt = ps_ent_ctxt->ps_cabac; in ih264e_write_bslice_mb_cabac()
Dih264e_api.c3580 cabac_ctxt_t *ps_cabac; in ih264e_init_mem_rec() local
3612 ps_cabac = (cabac_ctxt_t *)(ps_mem_rec->pv_base); in ih264e_init_mem_rec()
3625 memset(ps_cabac, 0, sizeof(cabac_ctxt_t)); in ih264e_init_mem_rec()
3731 ps_codec->as_process[i].s_entropy.ps_cabac = ps_cabac; in ih264e_init_mem_rec()
3774 ps_codec->as_process[i].s_entropy.ps_cabac = ps_cabac; in ih264e_init_mem_rec()
3777 ps_codec->as_process[0].s_entropy.ps_cabac->ps_mb_map_ctxt_inc_base = in ih264e_init_mem_rec()
Dih264e_structs.h911 cabac_ctxt_t *ps_cabac; member
Dih264e_process.c285 cabac_ctxt_t *ps_cabac_ctxt = ps_entropy->ps_cabac; in ih264e_entropy()