Home
last modified time | relevance | path

Searched refs:log2_ctb_size (Results 1 – 15 of 15) sorted by relevance

/external/libhevc/decoder/
Dihevcd_boundary_strength.c224 WORD32 log2_ctb_size; in ihevcd_ctb_boundary_strength_islice() local
240 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_ctb_boundary_strength_islice()
241 ctb_size = (1 << log2_ctb_size); in ihevcd_ctb_boundary_strength_islice()
245 bs_strd = (ps_sps->i2_pic_wd_in_ctb + 1) << (2 * log2_ctb_size - 7); in ihevcd_ctb_boundary_strength_islice()
248 (ps_bs_ctxt->i4_ctb_x << (2 * log2_ctb_size - 7)) + in ihevcd_ctb_boundary_strength_islice()
251 (ps_bs_ctxt->i4_ctb_x << (2 * log2_ctb_size - 7)) + in ihevcd_ctb_boundary_strength_islice()
255 qp_strd = ps_sps->i2_pic_wd_in_ctb << (log2_ctb_size - 3); in ihevcd_ctb_boundary_strength_islice()
256 …txt->pu1_pic_qp + ((ps_bs_ctxt->i4_ctb_x + ps_bs_ctxt->i4_ctb_y * qp_strd) << (log2_ctb_size - 3)); in ihevcd_ctb_boundary_strength_islice()
272 memset(pu4_vert_bs, 0, (1 << (2 * log2_ctb_size - 7)) + ((ctb_size >> 5) << 1)); in ihevcd_ctb_boundary_strength_islice()
273 memset(pu4_horz_bs, 0, (1 << (2 * log2_ctb_size - 7))); in ihevcd_ctb_boundary_strength_islice()
[all …]
Dihevcd_deblk.c102 WORD32 log2_ctb_size; in ihevcd_deblk_ctb() local
138 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_deblk_ctb()
143 bs_strd = (ps_sps->i2_pic_wd_in_ctb + 1) << (2 * log2_ctb_size - 7); in ihevcd_deblk_ctb()
146 (ps_deblk->i4_ctb_x << (2 * log2_ctb_size - 7)) + in ihevcd_deblk_ctb()
151 (ps_deblk->i4_ctb_x << (2 * log2_ctb_size - 7)) + in ihevcd_deblk_ctb()
155 qp_strd = ps_sps->i2_pic_wd_in_ctb << (log2_ctb_size - 3); in ihevcd_deblk_ctb()
156 …_bs_ctxt.pu1_pic_qp + ((ps_deblk->i4_ctb_x + ps_deblk->i4_ctb_y * qp_strd) << (log2_ctb_size - 3)); in ihevcd_deblk_ctb()
169 memset(pu4_vert_bs, 0, 1 << (2 * log2_ctb_size - 7)); in ihevcd_deblk_ctb()
171 pu1_qp += (qp_strd << (log2_ctb_size - 3)); in ihevcd_deblk_ctb()
178 pu4_horz_bs = (UWORD32 *)((UWORD8 *)pu4_horz_bs + (1 << (2 * log2_ctb_size - 7))); in ihevcd_deblk_ctb()
[all …]
Dihevcd_sao.c90 WORD32 log2_ctb_size; in ihevcd_sao_ctb() local
117 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_sao_ctb()
118 ctb_size = (1 << log2_ctb_size); in ihevcd_sao_ctb()
120 …s_sao_ctxt->i4_ctb_x + ps_sao_ctxt->i4_ctb_y * ps_sao_ctxt->ps_codec->i4_strd) << (log2_ctb_size)); in ihevcd_sao_ctb()
121 …o_ctxt->i4_ctb_x + ps_sao_ctxt->i4_ctb_y * ps_sao_ctxt->ps_codec->i4_strd / 2) << (log2_ctb_size)); in ihevcd_sao_ctb()
136 … remaining_cols = ps_sps->i2_pic_width_in_luma_samples - (ps_sao_ctxt->i4_ctb_x << log2_ctb_size); in ihevcd_sao_ctb()
140 … remaining_rows = ps_sps->i2_pic_height_in_luma_samples - (ps_sao_ctxt->i4_ctb_y << log2_ctb_size); in ihevcd_sao_ctb()
144 … pu1_src_top_luma = ps_sao_ctxt->pu1_sao_src_top_luma + (ps_sao_ctxt->i4_ctb_x << log2_ctb_size); in ihevcd_sao_ctb()
145 …u1_src_top_chroma = ps_sao_ctxt->pu1_sao_src_top_chroma + (ps_sao_ctxt->i4_ctb_x << log2_ctb_size); in ihevcd_sao_ctb()
146 … pu1_src_left_luma = ps_sao_ctxt->pu1_sao_src_left_luma + (ps_sao_ctxt->i4_ctb_y << log2_ctb_size); in ihevcd_sao_ctb()
[all …]
Dihevcd_mv_merge.c154 WORD32 log2_ctb_size; in ihevcd_collocated_mvp() local
167 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_collocated_mvp()
168 ctb_size = (1 << log2_ctb_size); in ihevcd_collocated_mvp()
192 if(((part_pos_y >> log2_ctb_size) == (y_col >> log2_ctb_size)) in ihevcd_collocated_mvp()
193 … && ((x_col + (ps_mv_ctxt->i4_ctb_x << log2_ctb_size)) < ps_sps->i2_pic_width_in_luma_samples) in ihevcd_collocated_mvp()
194 && (((y_col + (ps_mv_ctxt->i4_ctb_y << log2_ctb_size)) in ihevcd_collocated_mvp()
199 col_ctb_x = ps_mv_ctxt->i4_ctb_x + (xp_col >> log2_ctb_size); in ihevcd_collocated_mvp()
200 col_ctb_y = ps_mv_ctxt->i4_ctb_y + (yp_col >> log2_ctb_size); in ihevcd_collocated_mvp()
Dihevcd_process_slice.c1058 WORD32 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_process() local
1064 … bit_pos = ((ps_proc->i4_ctb_y << (log2_ctb_size - 3)) - 1) * loop_filter_strd + (ps_proc->i4_ctb_… in ihevcd_process()
Dihevcd_parse_slice.c2905 WORD32 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_parse_slice_data() local
2917 qp_strd = ps_sps->i2_pic_wd_in_ctb << (log2_ctb_size - 3); in ihevcd_parse_slice_data()
2918 …_qp + ((ps_codec->s_parse.i4_ctb_x + ps_codec->s_parse.i4_ctb_y * qp_strd) << (log2_ctb_size - 3)); in ihevcd_parse_slice_data()
/external/libhevc/encoder/
Dihevce_cabac_rdo.c146 WORD32 log2_ctb_size = in ihevce_entropy_rdo_frame_init() local
153 ASSERT((log2_ctb_size >= 3) && (log2_ctb_size <= 6)); in ihevce_entropy_rdo_frame_init()
172 ps_rdopt_entropy_ctxt->as_cu_entropy_ctxt[0].i1_log2_ctb_size = log2_ctb_size; in ihevce_entropy_rdo_frame_init()
174 ps_rdopt_entropy_ctxt->as_cu_entropy_ctxt[1].i1_log2_ctb_size = log2_ctb_size; in ihevce_entropy_rdo_frame_init()
379 WORD32 log2_ctb_size = ps_cur_cu_entropy->i1_log2_ctb_size; in ihevce_entropy_rdo_encode_cu() local
386 ASSERT((cu_size >= 8) && (cu_size <= (1 << log2_ctb_size))); in ihevce_entropy_rdo_encode_cu()
387 ASSERT((cu_pos_x >= 0) && (cu_pos_x <= (1 << (log2_ctb_size - 3)))); in ihevce_entropy_rdo_encode_cu()
388 ASSERT((cu_pos_y >= 0) && (cu_pos_y <= (1 << (log2_ctb_size - 3)))); in ihevce_entropy_rdo_encode_cu()
392 cu_depth = log2_ctb_size - log2_cu_size; in ihevce_entropy_rdo_encode_cu()
Dihevce_mv_pred_merge.c177 WORD32 log2_ctb_size; in ihevce_collocated_mvp() local
189 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevce_collocated_mvp()
190 ctb_size = (1 << log2_ctb_size); in ihevce_collocated_mvp()
207 if(((part_pos_y >> log2_ctb_size) == (y_col >> log2_ctb_size)) && in ihevce_collocated_mvp()
208 … (((x_col + (ps_mv_ctxt->i4_ctb_x << log2_ctb_size)) < ps_sps->i2_pic_width_in_luma_samples) || in ihevce_collocated_mvp()
210 ((((y_col + (ps_mv_ctxt->i4_ctb_y << log2_ctb_size)) < in ihevce_collocated_mvp()
216 col_ctb_x = ps_mv_ctxt->i4_ctb_x + (xp_col >> log2_ctb_size); in ihevce_collocated_mvp()
217 col_ctb_y = ps_mv_ctxt->i4_ctb_y + (yp_col >> log2_ctb_size); in ihevce_collocated_mvp()
Dihevce_cabac_cu_pu.c1902 WORD32 log2_ctb_size, ctb_size; in ihevce_encode_slice_data() local
1928 log2_ctb_size = in ihevce_encode_slice_data()
1931 ctb_size = (1 << log2_ctb_size); in ihevce_encode_slice_data()
1934 ASSERT((log2_ctb_size >= 3) && (log2_ctb_size <= 6)); in ihevce_encode_slice_data()
1936 ps_entropy_ctxt->i1_log2_ctb_size = (WORD8)log2_ctb_size; in ihevce_encode_slice_data()
1942 num_ctb_in_row = (ps_sps->i2_pic_width_in_luma_samples + ctb_size - 1) >> log2_ctb_size; in ihevce_encode_slice_data()
1987 x0_frm = ps_entropy_ctxt->i4_ctb_x << log2_ctb_size; in ihevce_encode_slice_data()
1988 y0_frm = ps_entropy_ctxt->i4_ctb_y << log2_ctb_size; in ihevce_encode_slice_data()
2080 ps_entropy_ctxt, x0_frm, y0_frm, log2_ctb_size, 0, ps_ctb, ps_tile_params); in ihevce_encode_slice_data()
Dihevce_encode_header.c1511 WORD32 log2_ctb_size = in ihevce_generate_slice_header() local
1513 WORD32 ctb_size = (1 << log2_ctb_size); in ihevce_generate_slice_header()
1516 WORD32 num_ctb_in_row = (pic_width + ctb_size - 1) >> log2_ctb_size; in ihevce_generate_slice_header()
1589 num_ctb_in_pic = ((pic_width + (ctb_size - 1)) >> log2_ctb_size) * in ihevce_generate_slice_header()
1590 ((pic_height + (ctb_size - 1)) >> log2_ctb_size); in ihevce_generate_slice_header()
Dihevce_enc_cu_recursion.c368 WORD32 cu_depth, log2_ctb_size, log2_cu_size; in ihevce_store_cu_results() local
485 GETRANGE(log2_ctb_size, ps_cu_prms->i4_ctb_size); in ihevce_store_cu_results()
487 cu_depth = log2_ctb_size - log2_cu_size; in ihevce_store_cu_results()
Dihevce_enc_loop_pass.c1522 WORD32 diff_cu_qp_delta_depth, log2_ctb_size; in ihevce_cu_mode_decide() local
1528 log2_ctb_size = ps_entropy_ctxt->i1_log2_ctb_size; in ihevce_cu_mode_decide()
1531 log2_min_cu_qp_delta_size = log2_ctb_size - diff_cu_qp_delta_depth; in ihevce_cu_mode_decide()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vcn_dec.c380 unsigned block_size, log2_ctb_size, width_in_ctb, height_in_ctb, num_16x16_block_per_ctb; in calc_ctx_size_h265_main10() local
397 log2_ctb_size = block_size + pic->pps->sps->log2_diff_max_min_luma_coding_block_size; in calc_ctx_size_h265_main10()
399 width_in_ctb = (width + ((1 << log2_ctb_size) - 1)) >> log2_ctb_size; in calc_ctx_size_h265_main10()
400 height_in_ctb = (height + ((1 << log2_ctb_size) - 1)) >> log2_ctb_size; in calc_ctx_size_h265_main10()
402 num_16x16_block_per_ctb = ((1 << log2_ctb_size) >> 4) * ((1 << log2_ctb_size) >> 4); in calc_ctx_size_h265_main10()
Dradeon_uvd.c301 unsigned block_size, log2_ctb_size, width_in_ctb, height_in_ctb, num_16x16_block_per_ctb; in calc_ctx_size_h265_main10() local
317 log2_ctb_size = block_size + pic->pps->sps->log2_diff_max_min_luma_coding_block_size; in calc_ctx_size_h265_main10()
319 width_in_ctb = (width + ((1 << log2_ctb_size) - 1)) >> log2_ctb_size; in calc_ctx_size_h265_main10()
320 height_in_ctb = (height + ((1 << log2_ctb_size) - 1)) >> log2_ctb_size; in calc_ctx_size_h265_main10()
322 num_16x16_block_per_ctb = ((1 << log2_ctb_size) >> 4) * ((1 << log2_ctb_size) >> 4); in calc_ctx_size_h265_main10()
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_uvd.c250 unsigned block_size, log2_ctb_size, width_in_ctb, height_in_ctb, num_16x16_block_per_ctb; in calc_ctx_size_h265_main10() local
266 log2_ctb_size = block_size + pic->pps->sps->log2_diff_max_min_luma_coding_block_size; in calc_ctx_size_h265_main10()
268 width_in_ctb = (width + ((1 << log2_ctb_size) - 1)) >> log2_ctb_size; in calc_ctx_size_h265_main10()
269 height_in_ctb = (height + ((1 << log2_ctb_size) - 1)) >> log2_ctb_size; in calc_ctx_size_h265_main10()
271 num_16x16_block_per_ctb = ((1 << log2_ctb_size) >> 4) * ((1 << log2_ctb_size) >> 4); in calc_ctx_size_h265_main10()