/external/libhevc/encoder/arm/ |
D | ihevce_subpel_neon.c | 255 void hme_qpel_interp_avg_neon(interp_prms_t *ps_prms, S32 i4_mv_x, S32 i4_mv_y, S32 i4_buf_id) in hme_qpel_interp_avg_neon() argument 260 S32 i4_ref_stride = ps_prms->i4_ref_stride; in hme_qpel_interp_avg_neon() 273 ps_prms->pu1_final_out = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id1]; in hme_qpel_interp_avg_neon() 274 ps_prms->pu1_final_out += ps_inp_cfg->i1_buf_xoff1 + i4_offset; in hme_qpel_interp_avg_neon() 275 ps_prms->pu1_final_out += (ps_inp_cfg->i1_buf_yoff1 * ps_prms->i4_ref_stride); in hme_qpel_interp_avg_neon() 276 ps_prms->i4_final_out_stride = i4_ref_stride; in hme_qpel_interp_avg_neon() 281 pu1_src1 = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id1]; in hme_qpel_interp_avg_neon() 285 pu1_src2 = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id2]; in hme_qpel_interp_avg_neon() 289 pu1_dst = ps_prms->apu1_interp_out[i4_buf_id]; in hme_qpel_interp_avg_neon() 294 ps_prms->i4_ref_stride, in hme_qpel_interp_avg_neon() [all …]
|
D | ihevce_me_neon.c | 414 void hme_evalsad_grid_npu_MxN_neon(err_prms_t *ps_prms) in hme_evalsad_grid_npu_MxN_neon() argument 416 S32 *pi4_sad = ps_prms->pi4_sad_grid; in hme_evalsad_grid_npu_MxN_neon() 418 S32 x_off = ps_prms->i4_step; in hme_evalsad_grid_npu_MxN_neon() 419 S32 y_off = ps_prms->i4_step * ps_prms->i4_ref_stride; in hme_evalsad_grid_npu_MxN_neon() 421 assert((ps_prms->i4_part_mask & (ps_prms->i4_part_mask - 1)) == 0); in hme_evalsad_grid_npu_MxN_neon() 425 if(ps_prms->i4_grid_mask & (1 << i)) in hme_evalsad_grid_npu_MxN_neon() 428 pi4_sad += (ps_prms->pi4_valid_part_ids[0] * grid_count); in hme_evalsad_grid_npu_MxN_neon() 432 U08 *pu1_inp = ps_prms->pu1_inp; in hme_evalsad_grid_npu_MxN_neon() 433 U08 *pu1_ref = ps_prms->pu1_ref; in hme_evalsad_grid_npu_MxN_neon() 435 if(!(ps_prms->i4_grid_mask & (1 << i))) in hme_evalsad_grid_npu_MxN_neon() [all …]
|
/external/libhevc/encoder/ |
D | hme_err_compute.h | 64 void hme_evalsad_pt_npu_MxN_16bit(err_prms_t *ps_prms); 121 void compute_satd_16bit(err_prms_t *ps_prms); 123 void compute_satd_8bit(err_prms_t *ps_prms); 125 void compute_sad_16bit(err_prms_t *ps_prms); 248 void hme_evalsad_grid_pu_16x16(err_prms_t *ps_prms); 250 void hme_evalsatd_pt_pu_8x8(err_prms_t *ps_prms); 253 err_prms_t *ps_prms, 260 err_prms_t *ps_prms, result_upd_prms_t *ps_result_prms); 263 err_prms_t *ps_prms, 269 void hme_evalsatd_pt_pu_32x32(err_prms_t *ps_prms); [all …]
|
D | hme_subpel.c | 121 void hme_qpel_interp_avg(interp_prms_t *ps_prms, S32 i4_mv_x, S32 i4_mv_y, S32 i4_buf_id) in hme_qpel_interp_avg() argument 156 i4_offset = (i4_mv_x >> 2) + (i4_mv_y >> 2) * ps_prms->i4_ref_stride; in hme_qpel_interp_avg() 164 ps_prms->pu1_final_out = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id1]; in hme_qpel_interp_avg() 165 ps_prms->pu1_final_out += ps_inp_cfg->i1_buf_xoff1 + i4_offset; in hme_qpel_interp_avg() 166 ps_prms->pu1_final_out += (ps_inp_cfg->i1_buf_yoff1 * ps_prms->i4_ref_stride); in hme_qpel_interp_avg() 167 ps_prms->i4_final_out_stride = ps_prms->i4_ref_stride; in hme_qpel_interp_avg() 172 pu1_src1 = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id1]; in hme_qpel_interp_avg() 174 pu1_src1 += (ps_inp_cfg->i1_buf_yoff1 * ps_prms->i4_ref_stride); in hme_qpel_interp_avg() 176 pu1_src2 = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id2]; in hme_qpel_interp_avg() 178 pu1_src2 += (ps_inp_cfg->i1_buf_yoff2 * ps_prms->i4_ref_stride); in hme_qpel_interp_avg() [all …]
|
D | hme_interface.c | 689 S32 hme_validate_init_prms(hme_init_prms_t *ps_prms) in hme_validate_init_prms() argument 691 S32 n_layers = ps_prms->num_simulcast_layers; in hme_validate_init_prms() 702 if(ps_prms->a_wd[n_layers - 1] < 2 * (MIN_WD_COARSE)) in hme_validate_init_prms() 704 if(ps_prms->a_ht[n_layers - 1] < 2 * (MIN_HT_COARSE)) in hme_validate_init_prms() 706 if(ps_prms->max_num_ref > MAX_NUM_REF) in hme_validate_init_prms() 708 if(ps_prms->max_num_ref < 0) in hme_validate_init_prms() 1129 hme_init_prms_t *ps_prms, in hme_enc_alloc_init_mem() argument 1143 S32 ctb_wd = 1 << ps_prms->log_ctb_size; in hme_enc_alloc_init_mem() 1150 n_enc_layers = ps_prms->num_simulcast_layers; in hme_enc_alloc_init_mem() 1157 ps_master_ctxt->i4_num_proc_thrds = ps_prms->i4_num_proc_thrds; in hme_enc_alloc_init_mem() [all …]
|
D | ihevce_enc_loop_inter_mode_sifter.c | 221 merge_prms_t *ps_prms, in ihevce_determine_best_merge_pu() argument 240 merge_cand_list_t *ps_list = ps_prms->ps_list; in ihevce_determine_best_merge_pu() 241 inter_pred_ctxt_t *ps_mc_ctxt = ps_prms->ps_mc_ctxt; in ihevce_determine_best_merge_pu() 242 PF_LUMA_INTER_PRED_PU pf_luma_inter_pred_pu = ps_prms->pf_luma_inter_pred_pu; in ihevce_determine_best_merge_pu() 243 PF_SAD_FXN_T pf_sad_fxn = ps_prms->pf_sad_fxn; in ihevce_determine_best_merge_pu() 246 ps_prms->ps_cmn_utils_optimised_function_list; in ihevce_determine_best_merge_pu() 248 WORD32(*pai4_noise_term)[MAX_NUM_INTER_PARTS] = ps_prms->pai4_noise_term; in ihevce_determine_best_merge_pu() 249 UWORD32(*pau4_pred_variance)[MAX_NUM_INTER_PARTS] = ps_prms->pau4_pred_variance; in ihevce_determine_best_merge_pu() 250 WORD32 i4_alpha_stim_multiplier = ps_prms->i4_alpha_stim_multiplier; in ihevce_determine_best_merge_pu() 251 UWORD32 *pu4_src_variance = ps_prms->pu4_src_variance; in ihevce_determine_best_merge_pu() [all …]
|
D | ihevce_me_instr_set_router.c | 335 void hme_evalsad_grid_pu_MxM(err_prms_t *ps_prms) in hme_evalsad_grid_pu_MxM() argument 344 CU_SIZE_T e_cu_size = (CU_SIZE_T)(hme_get_range(ps_prms->i4_blk_wd) - 4); in hme_evalsad_grid_pu_MxM() 350 s_grid.ref_buf_stride = ps_prms->i4_ref_stride; in hme_evalsad_grid_pu_MxM() 351 s_grid.grd_sz_y_x = ((ps_prms->i4_step << 16) | ps_prms->i4_step); in hme_evalsad_grid_pu_MxM() 352 s_grid.ppu1_ref_ptr = &ps_prms->pu1_ref; in hme_evalsad_grid_pu_MxM() 353 s_grid.pi4_grd_mask = &ps_prms->i4_grid_mask; in hme_evalsad_grid_pu_MxM() 367 api4_sad_grid[i] = &ps_prms->pi4_sad_grid[i * num_candts]; in hme_evalsad_grid_pu_MxM() 372 ps_prms->pu1_inp, in hme_evalsad_grid_pu_MxM() 373 ps_prms->i4_inp_stride, in hme_evalsad_grid_pu_MxM()
|
D | hme_interface.h | 274 typedef void (*PF_INTERP_FXN_T)(interp_prms_t *ps_prms, S32 i4_mv_x, S32 i4_mv_y, S32 interp_buf_id… 652 S32 hme_coarse_alloc(hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms); 689 S32 hme_enc_alloc(hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms, WORD32 i4_num_me_frm_pllel); 711 hme_init_prms_t *ps_prms, 732 S32 hme_coarse_init(void *pv_ctxt, hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms);
|
D | hme_err_compute.c | 406 void hme_evalsad_grid_pu_16x16(err_prms_t *ps_prms) in hme_evalsad_grid_pu_16x16() argument 416 s_grid.ref_buf_stride = ps_prms->i4_ref_stride; in hme_evalsad_grid_pu_16x16() 417 s_grid.grd_sz_y_x = ((ps_prms->i4_step << 16) | ps_prms->i4_step); in hme_evalsad_grid_pu_16x16() 418 s_grid.ppu1_ref_ptr = &ps_prms->pu1_ref; in hme_evalsad_grid_pu_16x16() 419 s_grid.pi4_grd_mask = &ps_prms->i4_grid_mask; in hme_evalsad_grid_pu_16x16() 432 &s_grid, ps_prms->pu1_inp, ps_prms->i4_inp_stride, apu2_sad_grid, as_candt, &num_candts); in hme_evalsad_grid_pu_16x16() 435 ps_prms->pi4_sad_grid[i] = au2_sad_grid[i]; in hme_evalsad_grid_pu_16x16() 439 void hme_evalsad_grid_npu_MxN(err_prms_t *ps_prms) in hme_evalsad_grid_npu_MxN() argument 442 S32 *pi4_sad = ps_prms->pi4_sad_grid; in hme_evalsad_grid_npu_MxN() 444 S32 step = ps_prms->i4_step; in hme_evalsad_grid_npu_MxN() [all …]
|
D | hme_refine.c | 1523 mvbank_update_prms_t *ps_prms) in hme_update_mv_bank_noencode() argument 1535 i4_blk_x = i4_search_blk_x << ps_prms->i4_shift; in hme_update_mv_bank_noencode() 1536 i4_blk_y = i4_search_blk_y << ps_prms->i4_shift; in hme_update_mv_bank_noencode() 1551 if(ps_layer_mv->e_blk_size == ps_prms->e_search_blk_size) in hme_update_mv_bank_noencode() 1553 for(i4_ref_id = 0; i4_ref_id < (S32)ps_prms->i4_num_ref; i4_ref_id++) in hme_update_mv_bank_noencode() 1574 ASSERT(ps_prms->e_search_blk_size == BLK_8x8); in hme_update_mv_bank_noencode() 1664 mvbank_update_prms_t *ps_prms, in hme_update_mv_bank_encode() argument 1678 i4_blk_x = i4_search_blk_x << ps_prms->i4_shift; in hme_update_mv_bank_encode() 1679 i4_blk_y = i4_search_blk_y << ps_prms->i4_shift; in hme_update_mv_bank_encode() 1689 ASSERT(ps_prms->e_search_blk_size == BLK_16x16); in hme_update_mv_bank_encode() [all …]
|
D | hme_subpel.h | 46 hme_subpel_prms_t *ps_prms,
|
D | ihevce_enc_loop_utils.c | 8414 ihevce_enc_loop_ctxt_t *ps_ctxt, final_mode_process_prms_t *ps_prms) in ihevce_final_rdopt_mode_prcs() argument 8452 cu_nbr_prms_t *ps_cu_nbr_prms = ps_prms->ps_cu_nbr_prms; in ihevce_final_rdopt_mode_prcs() 8453 cu_inter_cand_t *ps_best_inter_cand = ps_prms->ps_best_inter_cand; in ihevce_final_rdopt_mode_prcs() 8454 enc_loop_chrm_cu_buf_prms_t *ps_chrm_cu_buf_prms = ps_prms->ps_chrm_cu_buf_prms; in ihevce_final_rdopt_mode_prcs() 8456 WORD32 packed_pred_mode = ps_prms->packed_pred_mode; in ihevce_final_rdopt_mode_prcs() 8457 WORD32 rd_opt_best_idx = ps_prms->rd_opt_best_idx; in ihevce_final_rdopt_mode_prcs() 8458 UWORD8 *pu1_src = (UWORD8 *)ps_prms->pv_src; in ihevce_final_rdopt_mode_prcs() 8459 WORD32 src_strd = ps_prms->src_strd; in ihevce_final_rdopt_mode_prcs() 8460 UWORD8 *pu1_pred = (UWORD8 *)ps_prms->pv_pred; in ihevce_final_rdopt_mode_prcs() 8461 WORD32 pred_strd = ps_prms->pred_strd; in ihevce_final_rdopt_mode_prcs() [all …]
|
D | hme_utils.c | 5507 interp_prms_t *ps_prms, in hme_qpel_interp_avg_1pt() argument 5547 i4_offset = (i4_mv_x >> 2) + (i4_mv_y >> 2) * ps_prms->i4_ref_stride; in hme_qpel_interp_avg_1pt() 5552 pu1_src1 = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id1]; in hme_qpel_interp_avg_1pt() 5554 pu1_src1 += (ps_inp_cfg->i1_buf_yoff1 * ps_prms->i4_ref_stride); in hme_qpel_interp_avg_1pt() 5556 pu1_src2 = ps_prms->ppu1_ref[ps_inp_cfg->i1_buf_id2]; in hme_qpel_interp_avg_1pt() 5558 pu1_src2 += (ps_inp_cfg->i1_buf_yoff2 * ps_prms->i4_ref_stride); in hme_qpel_interp_avg_1pt() 5560 pu1_dst = ps_prms->apu1_interp_out[i4_buf_id]; in hme_qpel_interp_avg_1pt() 5564 ps_prms->i4_ref_stride, in hme_qpel_interp_avg_1pt() 5565 ps_prms->i4_ref_stride, in hme_qpel_interp_avg_1pt() 5566 ps_prms->i4_blk_wd, in hme_qpel_interp_avg_1pt() [all …]
|
D | ihevce_me_instr_set_router.h | 176 void hme_evalsad_grid_pu_MxM(err_prms_t *ps_prms);
|
D | hme_coarse.c | 161 mvbank_update_prms_t *ps_prms) in hme_update_mv_bank_coarse() argument 181 i4_blk_x = i4_search_blk_x << ps_prms->i4_shift; in hme_update_mv_bank_coarse() 182 i4_blk_y = i4_search_blk_y << ps_prms->i4_shift; in hme_update_mv_bank_coarse()
|
D | ihevce_enc_loop_utils.h | 309 ihevce_enc_loop_ctxt_t *ps_ctxt, final_mode_process_prms_t *ps_prms);
|
D | ihevce_enc_loop_structs.h | 3190 ihevce_enc_loop_ctxt_t *ps_ctxt, final_mode_process_prms_t *ps_prms);
|
D | hme_defs.h | 2948 typedef void FT_CALC_SATD_AND_RESULT(err_prms_t *ps_prms, result_upd_prms_t *ps_result_prms);
|