Home
last modified time | relevance | path

Searched refs:MAX_CTB_SIZE (Results 1 – 24 of 24) sorted by relevance

/external/libhevc/common/
Dihevc_defs.h305 #define MIN_TILE_WD MAX_CTB_SIZE
308 #define MIN_TILE_HT MAX_CTB_SIZE
341 #define MAX_CTB_SIZE 64 macro
368 #define MAX_TU_IN_CTB_ROW ((MAX_CTB_SIZE / MIN_TU_SIZE))
371 #define MAX_CU_IN_CTB_ROW ((MAX_CTB_SIZE / MIN_CU_SIZE))
374 #define MAX_PU_IN_CTB_ROW ((MAX_CTB_SIZE / MIN_PU_SIZE))
377 #define MAX_CU_IN_CTB ((MAX_CTB_SIZE / MIN_CU_SIZE) * \
378 (MAX_CTB_SIZE / MIN_CU_SIZE))
385 #define MAX_PU_IN_CTB ((MAX_CTB_SIZE / MIN_PU_SIZE) * \
386 (MAX_CTB_SIZE / MIN_PU_SIZE))
[all …]
Dihevc_sao.c199 UWORD8 au1_mask[MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class0()
200 UWORD8 au1_src_left_tmp[MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class0()
208 memset(au1_mask, 0xFF, MAX_CTB_SIZE); in ihevc_sao_edge_offset_class0()
282 UWORD8 au1_mask[MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class0_chroma()
283 UWORD8 au1_src_left_tmp[2 * MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class0_chroma()
292 memset(au1_mask, 0xFF, MAX_CTB_SIZE); in ihevc_sao_edge_offset_class0_chroma()
378 UWORD8 au1_mask[MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class1()
379 UWORD8 au1_src_top_tmp[MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class1()
380 WORD8 au1_sign_up[MAX_CTB_SIZE]; in ihevc_sao_edge_offset_class1()
389 memset(au1_mask, 0xFF, MAX_CTB_SIZE); in ihevc_sao_edge_offset_class1()
[all …]
/external/libhevc/encoder/
Dihevce_ipe_structs.h46 ((MAX_CTB_SIZE == MIN_TU_SIZE) \
48 : (MAX_CTB_SIZE == (MIN_TU_SIZE << 1) \
50 : (MAX_CTB_SIZE == (MIN_TU_SIZE << 2) \
52 : (MAX_CTB_SIZE == (MIN_TU_SIZE << 3) ? 37 : 53))))
55 ((MAX_CTB_SIZE == MIN_TU_SIZE) \
57 : (MAX_CTB_SIZE == (MIN_TU_SIZE << 1) \
59 : (MAX_CTB_SIZE == (MIN_TU_SIZE << 2) \
61 : (MAX_CTB_SIZE == (MIN_TU_SIZE << 3) ? 13 : 17))))
72 #define MAX_TU_ROW_IN_CTB (MAX_CTB_SIZE >> 2)
73 #define MAX_TU_COL_IN_CTB (MAX_CTB_SIZE >> 2)
Dihevce_tile_interface.c159 i4_ctb_aligned_tgt_frame_wd += SET_CTB_ALIGN(i4_ctb_aligned_tgt_frame_wd, MAX_CTB_SIZE); in ihevce_update_tile_params()
163 i4_ctb_aligned_tgt_frame_ht += SET_CTB_ALIGN(i4_ctb_aligned_tgt_frame_ht, MAX_CTB_SIZE); in ihevce_update_tile_params()
394 MAX_CTB_SIZE); in ihevce_tiles_get_mem_recs()
397 MAX_CTB_SIZE); in ihevce_tiles_get_mem_recs()
399 u4_ctb_in_a_row = (ctb_aligned_frame_width / MAX_CTB_SIZE); in ihevce_tiles_get_mem_recs()
400 u4_ctb_rows_in_a_frame = (ctb_aligned_frame_height / MAX_CTB_SIZE); in ihevce_tiles_get_mem_recs()
402 ps_frm_ctb_prms->i4_tile_id_ctb_map_stride = (ctb_aligned_frame_width / MAX_CTB_SIZE); in ihevce_tiles_get_mem_recs()
468 frame_width_in_ctb += SET_CTB_ALIGN(frame_width_in_ctb, MAX_CTB_SIZE); in ihevce_tiles_mem_init()
469 frame_width_in_ctb /= MAX_CTB_SIZE; in ihevce_tiles_mem_init()
Dihevce_enc_loop_structs.h899 WORD16 MEM_ALIGN16 ai2_horz_scratch[MAX_CTB_SIZE * (MAX_CTB_SIZE + 8)];
902 WORD16 MEM_ALIGN16 ai2_scratch_buf_l0[MAX_CTB_SIZE * MAX_CTB_SIZE];
905 WORD16 MEM_ALIGN16 ai2_scratch_buf_l1[MAX_CTB_SIZE * MAX_CTB_SIZE];
989 UWORD32 au4_horz_bs[(MAX_CTB_SIZE >> 3) + 1];
992 UWORD32 au4_vert_bs[(MAX_CTB_SIZE >> 3) + 1];
1010 UWORD8 au1_prev_bs[MAX_CTB_SIZE >> 3];
1015 UWORD8 au1_prev_bs_uv[MAX_CTB_SIZE >> 3];
1628 UWORD8 au1_sao_src_left_luma[MAX_CTB_SIZE];
1644 UWORD8 au1_sao_src_left_chroma[MAX_CTB_SIZE * 2];
1679 UWORD8 au1_left_luma_scratch[MAX_CTB_SIZE];
[all …]
Dihevce_enc_loop_pass.c601 cu_top_right_offset = -(MAX_CTB_SIZE); in ihevce_cu_mode_decide()
607 cu_top_right_offset = -(ps_col_tile_params->i4_first_sample_x + (MAX_CTB_SIZE)); in ihevce_cu_mode_decide()
966 cu_top_right_offset = -(MAX_CTB_SIZE); in ihevce_cu_mode_decide()
972 cu_top_right_offset = -(ps_col_tile_params->i4_first_sample_x + (MAX_CTB_SIZE)); in ihevce_cu_mode_decide()
1379 rd_opt_best_idx * ((MAX_CTB_SIZE * MAX_CTB_SIZE >> 1) + in ihevce_cu_mode_decide()
1380 (u1_is_422 * (MAX_CTB_SIZE * MAX_CTB_SIZE >> 1))); in ihevce_cu_mode_decide()
1616 cu_top_right_offset = -(MAX_CTB_SIZE); in ihevce_cu_mode_decide()
1623 cu_top_right_offset = -(ps_col_tile_params->i4_first_sample_x + (MAX_CTB_SIZE)); in ihevce_cu_mode_decide()
2299 ASSERT(ps_ctb_in->u1_num_cus_in_ctb <= MAX_CTB_SIZE); in ihevce_enc_loop_process_row()
2324 ASSERT(ps_ctb_in->u1_num_cus_in_ctb <= MAX_CTB_SIZE); in ihevce_enc_loop_process_row()
[all …]
Dihevce_decomp_pre_intra_structs.h185 UWORD8 au1_wkg_mem[((MAX_CTB_SIZE >> 1) * (MAX_CTB_SIZE + 2 * NUM_EXTRA_ROWS_REQ))];
Dihevce_enc_cu_recursion.c1602 cu_top_right_offset = -(MAX_CTB_SIZE); in ihevce_compute_rdo()
1607 cu_top_right_offset = -(ps_col_tile_params->i4_first_sample_x + (MAX_CTB_SIZE)); in ihevce_compute_rdo()
2654 UWORD8 au1_cu_pu_map[(MAX_CTB_SIZE / MIN_PU_SIZE) * (MAX_CTB_SIZE / MIN_PU_SIZE)]; in ihevce_cu_recurse_decide()
2663 (MAX_CTB_SIZE / MIN_PU_SIZE) * (MAX_CTB_SIZE / MIN_PU_SIZE)); in ihevce_cu_recurse_decide()
2907 (MAX_CTB_SIZE / MIN_PU_SIZE) * (MAX_CTB_SIZE / MIN_PU_SIZE)); in ihevce_cu_recurse_decide()
2955 (MAX_CTB_SIZE / MIN_PU_SIZE) * (MAX_CTB_SIZE / MIN_PU_SIZE)); in ihevce_cu_recurse_decide()
Dhme_defs.h2905 WORD16 MEM_ALIGN16 ai2_horz_scratch[MAX_CTB_SIZE * (MAX_CTB_SIZE + 8)];
2908 WORD16 MEM_ALIGN16 ai2_scratch_buf_l0[MAX_CTB_SIZE * MAX_CTB_SIZE];
2911 WORD16 MEM_ALIGN16 ai2_scratch_buf_l1[MAX_CTB_SIZE * MAX_CTB_SIZE];
Dihevce_recur_bracketing.c2526 } while(blk_cnt != MAX_CTB_SIZE); in ihevce_bracketing_analysis()
3124 pu1_ref_orig += (4 * MAX_CTB_SIZE + 1); in ihevce_mode_eval_filtering()
3125 pu1_ref_filt += (4 * MAX_CTB_SIZE + 1); in ihevce_mode_eval_filtering()
3244 pu1_ref_orig += (4 * MAX_CTB_SIZE + 1); in ihevce_mode_eval_filtering()
3245 pu1_ref_filt += (4 * MAX_CTB_SIZE + 1); in ihevce_mode_eval_filtering()
3343 pu1_ref_orig += (4 * MAX_CTB_SIZE + 1); in ihevce_mode_eval_filtering()
3344 pu1_ref_filt += (4 * MAX_CTB_SIZE + 1); in ihevce_mode_eval_filtering()
Dihevce_ipe_pass.c393 ps_init_prms->s_tgt_lyr_prms.as_tgt_params[i4_resolution_id].i4_width, MAX_CTB_SIZE); in ihevce_ipe_init()
395 u4_ctb_in_a_row = (u4_width / MAX_CTB_SIZE); in ihevce_ipe_init()
Dihevce_decomp_pre_intra_pass.c1016 #define MAX_BLK_SZ (MAX_CTB_SIZE + ((N_TAPS >> 1) << 1)) in ihevce_scale_by_2()
1032 assert(block_wd <= MAX_CTB_SIZE); in ihevce_scale_by_2()
1033 assert(block_ht <= MAX_CTB_SIZE); in ihevce_scale_by_2()
Dihevce_enc_loop_utils.c5286 curr_buf_idx * ((MAX_CTB_SIZE * MAX_CTB_SIZE >> 1) + ((ps_ctxt->u1_chroma_array_type == 2) * in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer()
5287 (MAX_CTB_SIZE * MAX_CTB_SIZE >> 1))); in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer()
5862 cu_top_right_offset = -(MAX_CTB_SIZE); in ihevce_inter_rdopt_cu_mc_mvp()
5870 -(ps_col_tile_params->i4_first_sample_x + (MAX_CTB_SIZE)); in ihevce_inter_rdopt_cu_mc_mvp()
7120 rd_opt_curr_idx * ((MAX_CTB_SIZE * MAX_CTB_SIZE >> 1) + in ihevce_chroma_cu_prcs_rdopt()
7121 (u1_is_422 * (MAX_CTB_SIZE * MAX_CTB_SIZE >> 1))); in ihevce_chroma_cu_prcs_rdopt()
Dihevce_frame_process.c2482 ((i4_l1_wd + ((MAX_CTB_SIZE >> 1) - 1)) & 0xFFFFFFE0) / in ihevce_update_qp_L1_sad_based()
2485 ((i4_l1_ht + ((MAX_CTB_SIZE >> 1) - 1)) & 0xFFFFFFE0) / in ihevce_update_qp_L1_sad_based()
2495 ((i4_l1_wd + ((MAX_CTB_SIZE >> 1) - 1)) & 0xFFFFFFE0) / (MAX_CTB_SIZE >> 1); in ihevce_update_qp_L1_sad_based()
2497 ((i4_l1_ht + ((MAX_CTB_SIZE >> 1) - 1)) & 0xFFFFFFE0) / (MAX_CTB_SIZE >> 1); in ihevce_update_qp_L1_sad_based()
/external/libhevc/decoder/
Dihevcd_inter_pred.c274 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
278 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
293 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
297 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
321 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
325 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
339 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
343 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
Dihevcd_api.c1348 size = 4 * MAX_CTB_SIZE * MAX_CTB_SIZE; in ihevcd_allocate_static_bufs()
1361 pu1_buf += 4 * MAX_CTB_SIZE * MAX_CTB_SIZE * sizeof(UWORD8); in ihevcd_allocate_static_bufs()
1364 pu1_buf += 4 * MAX_CTB_SIZE * MAX_CTB_SIZE * sizeof(UWORD8); in ihevcd_allocate_static_bufs()
1383 inter_pred_tmp_buf_size = sizeof(WORD16) * (MAX_CTB_SIZE + ntaps_luma) * MAX_CTB_SIZE; in ihevcd_allocate_static_bufs()
1421 ps_codec->as_process[i].i4_inter_pred_tmp_buf_strd = MAX_CTB_SIZE; in ihevcd_allocate_static_bufs()
1723 …size = (max_num_4x4_cols /* left */ + MAX_PROCESS_THREADS * (MAX_CTB_SIZE / 4)/* top */ + 1/* to… in ihevcd_allocate_dynamic_bufs()
1732 ps_codec->as_process[i].pu4_pic_pu_idx_left = pu4_buf + i * (MAX_CTB_SIZE / 4); in ihevcd_allocate_dynamic_bufs()
1733 memset(ps_codec->as_process[i].pu4_pic_pu_idx_left, 0, sizeof(UWORD32) * MAX_CTB_SIZE / 4); in ihevcd_allocate_dynamic_bufs()
1734 … ps_codec->as_process[i].pu4_pic_pu_idx_top = pu4_buf + MAX_PROCESS_THREADS * (MAX_CTB_SIZE / 4); in ihevcd_allocate_dynamic_bufs()
1876 vert_bs_size = wd / 8 + 2 * MAX_CTB_SIZE / 8; in ihevcd_allocate_dynamic_bufs()
[all …]
Dihevcd_get_mv.c125 UWORD32 au4_nbr_avail[MAX_CTB_SIZE / MIN_PU_SIZE in ihevcd_get_mv_ctb()
151 nbr_pu_idx_strd = MAX_CTB_SIZE / MIN_PU_SIZE + 2; in ihevcd_get_mv_ctb()
166 (MAX_CTB_SIZE / MIN_PU_SIZE + 2) * sizeof(UWORD32)); in ihevcd_get_mv_ctb()
Dihevcd_boundary_strength.c665 … shift += (((end_pos_x >> 1) & ((MAX_CTB_SIZE >> log2_ctb_size) - 1)) << (log2_ctb_size - 1)); in ihevcd_ctb_boundary_strength_pbslice()
681 … shift += (((end_pos_y >> 1) & ((MAX_CTB_SIZE >> log2_ctb_size) - 1)) << (log2_ctb_size - 1)); in ihevcd_ctb_boundary_strength_pbslice()
785 ngbr_pu_idx_strd = MAX_CTB_SIZE / MIN_PU_SIZE + 2; in ihevcd_ctb_boundary_strength_pbslice()
851 UWORD32 ngbr_pu_idx_strd = MAX_CTB_SIZE / MIN_PU_SIZE + 2; in ihevcd_ctb_boundary_strength_pbslice()
Dihevcd_sao.c232 UWORD8 au1_src_copy[(MAX_CTB_SIZE + 2) * (MAX_CTB_SIZE + 2)]; in ihevcd_sao_ctb()
233 UWORD8 *pu1_src_copy = au1_src_copy + (MAX_CTB_SIZE + 2) + 1; in ihevcd_sao_ctb()
234 WORD32 tmp_strd = MAX_CTB_SIZE + 2; in ihevcd_sao_ctb()
381 UWORD8 au1_src_copy[(MAX_CTB_SIZE + 4) * (MAX_CTB_SIZE + 2)]; in ihevcd_sao_ctb()
382 UWORD8 *pu1_src_copy = au1_src_copy + (MAX_CTB_SIZE + 4) + 2; in ihevcd_sao_ctb()
383 WORD32 tmp_strd = MAX_CTB_SIZE + 4; in ihevcd_sao_ctb()
607 backup_strd = 2 * MAX_CTB_SIZE; in ihevcd_sao_shift_ctb()
Dihevcd_iquant_itrans_recon_ctb.c553 UWORD32 au4_intra_nbr_avail[MAX_CTB_SIZE / MIN_TU_SIZE in ihevcd_iquant_itrans_recon_ctb()
622 (MAX_CTB_SIZE / MIN_TU_SIZE + 2) * sizeof(UWORD32)); in ihevcd_iquant_itrans_recon_ctb()
Dihevcd_process_slice.c706 WORD32 nbr_pu_idx_strd = MAX_CTB_SIZE / MIN_PU_SIZE + 2; in ihevcd_process()
Dihevcd_parse_slice.c3112 WORD32 nbr_pu_idx_strd = MAX_CTB_SIZE / MIN_PU_SIZE + 2; in ihevcd_parse_slice_data()
/external/libhevc/encoder/arm/
Dihevce_decomp_pre_intra_pass_neon.c129 #define MAX_BLK_SZ (MAX_CTB_SIZE + ((N_TAPS >> 1) << 1)) in ihevce_scale_by_2_neon()
145 assert(block_wd <= MAX_CTB_SIZE); in ihevce_scale_by_2_neon()
146 assert(block_ht <= MAX_CTB_SIZE); in ihevce_scale_by_2_neon()
/external/libhevc/common/x86/
Dihevc_sao_ssse3_intr.c891 UWORD8 au1_mask[MAX_CTB_SIZE], *au1_mask_cpy; in ihevc_sao_edge_offset_class0_ssse3()
892 UWORD8 au1_src_left_tmp[MAX_CTB_SIZE + 8]; in ihevc_sao_edge_offset_class0_ssse3()
893 UWORD8 au1_src_left_tmp1[MAX_CTB_SIZE + 8]; in ihevc_sao_edge_offset_class0_ssse3()
922 for(col = 0; col < MAX_CTB_SIZE; col += 16) in ihevc_sao_edge_offset_class0_ssse3()
1226 UWORD8 au1_mask[MAX_CTB_SIZE], *au1_mask_cpy; in ihevc_sao_edge_offset_class0_chroma_ssse3()
1227 UWORD8 au1_src_left_tmp[2 * (MAX_CTB_SIZE + 8)]; in ihevc_sao_edge_offset_class0_chroma_ssse3()
1228 UWORD8 au1_src_left_tmp1[2 * (MAX_CTB_SIZE + 8)]; in ihevc_sao_edge_offset_class0_chroma_ssse3()
1262 for(col = 0; col < MAX_CTB_SIZE; col += 16) in ihevc_sao_edge_offset_class0_chroma_ssse3()
2494 UWORD8 au1_mask[MAX_CTB_SIZE], *au1_mask_cpy; in ihevc_sao_edge_offset_class2_ssse3()
2495 UWORD8 au1_src_left_tmp[MAX_CTB_SIZE + 8]; in ihevc_sao_edge_offset_class2_ssse3()
[all …]