/external/libhevc/decoder/ |
D | ihevcd_deblk.c | 101 WORD32 ctb_size; in ihevcd_deblk_ctb() local 139 ctb_size = (1 << ps_sps->i1_log2_ctb_size); in ihevcd_deblk_ctb() 172 pu2_ctb_no_loop_filter_flag += (ctb_size >> 3); in ihevcd_deblk_ctb() 182 pu1_qp += (ctb_size >> 3); in ihevcd_deblk_ctb() 184 for(row = 0; row < (ctb_size >> 3) + 1; row++) in ihevcd_deblk_ctb() 185 … au2_ctb_no_loop_filter_flag[row] = ps_deblk->au2_ctb_no_loop_filter_flag[row] >> (ctb_size >> 3); in ihevcd_deblk_ctb() 235 for(col = 0; col < ctb_size / 8; col++) in ihevcd_deblk_ctb() 258 for(row = 0; row < ctb_size / 4;) in ihevcd_deblk_ctb() 268 if((row + bs_tz) >= (ctb_size / 4)) in ihevcd_deblk_ctb() 269 pu1_src += 4 * (ctb_size / 4 - row) * src_strd; in ihevcd_deblk_ctb() [all …]
|
D | ihevcd_boundary_strength.c | 225 WORD32 ctb_size; in ihevcd_ctb_boundary_strength_islice() local 241 ctb_size = (1 << log2_ctb_size); in ihevcd_ctb_boundary_strength_islice() 261 vert_bs0_tmp = pu4_vert_bs[0] & (0xFFFFFFFF >> (sizeof(UWORD32) * 8 - ctb_size / 2)); in ihevcd_ctb_boundary_strength_islice() 262 horz_bs0_tmp = pu4_horz_bs[0] & (0xFFFFFFFF >> (sizeof(UWORD32) * 8 - ctb_size / 2)); 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() 367 pu4_vert_bs[0] &= (64 == ctb_size) ? 0 : ((UWORD32)0xFFFFFFFF) << (ctb_size / 2); in ihevcd_ctb_boundary_strength_islice() 375 pu4_vert_bs[0] &= (64 == ctb_size) ? 0 : ((UWORD32)0xFFFFFFFF) << (ctb_size / 2); in ihevcd_ctb_boundary_strength_islice() 395 … pu4_vert_bs[0] &= (64 == ctb_size) ? 0 : ((UWORD32)0xFFFFFFFF) << (ctb_size / 2); in ihevcd_ctb_boundary_strength_islice() 415 pu4_horz_bs[0] &= (64 == ctb_size) ? 0 : ((UWORD32)0xFFFFFFFF) << (ctb_size / 2); in ihevcd_ctb_boundary_strength_islice() 426 if(num_rows_remaining < (ctb_size >> 3)) in ihevcd_ctb_boundary_strength_islice() [all …]
|
D | ihevcd_ilf_padding.c | 85 WORD32 ctb_size; in ihevcd_ilf_pad_frame() local 90 ctb_size = (1 << ps_sps->i1_log2_ctb_size); in ihevcd_ilf_pad_frame() 156 + (i4_ctb_x * ctb_size in ihevcd_ilf_pad_frame() 157 + i4_ctb_y * ctb_size in ihevcd_ilf_pad_frame() 160 + i4_ctb_x * ctb_size in ihevcd_ilf_pad_frame() 161 + (i4_ctb_y * ctb_size * ps_codec->i4_strd / 2); in ihevcd_ilf_pad_frame() 168 pad_ht_luma = ctb_size; in ihevcd_ilf_pad_frame() 170 pad_ht_chroma = ctb_size / 2; in ihevcd_ilf_pad_frame() 182 pad_ht_luma = ctb_size; in ihevcd_ilf_pad_frame() 184 pad_ht_chroma = ctb_size / 2; in ihevcd_ilf_pad_frame()
|
D | ihevcd_process_slice.c | 537 WORD32 ctb_size = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_process() local 542 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); in ihevcd_process() 666 + (ps_proc->i4_ctb_x * ctb_size / MIN_PU_SIZE); in ihevcd_process() 701 WORD32 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); in ihevcd_process() 707 WORD32 ctb_size_in_min_pu = (ctb_size / MIN_PU_SIZE); in ihevcd_process() 740 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); in ihevcd_process() 744 …op_left_pu_idx = ps_proc->pu4_pic_pu_idx_top[((ps_proc->i4_ctb_x + 1) * ctb_size / MIN_PU_SIZE) - … in ihevcd_process() 745 for(i = 0; i < ctb_size / MIN_PU_SIZE; i++) in ihevcd_process() 750 … pu4_nbr_pu_idx[(ctb_size / MIN_PU_SIZE) + (i + 1) * nbr_pu_idx_strd]; in ihevcd_process() 753 … ps_proc->pu4_pic_pu_idx_top[(ps_proc->i4_ctb_x * ctb_size / MIN_PU_SIZE) + i] = in ihevcd_process() [all …]
|
D | ihevcd_iquant_itrans_recon_ctb.c | 346 WORD32 ctb_size) in ihevcd_get_intra_nbr_flag() argument 377 x_cur = ps_proc->i4_ctb_x * ctb_size + cur_x * MIN_TU_SIZE; in ihevcd_get_intra_nbr_flag() 378 y_cur = ps_proc->i4_ctb_y * ctb_size + cur_y * MIN_TU_SIZE; in ihevcd_get_intra_nbr_flag() 499 WORD32 ctb_size_top = MIN(ctb_size, cols_remaining); in ihevcd_get_intra_nbr_flag() 507 WORD32 ctb_size_bot = MIN(ctb_size, rows_remaining); in ihevcd_get_intra_nbr_flag() 535 WORD32 ctb_size; in ihevcd_iquant_itrans_recon_ctb() local 589 ctb_size = (1 << ps_sps->i1_log2_ctb_size); in ihevcd_iquant_itrans_recon_ctb() 626 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); in ihevcd_iquant_itrans_recon_ctb() 633 … >> (1 + ctb_size / MIN_TU_SIZE)); /* 1+ctb_size/4 position bit pos from msb */ in ihevcd_iquant_itrans_recon_ctb() 639 WORD32 ctb_size_top = MIN(ctb_size, cols_remaining); in ihevcd_iquant_itrans_recon_ctb() [all …]
|
D | ihevcd_get_mv.c | 122 WORD32 ctb_size, ctb_size_in_min_pu; in ihevcd_get_mv_ctb() local 142 ctb_size = (1 << ps_sps->i1_log2_ctb_size); in ihevcd_get_mv_ctb() 144 ctb_size_in_min_pu = (ctb_size / MIN_PU_SIZE); in ihevcd_get_mv_ctb() 171 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); in ihevcd_get_mv_ctb() 184 WORD32 ctb_size_top = MIN(ctb_size, cols_remaining); in ihevcd_get_mv_ctb() 185 WORD32 shift = (31 - (ctb_size / MIN_TU_SIZE)); in ihevcd_get_mv_ctb() 190 shift += ((ctb_size - ctb_size_top) / MIN_TU_SIZE); in ihevcd_get_mv_ctb()
|
D | ihevcd_sao.c | 89 WORD32 ctb_size; in ihevcd_sao_ctb() local 116 ctb_size = (1 << log2_ctb_size); in ihevcd_sao_ctb() 135 sao_wd_luma = MIN(ctb_size, remaining_cols); in ihevcd_sao_ctb() 136 sao_wd_chroma = MIN(ctb_size, remaining_cols); in ihevcd_sao_ctb() 139 sao_ht_luma = MIN(ctb_size, remaining_rows); in ihevcd_sao_ctb() 140 sao_ht_chroma = MIN(ctb_size, remaining_rows) / 2; in ihevcd_sao_ctb() 148 ((ps_sao_ctxt->i4_ctb_y * ctb_size) / 8) * loop_filter_strd + in ihevcd_sao_ctb() 149 ((ps_sao_ctxt->i4_ctb_x * ctb_size) / 64); in ihevcd_sao_ctb() 530 WORD32 ctb_size; in ihevcd_sao_shift_ctb() local 583 ctb_size = (1 << log2_ctb_size); in ihevcd_sao_shift_ctb() [all …]
|
D | ihevcd_parse_slice.c | 2200 WORD32 ctb_size = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_set_ctb_skip() local 2212 ctb_skip_ht = MIN(ctb_size, rows_remaining); in ihevcd_set_ctb_skip() 2216 ctb_skip_wd = MIN(ctb_size, cols_remaining); in ihevcd_set_ctb_skip() 2301 WORD32 ctb_size; in ihevcd_parse_slice_data() local 2328 ctb_size = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_parse_slice_data() 2329 num_min4x4_in_ctb = (ctb_size / 4) * (ctb_size / 4); in ihevcd_parse_slice_data() 3070 + (ps_codec->s_parse.i4_ctb_x * ctb_size / MIN_PU_SIZE); in ihevcd_parse_slice_data() 3101 WORD32 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); in ihevcd_parse_slice_data() 3114 WORD32 ctb_size_in_min_pu = (ctb_size / MIN_PU_SIZE); in ihevcd_parse_slice_data() 3147 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); in ihevcd_parse_slice_data() [all …]
|
D | ihevcd_mv_merge.c | 155 WORD32 ctb_size; in ihevcd_collocated_mvp() local 168 ctb_size = (1 << log2_ctb_size); in ihevcd_collocated_mvp() 190 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); in ihevcd_collocated_mvp() 205 if(xp_col == ctb_size) in ihevcd_collocated_mvp() 208 * (ctb_size / MIN_PU_SIZE) + (xp_col >> 2)]; in ihevcd_collocated_mvp()
|
/external/libhevc/encoder/ |
D | ihevce_enc_subpel_gen.c | 223 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; in ihevce_pad_interp_recon_ctb() local 225 (vert_ctr * ctb_size * ps_pad_interp_recon->i4_luma_recon_stride) + in ihevce_pad_interp_recon_ctb() 226 (ctb_ctr * ctb_size); in ihevce_pad_interp_recon_ctb() 228 (vert_ctr * ctb_size * ps_pad_interp_recon->i4_luma_recon_stride) + in ihevce_pad_interp_recon_ctb() 229 (ctb_ctr * ctb_size); in ihevce_pad_interp_recon_ctb() 231 (vert_ctr * ctb_size * ps_pad_interp_recon->i4_luma_recon_stride) + in ihevce_pad_interp_recon_ctb() 232 (ctb_ctr * ctb_size); in ihevce_pad_interp_recon_ctb() 247 pu1_src = (UWORD8 *)ps_pad_interp_recon->pu1_luma_recon + (vert_ctr * ctb_size * stride) + in ihevce_pad_interp_recon_ctb() 248 (ctb_ctr * ctb_size); in ihevce_pad_interp_recon_ctb() 255 (vert_ctr * (ctb_size >> (0 == u1_is_422)) * stride_uv) + (ctb_ctr * ctb_size); in ihevce_pad_interp_recon_ctb() [all …]
|
D | ihevce_deblk.c | 281 WORD32 ctb_size; in ihevce_deblk_ctb() local 329 ctb_size = ps_deblk->i4_ctb_size; in ihevce_deblk_ctb() 340 num_columns_for_vert_filt = ctb_size / 8; in ihevce_deblk_ctb() 341 num_blks_for_vert_filt = ctb_size / 4; in ihevce_deblk_ctb() 404 num_columns_for_vert_filt = ctb_size / 16; in ihevce_deblk_ctb() 406 num_blks_for_vert_filt = (0 == u1_is_422) ? (ctb_size / 2) / 4 : (ctb_size) / 4; in ihevce_deblk_ctb() 477 col_size = ctb_size / 4; in ihevce_deblk_ctb() 498 num_rows_for_horz_filt = ctb_size / 8; in ihevce_deblk_ctb() 566 (UWORD8)(((u4_bs << ((ctb_size >> 1) - 2))) >> 30); in ihevce_deblk_ctb() 577 col_size = ctb_size / 8; in ihevce_deblk_ctb() [all …]
|
D | ihevce_memory_init.c | 172 WORD32 ctb_size; in ihevce_mem_manager_init() local 248 ctb_size = ps_enc_ctxt->ps_stat_prms->s_config_prms.i4_max_log2_cu_size; in ihevce_mem_manager_init() 254 ctb_size = 1 << ctb_size; in ihevce_mem_manager_init() 292 num_cu_in_ctb = ctb_size / MIN_CU_SIZE; in ihevce_mem_manager_init() 295 num_pu_in_ctb = ctb_size / MIN_PU_SIZE; in ihevce_mem_manager_init() 298 num_tu_in_ctb = ctb_size / MIN_PU_SIZE; in ihevce_mem_manager_init() 308 ctb_size); in ihevce_mem_manager_init() 309 num_ctb_horz = num_ctb_horz / ctb_size; in ihevce_mem_manager_init() 318 ctb_size); in ihevce_mem_manager_init() 319 num_ctb_vert = num_ctb_vert / ctb_size; in ihevce_mem_manager_init() [all …]
|
D | ihevce_nbr_avail.c | 125 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; in ihevce_set_ctb_nbr() local 133 UWORD8 *pu1_top_rt_nbr_map = pu1_top_nbr_map + (ctb_size >> 2); in ihevce_set_ctb_nbr() 134 WORD32 num_4x4_ctb_x = (ctb_size >> 2); in ihevce_set_ctb_nbr() 135 WORD32 num_4x4_ctb_y = (ctb_size >> 2); in ihevce_set_ctb_nbr() 140 num_4x4_ctb_y = (cu_aligned_pic_ht - ((num_ctb_vert - 1) * ctb_size)) / 4; in ihevce_set_ctb_nbr() 145 num_4x4_ctb_x = (cu_aligned_pic_wd - ((num_ctb_horz - 1) * ctb_size)) / 4; in ihevce_set_ctb_nbr() 182 WORD32 last_ctb_x = cu_aligned_pic_wd - ((num_ctb_horz - 1) * ctb_size); in ihevce_set_ctb_nbr()
|
D | ihevce_enc_loop_pass.c | 1733 WORD32 ctb_size; in ihevce_enc_loop_process_row() local 1752 ctb_size = ps_frm_ctb_prms->i4_ctb_size; in ihevce_enc_loop_process_row() 1790 last_hz_ctb_wd = ps_frm_ctb_prms->i4_cu_aligned_pic_wd - ((num_ctbs_horz_pic - 1) * ctb_size); in ihevce_enc_loop_process_row() 1794 ((ps_frm_ctb_prms->i4_num_ctbs_vert - 1) * ctb_size); in ihevce_enc_loop_process_row() 1804 s_cu_prms.i4_ctb_size = ctb_size; in ihevce_enc_loop_process_row() 1832 (ps_tile_params->i4_first_ctb_x * (ctb_size >> 3)); //one vertical edge per 8x8 block in ihevce_enc_loop_process_row() 1834 (ps_tile_params->i4_first_ctb_x * (ctb_size >> 3)); //one horizontal edge per 8x8 block in ihevce_enc_loop_process_row() 1835 s_deblk_ctb_row_params.pi1_ctb_row_qp += (ps_tile_params->i4_first_ctb_x * (ctb_size >> 2)); in ihevce_enc_loop_process_row() 1881 cur_ctb_wd = ctb_size; in ihevce_enc_loop_process_row() 1891 cur_ctb_ht = ctb_size; in ihevce_enc_loop_process_row() [all …]
|
D | ihevce_sao.c | 199 WORD32 luma_src_stride, ctb_size; in ihevce_sao_ctb() local 228 ctb_size = ps_sao_ctxt->i4_ctb_size; in ihevce_sao_ctb() 247 ps_sao_ctxt->pu1_frm_luma_recon_buf + ctb_size * ps_sao_ctxt->i4_frm_luma_recon_stride - in ihevce_sao_ctb() 248 1 + (ps_sao_ctxt->i4_frm_luma_recon_stride * ps_sao_ctxt->i4_ctb_y * ctb_size) + in ihevce_sao_ctb() 249 (ps_sao_ctxt->i4_ctb_x * ctb_size); /* Bottom left*/ in ihevce_sao_ctb() 311 ctb_size = ps_sao_ctxt->i4_ctb_size; in ihevce_sao_ctb() 333 (ctb_size >> !u1_is_422) * ps_sao_ctxt->i4_frm_chroma_recon_stride - 2 + in ihevce_sao_ctb() 335 (ctb_size >> !u1_is_422)) + in ihevce_sao_ctb() 336 (ps_sao_ctxt->i4_ctb_x * ctb_size); /* Bottom left*/ in ihevce_sao_ctb() 438 WORD32 luma_src_stride, luma_recon_stride, ctb_size, ctb_wd, ctb_ht; in ihevce_sao_analyse() local [all …]
|
D | ihevce_mv_pred_merge.c | 178 WORD32 ctb_size; in ihevce_collocated_mvp() local 190 ctb_size = (1 << log2_ctb_size); in ihevce_collocated_mvp() 205 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); in ihevce_collocated_mvp() 222 if(xp_col == ctb_size) in ihevce_collocated_mvp() 227 pu_cnt = pu1_pic_pu_map_ctb[(yp_col >> 2) * (ctb_size / MIN_PU_SIZE) + (xp_col >> 2)]; in ihevce_collocated_mvp()
|
D | ihevce_cabac_cu_pu.c | 1670 WORD32 ctb_size = (1 << (log2_cb_size + ct_depth)); in ihevce_encode_coding_quadtree() local 1684 left_avail = (x0_frm & (ctb_size - 1)) ? 1 : ps_ctb->s_ctb_nbr_avail_flags.u1_left_avail; in ihevce_encode_coding_quadtree() 1685 top_avail = (y0_frm & (ctb_size - 1)) ? 1 : ps_ctb->s_ctb_nbr_avail_flags.u1_top_avail; in ihevce_encode_coding_quadtree() 1691 ASSERT(((ps_enc_cu->b3_cu_pos_x << 3) + cu_size) <= (UWORD32)ctb_size); in ihevce_encode_coding_quadtree() 1692 ASSERT(((ps_enc_cu->b3_cu_pos_y << 3) + cu_size) <= (UWORD32)ctb_size); in ihevce_encode_coding_quadtree() 1902 WORD32 log2_ctb_size, ctb_size; in ihevce_encode_slice_data() local 1931 ctb_size = (1 << 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() 2084 x0_frm += ctb_size; in ihevce_encode_slice_data() 2100 y0_frm += ctb_size; in ihevce_encode_slice_data()
|
D | ihevce_bs_compute_ctb.c | 135 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; in ihevce_bs_init_ctb() local 163 memset(pu4_horz_bs, 0, ((ctb_size >> 3) + 1) * sizeof(UWORD32)); in ihevce_bs_init_ctb() 164 memset(pu4_vert_bs, 0, ((ctb_size >> 3) + 1) * sizeof(UWORD32)); in ihevce_bs_init_ctb()
|
D | ihevce_multi_thrd_funcs.c | 736 WORD32 ctb_size; in ihevce_prepare_pre_enc_job_queue() local 772 ctb_size = 1 << (u4_log_ctb_size - 1 - layer_no); in ihevce_prepare_pre_enc_job_queue() 773 ai4_decomp_num_vert_units_lyr[layer_no] = ((a_ht[layer_no] + ctb_size) & ~(ctb_size - 1)) >> in ihevce_prepare_pre_enc_job_queue()
|
D | ihevce_coarse_me_pass.c | 1216 S32 ctb_size = 64, num_layers, i, j, k; in ihevce_coarse_me_get_lyr_prms_job_que() local 1238 unit_ht_c = ctb_size; in ihevce_coarse_me_get_lyr_prms_job_que() 1270 unit_ht_n = ctb_size; in ihevce_coarse_me_get_lyr_prms_job_que()
|
D | ihevce_encode_header.c | 1513 WORD32 ctb_size = (1 << log2_ctb_size); in ihevce_generate_slice_header() local 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()
|
D | hme_interface.c | 2212 WORD32 ctb_size = 64, num_enc_layers = 1, use_4x4 = 1, i; in ihevce_coarse_me_get_lyr_prms_dep_mngr() local 2225 unit_ht_c = ctb_size; in ihevce_coarse_me_get_lyr_prms_dep_mngr() 2251 unit_ht_n = ctb_size; in ihevce_coarse_me_get_lyr_prms_dep_mngr()
|
D | hme_refine.c | 6935 WORD32 ctb_size; in hme_refine() local 6987 ctb_size = block_ht * block_wd; //ctb_width * ctb_height; in hme_refine() 6988 num_comp_had_blocks = ctb_size / (had_block_size * had_block_size); in hme_refine()
|