/external/libhevc/decoder/ |
D | ihevcd_inter_pred.c | 123 pu_t *ps_pu; in ihevcd_inter_pred_ctb() local 181 ps_pu = ps_proc->ps_pu; in ihevcd_inter_pred_ctb() 214 for(pu_indx = 0; pu_indx < i4_pu_cnt; pu_indx++, ps_pu++) in ihevcd_inter_pred_ctb() 217 if(1 == ps_pu->b1_intra_flag) in ihevcd_inter_pred_ctb() 219 pu_x = (ps_proc->i4_ctb_x << ps_sps->i1_log2_ctb_size) + (ps_pu->b4_pos_x << 2); in ihevcd_inter_pred_ctb() 220 pu_y = (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size) + (ps_pu->b4_pos_y << 2); in ihevcd_inter_pred_ctb() 222 pu_wd = (ps_pu->b4_wd + 1) << 2; in ihevcd_inter_pred_ctb() 223 pu_ht = (ps_pu->b4_ht + 1) << 2; in ihevcd_inter_pred_ctb() 227 bi_pred = (ps_pu->b2_pred_mode == PRED_BI); in ihevcd_inter_pred_ctb() 229 if(ps_pu->b2_pred_mode != PRED_L1) in ihevcd_inter_pred_ctb() [all …]
|
D | ihevcd_get_mv.c | 113 pu_t *ps_pu; in ihevcd_get_mv_ctb() local 137 ps_pu = ps_mv_ctxt->ps_pu; in ihevcd_get_mv_ctb() 273 for(pu_cnt = 0; pu_cnt < num_pu_per_ctb; pu_cnt++, ps_pu++) in ihevcd_get_mv_ctb() 275 pu_ht = (ps_pu->b4_ht + 1) << 2; in ihevcd_get_mv_ctb() 276 pu_wd = (ps_pu->b4_wd + 1) << 2; in ihevcd_get_mv_ctb() 281 pu_x_in_4x4 = ps_pu->b4_pos_x; in ihevcd_get_mv_ctb() 282 pu_y_in_4x4 = ps_pu->b4_pos_y; in ihevcd_get_mv_ctb() 307 if(1 == ps_pu->b1_merge_flag) in ihevcd_get_mv_ctb() 315 if((PART_Nx2N == ps_pu->b3_part_mode) && (1 == ps_pu->b2_part_idx)) in ihevcd_get_mv_ctb() 319 else if((PART_2NxN == ps_pu->b3_part_mode) && (1 == ps_pu->b2_part_idx)) in ihevcd_get_mv_ctb() [all …]
|
D | ihevcd_mv_merge.c | 140 pu_t *ps_pu, in ihevcd_collocated_mvp() argument 165 part_pos_y = ps_pu->b4_pos_y << 2; in ihevcd_collocated_mvp() 299 ref_idx_l0 = ps_pu->mv.i1_l0_ref_idx; in ihevcd_collocated_mvp() 300 ref_idx_l1 = ps_pu->mv.i1_l1_ref_idx; in ihevcd_collocated_mvp() 466 pu_t *ps_pu, in ihevcd_mv_merge() argument 536 max_num_merge_cand = ps_pu->b3_merge_idx + 1; in ihevcd_mv_merge() 567 ps_pu[0].mv = as_pu_merge_list[candidate_cnt - 1].mv; in ihevcd_mv_merge() 568 ps_pu[0].b2_pred_mode = as_pu_merge_list[candidate_cnt - 1].b2_pred_mode; in ihevcd_mv_merge() 620 ps_pu[0].mv = as_pu_merge_list[candidate_cnt - 1].mv; in ihevcd_mv_merge() 621 ps_pu[0].b2_pred_mode = as_pu_merge_list[candidate_cnt - 1].b2_pred_mode; in ihevcd_mv_merge() [all …]
|
D | ihevcd_statistics.h | 121 void ihevcd_update_pu_size(pu_t *ps_pu); 122 void ihevcd_update_pu_skip_size(pu_t *ps_pu); 134 #define STATS_UPDATE_PU_SIZE(ps_pu) ihevcd_update_pu_size(ps_pu); argument 135 #define STATS_UPDATE_PU_SKIP_SIZE(ps_pu) ihevcd_update_pu_skip_size(ps_pu); argument 145 #define STATS_UPDATE_PU_SIZE(ps_pu) ; argument 146 #define STATS_UPDATE_PU_SKIP_SIZE(ps_pu) ; argument
|
D | ihevcd_parse_slice.c | 637 IHEVCD_ERROR_T ihevcd_parse_pu_mvp(codec_t *ps_codec, pu_t *ps_pu) in ihevcd_parse_pu_mvp() argument 653 pu_w_plus_pu_h = ((ps_pu->b4_wd + 1) << 2) + ((ps_pu->b4_ht + 1) << 2); in ihevcd_parse_pu_mvp() 682 ps_pu->mv.i1_l0_ref_idx = 0; in ihevcd_parse_pu_mvp() 683 ps_pu->mv.i1_l1_ref_idx = 0; in ihevcd_parse_pu_mvp() 719 ps_pu->mv.i1_l0_ref_idx = ref_idx; in ihevcd_parse_pu_mvp() 721 ihevcd_parse_mvd(ps_codec, &ps_pu->mv.s_l0_mv); in ihevcd_parse_pu_mvp() 730 ps_pu->b1_l0_mvp_idx = value; in ihevcd_parse_pu_mvp() 770 ps_pu->mv.i1_l1_ref_idx = ref_idx; in ihevcd_parse_pu_mvp() 774 ps_pu->mv.s_l1_mv.i2_mvx = 0; in ihevcd_parse_pu_mvp() 775 ps_pu->mv.s_l1_mv.i2_mvy = 0; in ihevcd_parse_pu_mvp() [all …]
|
D | ihevcd_boundary_strength.c | 85 WORD32 ihevcd_pu_boundary_strength(pu_t *ps_pu, in ihevcd_pu_boundary_strength() argument 97 num_mv = (PRED_BI == ps_pu->b2_pred_mode) ? 2 : 1; in ihevcd_pu_boundary_strength() 100 l0_ref_pic_buf_id = ps_pu->mv.i1_l0_ref_pic_buf_id; in ihevcd_pu_boundary_strength() 101 l1_ref_pic_buf_id = ps_pu->mv.i1_l1_ref_pic_buf_id; in ihevcd_pu_boundary_strength() 106 i2_mv_x0 = ps_pu->mv.s_l0_mv.i2_mvx; in ihevcd_pu_boundary_strength() 107 i2_mv_y0 = ps_pu->mv.s_l0_mv.i2_mvy; in ihevcd_pu_boundary_strength() 108 i2_mv_x1 = ps_pu->mv.s_l1_mv.i2_mvx; in ihevcd_pu_boundary_strength() 109 i2_mv_y1 = ps_pu->mv.s_l1_mv.i2_mvy; in ihevcd_pu_boundary_strength() 167 if(PRED_L0 == ps_pu->b2_pred_mode) in ihevcd_pu_boundary_strength() 723 pu_t *ps_pu = ps_bs_ctxt->ps_pu + i; in ihevcd_ctb_boundary_strength_pbslice() local [all …]
|
D | ihevcd_mv_pred.c | 359 pu_t *ps_pu, in ihevcd_mv_pred() argument 402 max_l0_mvp_cand = ps_pu->b1_l0_mvp_idx + 1; in ihevcd_mv_pred() 403 max_l1_mvp_cand = ps_pu->b1_l1_mvp_idx + 1; in ihevcd_mv_pred() 413 ps_cur_pic_buf_l0 = (pic_buf_t *)((ps_ref_pic_list[0][ps_pu->mv.i1_l0_ref_idx].pv_pic_buf)); in ihevcd_mv_pred() 414 ps_cur_pic_buf_l1 = (pic_buf_t *)((ps_ref_pic_list[1][ps_pu->mv.i1_l1_ref_idx].pv_pic_buf)); in ihevcd_mv_pred() 418 part_pos_x = ps_pu->b4_pos_x << 2; in ihevcd_mv_pred() 419 part_pos_y = ps_pu->b4_pos_y << 2; in ihevcd_mv_pred() 420 part_wd = (ps_pu->b4_wd + 1) << 2; in ihevcd_mv_pred() 421 part_ht = (ps_pu->b4_ht + 1) << 2; in ihevcd_mv_pred() 472 if(PRED_L0 != ps_pu->b2_pred_mode) in ihevcd_mv_pred() [all …]
|
D | ihevcd_mv_merge.h | 85 pu_t *ps_pu, 99 pu_t *ps_pu,
|
D | ihevcd_process_slice.c | 443 ps_proc->ps_pu = &ps_proc->ps_pic_pu[cur_pu_idx]; in ihevcd_ctb_avail_update() 678 s_mv_ctxt.ps_pu = ps_proc->ps_pu; in ihevcd_process() 700 pu_t *ps_pu; in ihevcd_process() local 718 ps_pu = &ps_proc->ps_pic_pu[ctb_start_pu_idx]; in ihevcd_process() 720 for(pu_cnt = 0; pu_cnt < num_pu_per_ctb; pu_cnt++, ps_pu++) in ihevcd_process() 723 WORD32 pu_ht = (ps_pu->b4_ht + 1) << 2; in ihevcd_process() 724 WORD32 pu_wd = (ps_pu->b4_wd + 1) << 2; in ihevcd_process() 730 pu4_nbr_pu_idx[(1 + ps_pu->b4_pos_x + col) in ihevcd_process() 731 + (1 + ps_pu->b4_pos_y + row) in ihevcd_process() 827 ps_proc->s_bs_ctxt.ps_pu = ps_proc->ps_pu; in ihevcd_process() [all …]
|
D | ihevcd_boundary_strength.h | 44 WORD32 ihevcd_pu_boundary_strength(pu_t *ps_pu,
|
D | ihevcd_mv_pred.h | 45 pu_t *ps_pu,
|
D | ihevcd_structs.h | 249 pu_t *ps_pu; member 431 pu_t *ps_pu; member 902 pu_t *ps_pu; member 1282 pu_t *ps_pu; member
|
/external/libhevc/encoder/ |
D | ihevce_inter_pred.c | 375 pu_t *ps_pu, in ihevce_luma_inter_pred_pu() argument 383 WORD32 inter_pred_idc = ps_pu->b2_pred_mode; in ihevce_luma_inter_pred_pu() 385 WORD32 pu_wd = (ps_pu->b4_wd + 1) << 2; in ihevce_luma_inter_pred_pu() 386 WORD32 pu_ht = (ps_pu->b4_ht + 1) << 2; in ihevce_luma_inter_pred_pu() 412 frm_x_pu = ps_inter_pred_ctxt->i4_ctb_frm_pos_x + (ps_pu->b4_pos_x << 2); in ihevce_luma_inter_pred_pu() 413 frm_y_pu = ps_inter_pred_ctxt->i4_ctb_frm_pos_y + (ps_pu->b4_pos_y << 2); in ihevce_luma_inter_pred_pu() 418 ASSERT(ps_pu->b1_intra_flag == 0); in ihevce_luma_inter_pred_pu() 429 ps_ref_pic_l0 = ps_inter_pred_ctxt->ps_ref_list[0][ps_pu->mv.i1_l0_ref_idx]; in ihevce_luma_inter_pred_pu() 434 ps_ref_pic_l1 = ps_inter_pred_ctxt->ps_ref_list[1][ps_pu->mv.i1_l1_ref_idx]; in ihevce_luma_inter_pred_pu() 464 WORD32 mv_x = ps_pu->mv.s_l0_mv.i2_mvx; in ihevce_luma_inter_pred_pu() [all …]
|
D | ihevce_cabac_cu_pu.c | 781 pu_t *ps_pu = ps_enc_cu->ps_pu; in ihevce_cabac_encode_inter_pu() local 783 WORD32 merge_idx = ps_pu->b3_merge_idx; in ihevce_cabac_encode_inter_pu() 851 ps_pu = ps_enc_cu->ps_pu + i; in ihevce_cabac_encode_inter_pu() 854 merge_flag = ps_pu->b1_merge_flag; in ihevce_cabac_encode_inter_pu() 872 merge_idx = ps_pu->b3_merge_idx; in ihevce_cabac_encode_inter_pu() 881 WORD32 inter_pred_idc = ps_pu->b2_pred_mode; in ihevce_cabac_encode_inter_pu() 893 … ps_entropy_ctxt->ps_pic_level_info->i8_total_L0_ref_idx[ps_pu->mv.i1_l0_ref_idx]++; in ihevce_cabac_encode_inter_pu() 898 … ps_entropy_ctxt->ps_pic_level_info->i8_total_L1_ref_idx[ps_pu->mv.i1_l1_ref_idx]++; in ihevce_cabac_encode_inter_pu() 904 … ps_entropy_ctxt->ps_pic_level_info->i8_total_L0_ref_idx[ps_pu->mv.i1_l0_ref_idx]++; in ihevce_cabac_encode_inter_pu() 906 … ps_entropy_ctxt->ps_pic_level_info->i8_total_L1_ref_idx[ps_pu->mv.i1_l1_ref_idx]++; in ihevce_cabac_encode_inter_pu() [all …]
|
D | ihevce_inter_pred.h | 96 pu_t *ps_pu, 103 pu_t *ps_pu, 109 void *pv_inter_pred_ctxt, pu_t *ps_pu, UWORD8 *pu1_dst_buf, WORD32 dst_stride);
|
D | ihevce_mv_pred.c | 157 pu_t *ps_pu, in ihevce_mv_pred() argument 212 part_pos_x = ps_pu->b4_pos_x << 2; in ihevce_mv_pred() 213 part_pos_y = ps_pu->b4_pos_y << 2; in ihevce_mv_pred() 214 part_wd = (ps_pu->b4_wd + 1) << 2; in ihevce_mv_pred() 215 part_ht = (ps_pu->b4_ht + 1) << 2; in ihevce_mv_pred() 219 i1_cur_ref_idx_list[0] = (-1 == ps_pu->mv.i1_l0_ref_idx) ? 0 : ps_pu->mv.i1_l0_ref_idx; in ihevce_mv_pred() 220 i1_cur_ref_idx_list[1] = (-1 == ps_pu->mv.i1_l1_ref_idx) ? 0 : ps_pu->mv.i1_l1_ref_idx; in ihevce_mv_pred() 662 ihevce_collocated_mvp(ps_ctxt, ps_pu, as_mv_col, avail_col_flag, 1, x_col, y_col); in ihevce_mv_pred() 677 ihevce_collocated_mvp(ps_ctxt, ps_pu, as_mv_col, avail_col_flag, 1, x_col, y_col); in ihevce_mv_pred()
|
D | ihevce_bs_compute_ctb.c | 244 pu_t *ps_pu = ps_cu_final->ps_pu; in ihevce_bs_compute_cu() local 429 WORD32 pu_pos_x = ps_pu->b4_pos_x; in ihevce_bs_compute_cu() 431 WORD32 pu_pos_y = ps_pu->b4_pos_y; in ihevce_bs_compute_cu() 433 WORD32 pu_wd = (ps_pu->b4_wd) + 1; in ihevce_bs_compute_cu() 435 WORD32 pu_ht = (ps_pu->b4_ht) + 1; in ihevce_bs_compute_cu() 728 ps_pu++; in ihevce_bs_compute_cu()
|
D | ihevce_mv_pred_merge.c | 164 pu_t *ps_pu, in ihevce_collocated_mvp() argument 187 part_pos_y = ps_pu->b4_pos_y << 2; in ihevce_collocated_mvp() 322 ref_idx_l0 = ps_pu->mv.i1_l0_ref_idx; in ihevce_collocated_mvp() 323 ref_idx_l1 = ps_pu->mv.i1_l1_ref_idx; in ihevce_collocated_mvp() 514 pu_t *ps_pu, in ihevce_mv_pred_merge() argument 555 part_pos_x = ps_pu->b4_pos_x << 2; in ihevce_mv_pred_merge() 556 part_pos_y = ps_pu->b4_pos_y << 2; in ihevce_mv_pred_merge() 557 part_ht = (ps_pu->b4_ht + 1) << 2; in ihevce_mv_pred_merge() 558 part_wd = (ps_pu->b4_wd + 1) << 2; in ihevce_mv_pred_merge() 859 ihevce_collocated_mvp(ps_ctxt, ps_pu, as_mv_col, avail_col_flag, 0, x_col, y_col); in ihevce_mv_pred_merge() [all …]
|
D | ihevce_enc_loop_inter_mode_sifter.c | 175 pu_t *ps_pu, in ihevce_compute_inter_pred_and_cost() argument 186 u1_is_valid_mv = pf_luma_inter_pred_pu(ps_mc_ctxt, ps_pu, pv_pred, i4_pred_stride, 0); in ihevce_compute_inter_pred_and_cost() 194 s_err_prms.i4_blk_ht = (ps_pu->b4_ht + 1) << 2; in ihevce_compute_inter_pred_and_cost() 195 s_err_prms.i4_blk_wd = (ps_pu->b4_wd + 1) << 2; in ihevce_compute_inter_pred_and_cost() 231 pu_t *ps_pu; in ihevce_determine_best_merge_pu() local 270 ps_pu = ps_pu_merge; in ihevce_determine_best_merge_pu() 273 ASSERT(ps_pu->b1_merge_flag); in ihevce_determine_best_merge_pu() 287 ps_pu->mv = ps_list[i].mv; in ihevce_determine_best_merge_pu() 288 ps_pu->b3_merge_idx = pu1_valid_merge_indices[i]; in ihevce_determine_best_merge_pu() 293 ps_pu->b2_pred_mode = PRED_BI; in ihevce_determine_best_merge_pu() [all …]
|
D | ihevce_enc_loop_structs.h | 77 #define POPULATE_PU_STRUCT(ps_pu, mvx, mvy, offset_x, offset_y, wd, ht, ref_idx, pred_lx) \ argument 79 (ps_pu)->b4_pos_x = (offset_x) >> 2; \ 80 (ps_pu)->b4_pos_y = (offset_y) >> 2; \ 81 (ps_pu)->b4_wd = ((wd) >> 2) - 1; \ 82 (ps_pu)->b4_ht = ((ht) >> 2) - 1; \ 83 (ps_pu)->b1_intra_flag = 0; \ 84 (ps_pu)->b2_pred_mode = pred_lx; \ 87 (ps_pu)->mv.i1_l0_ref_idx = -1; \ 88 (ps_pu)->mv.i1_l1_ref_idx = ref_idx; \ 89 (ps_pu)->mv.s_l1_mv.i2_mvx = mvx; \ [all …]
|
D | ihevce_mv_pred_merge.h | 96 pu_t *ps_pu, 111 pu_t *ps_pu,
|
D | ihevce_enc_loop_utils.c | 5313 pu_t *ps_pu; in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer() local 5318 ps_pu = ps_inter_cand->as_inter_pu + i; in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer() 5320 inter_pu_wd = (ps_pu->b4_wd + 1) << 2; /* cb and cr pixel interleaved */ in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer() 5321 inter_pu_ht = ((ps_pu->b4_ht + 1) << 2) >> 1; in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer() 5325 ps_pu, in ihevce_inter_tu_tree_selector_and_rdopt_cost_computer() 5794 pu_t *ps_pu; in ihevce_inter_rdopt_cu_mc_mvp() local 5798 ps_pu = &ps_inter_cand->as_inter_pu[ctr]; in ihevce_inter_rdopt_cu_mc_mvp() 5801 inter_pu_wd = (ps_pu->b4_wd + 1) << 2; in ihevce_inter_rdopt_cu_mc_mvp() 5802 inter_pu_ht = (ps_pu->b4_ht + 1) << 2; in ihevce_inter_rdopt_cu_mc_mvp() 5807 if(-1 != ps_pu->mv.i1_l0_ref_idx) in ihevce_inter_rdopt_cu_mc_mvp() [all …]
|
D | ihevce_mv_pred.h | 78 pu_t *ps_pu,
|
/external/libavc/encoder/ |
D | ih264e_me.c | 432 if ( (ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvx == ps_skip_mv->i2_mvx) in ih264e_find_pskip_params() 433 && (ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvy == ps_skip_mv->i2_mvy)) in ih264e_find_pskip_params() 1057 … ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvx = ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvx; in ih264e_compute_me_single_reflist() 1058 … ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvy = ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvy; in ih264e_compute_me_single_reflist() 1062 ps_proc->ps_pu->b2_pred_mode = PRED_L0 ; in ih264e_compute_me_single_reflist() 1065 ps_proc->ps_pu->s_me_info[0].i1_ref_idx = -1; in ih264e_compute_me_single_reflist() 1066 ps_proc->ps_pu->s_me_info[1].i1_ref_idx = 0; in ih264e_compute_me_single_reflist() 1073 ps_proc->ps_pu->b4_pos_x = 0; in ih264e_compute_me_single_reflist() 1074 ps_proc->ps_pu->b4_pos_y = 0; in ih264e_compute_me_single_reflist() 1077 ps_proc->ps_pu->b4_wd = 3; in ih264e_compute_me_single_reflist() [all …]
|
D | ih264e_deblk.c | 452 ps_proc->s_left_mb_pu.b2_pred_mode = ps_proc->ps_pu->b2_pred_mode; in ih264e_compute_bs() 453 ps_proc->s_left_mb_pu.s_me_info[0].s_mv = ps_proc->ps_pu->s_me_info[0].s_mv; in ih264e_compute_bs() 454 ps_proc->s_left_mb_pu.s_me_info[1].s_mv = ps_proc->ps_pu->s_me_info[1].s_mv; in ih264e_compute_bs() 460 ps_top_row_pu->b2_pred_mode = ps_proc->ps_pu->b2_pred_mode; in ih264e_compute_bs() 461 ps_top_row_pu->s_me_info[0].s_mv = ps_proc->ps_pu->s_me_info[0].s_mv; in ih264e_compute_bs() 462 ps_top_row_pu->s_me_info[1].s_mv = ps_proc->ps_pu->s_me_info[1].s_mv; in ih264e_compute_bs() 472 ps_proc->ps_pu); in ih264e_compute_bs()
|