/external/libhevc/decoder/ |
ihevcd_deblk.c | 101 WORD32 ctb_size; local 139 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 142 /* ctb_size * ctb_size / 8 / 16 is the number of bytes needed per CTB */ 165 /* ctb_size/8 is the number of edges per CTB 166 * ctb_size/4 is the number of BS values needed per edge 172 pu2_ctb_no_loop_filter_flag += (ctb_size >> 3); 182 pu1_qp += (ctb_size >> 3); 184 for(row = 0; row < (ctb_size >> 3) + 1; row++) 185 au2_ctb_no_loop_filter_flag[row] = ps_deblk->au2_ctb_no_loop_filter_flag[row] >> (ctb_size >> 3) [all...] |
ihevcd_ilf_padding.c | 85 WORD32 ctb_size; local 90 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 156 + (i4_ctb_x * ctb_size 157 + i4_ctb_y * ctb_size 160 + i4_ctb_x * ctb_size 161 + (i4_ctb_y * ctb_size * ps_codec->i4_strd / 2); 168 pad_ht_luma = ctb_size; 170 pad_ht_chroma = ctb_size / 2; 182 pad_ht_luma = ctb_size; 184 pad_ht_chroma = ctb_size / 2 [all...] |
ihevcd_process_slice.c | 537 WORD32 ctb_size = 1 << ps_sps->i1_log2_ctb_size; local 542 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); 640 //ihevcd_ctb_boundary_strength_islice(ps_proc, ctb_size); 666 + (ps_proc->i4_ctb_x * ctb_size / MIN_PU_SIZE); 701 WORD32 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); 707 WORD32 ctb_size_in_min_pu = (ctb_size / MIN_PU_SIZE); 740 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); 744 ps_proc->u4_ctb_top_left_pu_idx = ps_proc->pu4_pic_pu_idx_top[((ps_proc->i4_ctb_x + 1) * ctb_size / MIN_PU_SIZE) - 1] 1388 WORD32 ctb_size; local [all...] |
ihevcd_boundary_strength.c | 225 WORD32 ctb_size; local 241 ctb_size = (1 << log2_ctb_size); 244 /* ctb_size * ctb_size / 8 / 16 is the number of bytes needed per CTB */ 254 /* ctb_size/8 elements per CTB */ 261 vert_bs0_tmp = pu4_vert_bs[0] & (0xFFFFFFFF >> (sizeof(UWORD32) * 8 - ctb_size / 2)); 262 horz_bs0_tmp = pu4_horz_bs[0] & (0xFFFFFFFF >> (sizeof(UWORD32) * 8 - ctb_size / 2)); 264 /* ctb_size/8 is the number of edges per CTB 265 * ctb_size/4 is the number of BS values needed per edge 269 memset(pu4_vert_bs, 0, (ctb_size / 8 + 1) * (ctb_size / 4) / 8 * 2 ) 477 WORD32 ctb_size; local [all...] |
ihevcd_get_mv.c | 122 WORD32 ctb_size, ctb_size_in_min_pu; local 127 UWORD32 *pu4_nbr_pu_idx/* (Left + ctb_size + right ) * (top + ctb_size + bottom) */; 142 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 144 ctb_size_in_min_pu = (ctb_size / MIN_PU_SIZE); 171 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); 178 >> (1 + ctb_size_in_min_pu)); /* 1+ctb_size/4 position bit pos from msb */ 184 WORD32 ctb_size_top = MIN(ctb_size, cols_remaining); 185 WORD32 shift = (31 - (ctb_size / MIN_TU_SIZE)); 190 shift += ((ctb_size - ctb_size_top) / MIN_TU_SIZE) [all...] |
ihevcd_iquant_itrans_recon_ctb.c | 346 WORD32 ctb_size) 377 x_cur = ps_proc->i4_ctb_x * ctb_size + cur_x * MIN_TU_SIZE; 378 y_cur = ps_proc->i4_ctb_y * ctb_size + cur_y * MIN_TU_SIZE; 499 WORD32 ctb_size_top = MIN(ctb_size, cols_remaining); 507 WORD32 ctb_size_bot = MIN(ctb_size, rows_remaining); 535 WORD32 ctb_size; local 588 ctb_size = (1 << ps_sps->i1_log2_ctb_size); 625 WORD32 ctb_size_left = MIN(ctb_size, rows_remaining); 632 >> (1 + ctb_size / MIN_TU_SIZE)); /* 1+ctb_size/4 position bit pos from msb * [all...] |
ihevcd_mv_merge.c | 155 WORD32 ctb_size; local 168 ctb_size = (1 << log2_ctb_size); 190 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); 205 if(xp_col == ctb_size) 208 * (ctb_size / MIN_PU_SIZE) + (xp_col >> 2)];
|
ihevcd_sao.c | 89 WORD32 ctb_size; local 118 ctb_size = (1 << log2_ctb_size); 137 sao_wd_luma = MIN(ctb_size, remaining_cols); 138 sao_wd_chroma = MIN(ctb_size, remaining_cols); 141 sao_ht_luma = MIN(ctb_size, remaining_rows); 142 sao_ht_chroma = MIN(ctb_size, remaining_rows) / 2; 150 ((ps_sao_ctxt->i4_ctb_y * ctb_size) / 8) * loop_filter_strd + 151 ((ps_sao_ctxt->i4_ctb_x * ctb_size) / 64); 532 WORD32 ctb_size; local 589 ctb_size = (1 << log2_ctb_size) [all...] |
ihevcd_parse_slice.c | 2200 WORD32 ctb_size = 1 << ps_sps->i1_log2_ctb_size; local 2301 WORD32 ctb_size; local [all...] |
/external/libhevc/encoder/ |
ihevce_deblk.c | 281 WORD32 ctb_size; local 329 ctb_size = ps_deblk->i4_ctb_size; 340 num_columns_for_vert_filt = ctb_size / 8; 341 num_blks_for_vert_filt = ctb_size / 4; 404 num_columns_for_vert_filt = ctb_size / 16; 405 /* blk_size is 4 and chroma_ctb_height is ctb_size/2 */ 406 num_blks_for_vert_filt = (0 == u1_is_422) ? (ctb_size / 2) / 4 : (ctb_size) / 4; 477 col_size = ctb_size / 4; 498 num_rows_for_horz_filt = ctb_size / 8 [all...] |
ihevce_enc_subpel_gen.c | 224 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; local 226 (vert_ctr * ctb_size * ps_pad_interp_recon->i4_luma_recon_stride) + 227 (ctb_ctr * ctb_size); 229 (vert_ctr * ctb_size * ps_pad_interp_recon->i4_luma_recon_stride) + 230 (ctb_ctr * ctb_size); 232 (vert_ctr * ctb_size * ps_pad_interp_recon->i4_luma_recon_stride) + 233 (ctb_ctr * ctb_size); 255 pu1_src = (UWORD8 *)ps_pad_interp_recon->pu1_luma_recon + (vert_ctr * ctb_size * stride) + 256 (ctb_ctr * ctb_size); 263 (vert_ctr * (ctb_size >> (0 == u1_is_422)) * stride_uv) + (ctb_ctr * ctb_size) 492 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; local [all...] |
ihevce_nbr_avail.c | 125 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; local 133 UWORD8 *pu1_top_rt_nbr_map = pu1_top_nbr_map + (ctb_size >> 2); 134 WORD32 num_4x4_ctb_x = (ctb_size >> 2); 135 WORD32 num_4x4_ctb_y = (ctb_size >> 2); 140 num_4x4_ctb_y = (cu_aligned_pic_ht - ((num_ctb_vert - 1) * ctb_size)) / 4; 145 num_4x4_ctb_x = (cu_aligned_pic_wd - ((num_ctb_horz - 1) * ctb_size)) / 4; 182 WORD32 last_ctb_x = cu_aligned_pic_wd - ((num_ctb_horz - 1) * ctb_size);
|
ihevce_enc_loop_pass.c | 1726 WORD32 ctb_size; local 2062 WORD32 ctb_size; local 2134 WORD32 ctb_size; local 3527 WORD32 ctb_size = 64; local 4404 UWORD32 u4_ctb_aligned_wd, ctb_size, u4_ctb_aligned_ht, num_vert_units; local [all...] |
ihevce_memory_init.c | 172 WORD32 ctb_size; local 248 ctb_size = ps_enc_ctxt->ps_stat_prms->s_config_prms.i4_max_log2_cu_size; 254 ctb_size = 1 << ctb_size; 292 num_cu_in_ctb = ctb_size / MIN_CU_SIZE; 295 num_pu_in_ctb = ctb_size / MIN_PU_SIZE; 298 num_tu_in_ctb = ctb_size / MIN_PU_SIZE; 308 ctb_size); 309 num_ctb_horz = num_ctb_horz / ctb_size; 318 ctb_size); [all...] |
ihevce_sao.c | 199 WORD32 luma_src_stride, ctb_size; local 228 ctb_size = ps_sao_ctxt->i4_ctb_size; 247 ps_sao_ctxt->pu1_frm_luma_recon_buf + ctb_size * ps_sao_ctxt->i4_frm_luma_recon_stride - 248 1 + (ps_sao_ctxt->i4_frm_luma_recon_stride * ps_sao_ctxt->i4_ctb_y * ctb_size) + 249 (ps_sao_ctxt->i4_ctb_x * ctb_size); /* Bottom left*/ 311 ctb_size = ps_sao_ctxt->i4_ctb_size; 333 (ctb_size >> !u1_is_422) * ps_sao_ctxt->i4_frm_chroma_recon_stride - 2 + 335 (ctb_size >> !u1_is_422)) + 336 (ps_sao_ctxt->i4_ctb_x * ctb_size); /* Bottom left*/ 438 WORD32 luma_src_stride, luma_recon_stride, ctb_size, ctb_wd, ctb_ht local [all...] |
ihevce_mv_pred_merge.c | 178 WORD32 ctb_size; local 190 ctb_size = (1 << log2_ctb_size); 205 num_minpu_in_ctb = (ctb_size / MIN_PU_SIZE) * (ctb_size / MIN_PU_SIZE); 222 if(xp_col == ctb_size) 227 pu_cnt = pu1_pic_pu_map_ctb[(yp_col >> 2) * (ctb_size / MIN_PU_SIZE) + (xp_col >> 2)]; [all...] |
ihevce_cabac_cu_pu.c | 1670 WORD32 ctb_size = (1 << (log2_cb_size + ct_depth)); local 1902 WORD32 log2_ctb_size, ctb_size; local [all...] |
ihevce_bs_compute_ctb.c | 120 * @param[in] ctb_size 135 WORD32 ctb_size = ps_frm_ctb_prms->i4_ctb_size; local 162 /* Initializing the bs array to 0. array size = (ctb_size/8 + 1)*4 bytes */ 163 memset(pu4_horz_bs, 0, ((ctb_size >> 3) + 1) * sizeof(UWORD32)); 164 memset(pu4_vert_bs, 0, ((ctb_size >> 3) + 1) * sizeof(UWORD32));
|
ihevce_multi_thrd_funcs.c | 749 WORD32 ctb_size; local 785 ctb_size = 1 << (u4_log_ctb_size - 1 - layer_no); 786 ai4_decomp_num_vert_units_lyr[layer_no] = ((a_ht[layer_no] + ctb_size) & ~(ctb_size - 1)) >> [all...] |
ihevce_coarse_me_pass.c | 1216 S32 ctb_size = 64, num_layers, i, j, k; local [all...] |
ihevce_encode_header.c | 1513 WORD32 ctb_size = (1 << log2_ctb_size); local [all...] |
hme_interface.c | 2212 WORD32 ctb_size = 64, num_enc_layers = 1, use_4x4 = 1, i; local [all...] |
hme_refine.c | 6935 WORD32 ctb_size; local [all...] |