Home
last modified time | relevance | path

Searched refs:i1_ref_idx (Results 1 – 25 of 34) sorted by relevance

12

/external/libhevc/encoder/
Dhme_coarse.c114 *pi1_ref_idx = ps_search_node->i1_ref_idx; \
160 S08 i1_ref_idx, in hme_update_mv_bank_coarse() argument
189 ps_mv = ps_layer_mv->ps_mv + (i4_offset + (num_mvs * i1_ref_idx)); in hme_update_mv_bank_coarse()
190 pi1_ref_idx = ps_layer_mv->pi1_ref_idx + (i4_offset + (num_mvs * i1_ref_idx)); in hme_update_mv_bank_coarse()
198 ps_search_node_8x4_r = ps_search_results->aps_part_results[i1_ref_idx][PART_ID_2NxN_B]; in hme_update_mv_bank_coarse()
199 ps_search_node_4x8_b = ps_search_results->aps_part_results[i1_ref_idx][PART_ID_Nx2N_R]; in hme_update_mv_bank_coarse()
371 S08 i1_ref_idx, in hme_combine_4x4_sads_and_compute_cost_high_quality() argument
391 s_search_node.i1_ref_idx = i1_ref_idx; in hme_combine_4x4_sads_and_compute_cost_high_quality()
448 S08 i1_ref_idx, in hme_combine_4x4_sads_and_compute_cost_high_speed() argument
503 (2 * hme_get_range(ABS(mvx)) - 1) + (2 * hme_get_range(ABS(mvy)) - 1) + i1_ref_idx; in hme_combine_4x4_sads_and_compute_cost_high_speed()
[all …]
Dhme_fullpel.c216 S08 i1_ref_idx = ps_fullpel_refine_ctxt in hme_add_fpel_refine_candidates_to_search_cand_array() local
223 s_refine_grid_center.i1_ref_idx = i1_ref_idx; in hme_add_fpel_refine_candidates_to_search_cand_array()
225 u1_use_hashing = (s_refine_grid_center.i1_ref_idx == i1_unique_node_map_ref_idx); in hme_add_fpel_refine_candidates_to_search_cand_array()
275 ps_unique_search_nodes[pi4_num_unique_nodes[0]++].i1_ref_idx = i1_ref_idx; in hme_add_fpel_refine_candidates_to_search_cand_array()
281 ps_unique_search_nodes[pi4_num_unique_nodes[0]++].i1_ref_idx = i1_ref_idx; in hme_add_fpel_refine_candidates_to_search_cand_array()
379 ps_fullpel_refine_ctxt->i2_ref_idx[0][0] = ps_unique_search_nodes[0].i1_ref_idx; in hme_fullpel_refine()
453 U08 u1_use_hashing = (ps_cur_cand->i1_ref_idx == i1_unique_node_map_ref_idx); in hme_remove_duplicate_fpel_search_candidates()
460 if((ps_cur_cand->i1_ref_idx != pi1_pred_dir_to_ref_idx[0]) && (i4_refine_iter_ctr == 0)) in hme_remove_duplicate_fpel_search_candidates()
467 if((ps_cur_cand->i1_ref_idx != pi1_pred_dir_to_ref_idx[0]) && in hme_remove_duplicate_fpel_search_candidates()
475 if(ps_cur_cand->i1_ref_idx != pi1_pred_dir_to_ref_idx[i4_refine_iter_ctr]) in hme_remove_duplicate_fpel_search_candidates()
Dhme_err_compute.c147 (ps_best_node1->i1_ref_idx == ps_best_node2->i1_ref_idx)) in hme_cmp_nodes()
977 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_node->i1_ref_idx]; in compute_mv_cost_explicit()
1090 i4_search_idx = ps_node->i1_ref_idx; in compute_mv_cost_coarse_high_speed()
1131 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_node->i1_ref_idx]; in compute_mv_cost_explicit_refine()
1178 S08 i1_ref_idx; in compute_mv_cost_implicit() local
1188 i1_ref_idx = ps_node->i1_ref_idx; in compute_mv_cost_implicit()
1198 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][i1_ref_idx]; in compute_mv_cost_implicit()
1205 i1_ref_bl = ps_pred_nodes->ps_bl->i1_ref_idx; in compute_mv_cost_implicit()
1207 i1_ref_l = ps_pred_nodes->ps_l->i1_ref_idx; in compute_mv_cost_implicit()
1208 if(i1_ref_bl == i1_ref_idx) in compute_mv_cost_implicit()
[all …]
Dhme_subpel.c630 WORD8 i1_ref_idx; in hme_compute_pred_and_evaluate_bi() local
656 i1_ref_idx = ps_pu_node1->pu.mv.i1_l0_ref_idx; in hme_compute_pred_and_evaluate_bi()
665 ASSERT(i1_ref_idx >= 0); in hme_compute_pred_and_evaluate_bi()
668 … (UWORD8 *)(ps_inter_ctb_prms->pps_rec_list_l0[i1_ref_idx]->s_yuv_buf_desc.pv_y_buf) + in hme_compute_pred_and_evaluate_bi()
671 ps_inter_ctb_prms->pps_rec_list_l0[i1_ref_idx]->apu1_y_sub_pel_planes[0] + in hme_compute_pred_and_evaluate_bi()
674 ps_inter_ctb_prms->pps_rec_list_l0[i1_ref_idx]->apu1_y_sub_pel_planes[1] + in hme_compute_pred_and_evaluate_bi()
677 ps_inter_ctb_prms->pps_rec_list_l0[i1_ref_idx]->apu1_y_sub_pel_planes[2] + in hme_compute_pred_and_evaluate_bi()
680 luma_weight_ref1 = (WORD32)ps_inter_ctb_prms->pps_rec_list_l0[i1_ref_idx] in hme_compute_pred_and_evaluate_bi()
682 luma_offset_ref1 = (WORD32)ps_inter_ctb_prms->pps_rec_list_l0[i1_ref_idx] in hme_compute_pred_and_evaluate_bi()
687 i1_ref_idx = ps_pu_node1->pu.mv.i1_l1_ref_idx; in hme_compute_pred_and_evaluate_bi()
[all …]
Dhme_utils.c452 S08 i1_ref_idx; in hme_map_mvs_to_grid() local
502 i1_ref_idx = ps_search_node->i1_ref_idx; in hme_map_mvs_to_grid()
527 ps_grid_node_tmp[i4_x].i1_ref_idx = i1_ref_idx; in hme_map_mvs_to_grid()
714 i1_ref_idx_fwd = ps_search_node_fwd->i1_ref_idx; in hme_pick_back_search_node()
743 S08 i1_ref_test = ps_search_node[i].i1_ref_idx; in hme_pick_back_search_node()
761 if((ps_search_node->i1_ref_idx != i1_ref_idx_fwd) || in hme_pick_back_search_node()
1019 S08 i1_ref_idx; in hme_reset_search_results() local
1032 for(i1_ref_idx = 0; i1_ref_idx < i4_num_ref; i1_ref_idx++) in hme_reset_search_results()
1040 ps_search_node = ps_search_results->aps_part_results[i1_ref_idx][i]; in hme_reset_search_results()
1049 ps_search_node[j].i1_ref_idx = -1; in hme_reset_search_results()
[all …]
Dhme_search_algo.c287 s_result_prms.i1_ref_idx = ps_search_prms->i1_ref_idx; in hme_pred_search_square_stepn()
316 s_err_prms.pu1_inp = ps_wt_inp_prms->apu1_wt_inp[s_search_node.i1_ref_idx] + i4_inp_off; in hme_pred_search_square_stepn()
323 s_err_prms.pu1_ref = ppu1_ref[s_search_node.i1_ref_idx] + i4_ref_offset; in hme_pred_search_square_stepn()
405 s_err_prms.pu1_ref = ppu1_ref[s_search_node.i1_ref_idx] + i4_ref_offset; in hme_pred_search_square_stepn()
576 s_result_prms.i1_ref_idx = (S08)ps_search_prms->i1_ref_idx; in hme_pred_search()
719 S32 i4_search_idx = ps_search_prms->i1_ref_idx; in hme_pred_search_no_encode()
784 s_result_prms.i1_ref_idx = (S08)ps_search_prms->i1_ref_idx; in hme_pred_search_no_encode()
Dhme_refine.c167 WORD8 i1_ref_idx; in ihevce_no_wt_copy() local
169 i1_ref_idx = ps_pu->mv.i1_l0_ref_idx; in ihevce_no_wt_copy()
170 pu1_ref = ps_curr_layer->ppu1_list_inp[i1_ref_idx]; in ihevce_no_wt_copy()
193 WORD8 i1_ref_idx; in ihevce_no_wt_copy() local
195 i1_ref_idx = ps_pu->mv.i1_l1_ref_idx; in ihevce_no_wt_copy()
196 pu1_ref = ps_curr_layer->ppu1_list_inp[i1_ref_idx]; in ihevce_no_wt_copy()
243 ps_merge_cand[i4_num_cands_added].i1_ref_idx = ps_data->ref_id; in hme_add_clustered_mvs_as_merge_cands()
257 (ps_merge_cand[k].i1_ref_idx == ps_data->ref_id)) in hme_add_clustered_mvs_as_merge_cands()
354 S08 i1_ref_idx; in hme_add_me_best_as_merge_cands() local
367 i1_ref_idx = pi1_future_list[ps_pu->mv.i1_l1_ref_idx]; in hme_add_me_best_as_merge_cands()
[all …]
Dhme_defs.h239 (node)->i1_ref_idx = *pref; \
243 if(((node)->i1_ref_idx < 0) || ((node)->s_mv.i2_mvx == INTRA_MV)) \
246 (node)->i1_ref_idx = refid; \
284 ((ps_mv_store)[i4_j].i1_ref_idx == ref_idx)) \
296 (ps_mv_store)[i4_j].i1_ref_idx = ref_idx; \
449 (node)->i1_ref_idx = *pref; \
453 if(((node)->i1_ref_idx < 0) || ((node)->ps_mv->i2_mvx == INTRA_MV)) \
456 (node)->i1_ref_idx = refid; \
554 ((as_nodes)[k].i1_ref_idx == (new_node).i1_ref_idx)) \
600 (as_nodes[k].i1_ref_idx == new_node.i1_ref_idx)) \
[all …]
Dhme_common_defs.h74 x = x * pi2_ref_scf[ref_tgt * MAX_NUM_REF + node->i1_ref_idx]; \
75 y = y * pi2_ref_scf[ref_tgt * MAX_NUM_REF + node->i1_ref_idx]; \
Dhme_utils.h133 search_results_t *ps_search_results, S08 i1_ref_idx, S08 i1_idx_to_merge);
508 S08 i1_ref_idx,
521 S08 i1_ref_idx,
770 S08 *pi1_ref_idx, S08 i1_ref_idx, S32 i4_result_id, S32 i4_num_results);
Dihevce_defs.h885 ps_part_results->i1_ref_idx = ps_search_node->i1_ref_idx; \
/external/libavc/encoder/
Dih264e_me.c411 (ps_left_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params()
416 (ps_top_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params()
485 (ps_left_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params_me()
490 (ps_top_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params_me()
544 WORD8 i1_ref_idx; in ih264e_get_mv_predictor() local
547 i1_ref_idx = -1; in ih264e_get_mv_predictor()
554 a = (ps_left_mb_pu->s_me_info[i4_ref_list].i1_ref_idx == i1_ref_idx) ? 0 : -1; in ih264e_get_mv_predictor()
555 b = (ps_top_row_pu[0].s_me_info[i4_ref_list].i1_ref_idx == i1_ref_idx) ? 0 : -1; in ih264e_get_mv_predictor()
556 c = (ps_top_row_pu[1].s_me_info[i4_ref_list].i1_ref_idx == i1_ref_idx) ? 0 : -1; in ih264e_get_mv_predictor()
666 ps_left_mb_pu->s_me_info[i4_reflist].i1_ref_idx = 0; in ih264e_mv_pred()
[all …]
Dih264e_cabac_init.c168 memset(ps_def_ctxt->i1_ref_idx, 0, sizeof(ps_def_ctxt->i1_ref_idx)); in ih264e_init_cabac_table()
Dih264e_cabac.c219 ps_cabac_ctxt->ps_curr_ctxt_mb_info->i1_ref_idx[0] = in ih264e_get_cabac_context()
220 ps_cabac_ctxt->ps_curr_ctxt_mb_info->i1_ref_idx[1] = in ih264e_get_cabac_context()
221 ps_cabac_ctxt->ps_curr_ctxt_mb_info->i1_ref_idx[2] = in ih264e_get_cabac_context()
222 ps_cabac_ctxt->ps_curr_ctxt_mb_info->i1_ref_idx[3] = 0; in ih264e_get_cabac_context()
Dih264e_cabac_structs.h82 WORD8 i1_ref_idx[4]; member
/external/libavc/decoder/
Dih264d_parse_bslice.c92 WORD8 (*pi1_ref_idx)[MAX_REFIDX_INFO_PER_MB] = ps_parse_mb_data->i1_ref_idx; in ih264d_parse_bmb_non_direct_cavlc()
419 WORD8 *pi1_ref_idx_l0 = &ps_parse_mb_data->i1_ref_idx[0][0]; in ih264d_parse_bmb_non_direct_cabac()
420 WORD8 *pi1_ref_idx_l1 = &ps_parse_mb_data->i1_ref_idx[1][0]; in ih264d_parse_bmb_non_direct_cabac()
505 WORD8 *pi1_top_cxt = p_curr_ctxt->i1_ref_idx; in ih264d_parse_bmb_non_direct_cabac()
670 memset(p_curr_ctxt->i1_ref_idx, 0, 4); in ih264d_parse_bmb_cabac()
924 WORD16 i1_ref_idx, i1_ref_idx1; in ih264d_mv_pred_ref_tfr_nby2_bmb() local
933 ps_mb_part_info->i1_ref_idx; in ih264d_mv_pred_ref_tfr_nby2_bmb()
967 i1_ref_idx = MAX(pi1_ref_idx0[u1_blk_no], 0); in ih264d_mv_pred_ref_tfr_nby2_bmb()
969 i1_ref_idx >>= 1; in ih264d_mv_pred_ref_tfr_nby2_bmb()
970 i1_ref_idx *= in ih264d_mv_pred_ref_tfr_nby2_bmb()
[all …]
Dih264d_process_pslice.c116 WORD32 i1_ref_idx, i1_ref_idx1; in ih264d_mv_pred_ref_tfr_nby2_pmb() local
121 WORD8 *pi1_ref_idx = ps_mb_part_info->i1_ref_idx[0]; in ih264d_mv_pred_ref_tfr_nby2_pmb()
152 i1_ref_idx = pi1_ref_idx[u1_blk_no]; in ih264d_mv_pred_ref_tfr_nby2_pmb()
154 i1_ref_idx >>= 1; in ih264d_mv_pred_ref_tfr_nby2_pmb()
156 * X3(i1_ref_idx)]; in ih264d_mv_pred_ref_tfr_nby2_pmb()
184 i1_ref_idx = (u1_scale_ref && u4_bot_mb) ? MAX_REF_BUFS : 0; in ih264d_mv_pred_ref_tfr_nby2_pmb()
185 ps_ref_frame = pps_ref_frame[i1_ref_idx]; in ih264d_mv_pred_ref_tfr_nby2_pmb()
203 (i1_ref_idx >> u1_scale_ref),pu4_wt_offst, in ih264d_mv_pred_ref_tfr_nby2_pmb()
239 i1_ref_idx = pi1_ref_idx[u1_blk_no]; in ih264d_mv_pred_ref_tfr_nby2_pmb()
240 s_mvPred.i1_ref_frame[0] = i1_ref_idx; in ih264d_mv_pred_ref_tfr_nby2_pmb()
[all …]
Dih264d_process_bslice.c263 WORD8 i1_ref_idx= 0; in ih264d_decode_spatial_direct() local
270 ps_pred_pkd,ps_pic_buff0->u1_pic_buf_id,i1_ref_idx,pui32_weight_ofsts, in ih264d_decode_spatial_direct()
285 WORD8 i1_ref_idx= 0; in ih264d_decode_spatial_direct() local
292 ps_pred_pkd,ps_pic_buff1->u1_pic_buf_id,i1_ref_idx,pui32_weight_ofsts, in ih264d_decode_spatial_direct()
360 WORD8 i1_ref_idx= 0; in ih264d_decode_spatial_direct() local
364 ps_pred_pkd,ps_pic_buff0->u1_pic_buf_id,i1_ref_idx,pui32_weight_ofsts, in ih264d_decode_spatial_direct()
376 WORD8 i1_ref_idx= 0; in ih264d_decode_spatial_direct() local
383 ps_pred_pkd,ps_pic_buff0->u1_pic_buf_id,i1_ref_idx,pui32_weight_ofsts, in ih264d_decode_spatial_direct()
396 WORD8 i1_ref_idx= 0; in ih264d_decode_spatial_direct() local
400 ps_pred_pkd,ps_pic_buff1->u1_pic_buf_id,i1_ref_idx,pui32_weight_ofsts, in ih264d_decode_spatial_direct()
[all …]
Dih264d_parse_mb_header.c477 WORD8 i1_ref_idx; in ih264d_parse_ref_idx_cabac() local
483 i1_ref_idx = *pi1_ref_idx; in ih264d_parse_ref_idx_cabac()
485 if(i1_ref_idx > 0) in ih264d_parse_ref_idx_cabac()
493 i1_ref_idx = (WORD8)ih264d_decode_bins_unary(32, u4_cxt_inc, in ih264d_parse_ref_idx_cabac()
497 if((i1_ref_idx > u1_max_ref_minus1) || (i1_ref_idx < 0)) in ih264d_parse_ref_idx_cabac()
502 *pi1_ref_idx = i1_ref_idx; in ih264d_parse_ref_idx_cabac()
509 pi1_lft_cxt[u1_idx_lft] = i1_ref_idx; in ih264d_parse_ref_idx_cabac()
510 pi1_top_cxt[u1_idx_top] = i1_ref_idx; in ih264d_parse_ref_idx_cabac()
Dih264d_inter_pred.h60 WORD8 i1_ref_idx,UWORD32 *pu4_wt_offset,UWORD8 u1_pic_type);
Dih264d_inter_pred.c112 WORD8 i1_ref_idx,UWORD32 *pu4_wt_offset,UWORD8 u1_pic_type) in ih264d_fill_pred_info() argument
128 ps_pred_pkd->i1_ref_idx_info = i1_ref_idx; in ih264d_fill_pred_info()
490 WORD8 i1_size_pos_info,i1_buf_id,i1_ref_idx; in ih264d_form_mb_part_info_mp() local
510 i1_ref_idx = ps_pred_pkd->i1_ref_idx_info & 0x3f; in ih264d_form_mb_part_info_mp()
537 * X3(i1_ref_idx)]; in ih264d_form_mb_part_info_mp()
Dih264d_cabac.h108 WORD8 i1_ref_idx[4]; member
Dih264d_mb_utils.c502 memset(ps_dec->ps_curr_ctxt_mb_info->i1_ref_idx, 0, 4); in ih264d_get_mb_info_cabac_nonmbaff()
1095 ps_dec->ps_curr_ctxt_mb_info->i1_ref_idx; in ih264d_get_cabac_context_mbaff()
1108 &ps_dec->p_top_ctxt_mb_info->i1_ref_idx, 4); in ih264d_get_cabac_context_mbaff()
/external/libhevc/encoder/arm/
Dihevce_me_neon.c497 ps_err_prms->pu1_inp = ps_wt_inp_prms->apu1_wt_inp[ps_search_node->i1_ref_idx] + i4_inp_off; in hme_calc_sad_and_1_best_result_neon()
498 ps_err_prms->pu1_ref = ppu1_ref[ps_search_node->i1_ref_idx] + i4_ref_off; in hme_calc_sad_and_1_best_result_neon()
521 S32 i4_ref_idx = ps_result_prms->i1_ref_idx; in hme_calc_sad_and_1_best_result_neon()
536 ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_search_node->i1_ref_idx]; in hme_calc_sad_and_1_best_result_neon()
576 refine_ctxt->i2_ref_idx[0][id] = ps_search_node->i1_ref_idx; in hme_calc_sad_and_1_best_result_neon()
596 refine_ctxt->i2_ref_idx[0][part_id] = ps_search_node->i1_ref_idx; in hme_calc_sad_and_1_best_result_neon()
604 refine_ctxt->i2_ref_idx[1][part_id] = ps_search_node->i1_ref_idx; in hme_calc_sad_and_1_best_result_neon()
655 refine_ctxt->i2_ref_idx[0][id] = ps_result_prms->i1_ref_idx; in hme_calc_sad_and_1_best_result_subpel_neon()
Dihevce_coarse_layer_sad_neon.c123 S32 i4_search_idx = ps_search_prms->i1_ref_idx; in hme_store_4x4_sads_high_speed_neon()
276 S32 i4_search_idx = ps_search_prms->i1_ref_idx; in hme_store_4x4_sads_high_quality_neon()
446 S08 i1_ref_idx, in hme_combine_4x4_sads_and_compute_cost_high_speed_neon() argument
476 const uint16x8_t v_ref_idx = vdupq_n_u16(i1_ref_idx); in hme_combine_4x4_sads_and_compute_cost_high_speed_neon()
586 gi2_mvx_range[mvx + MAX_MVX_SUPPORTED_IN_COARSE_LAYER][0] + i1_ref_idx; in hme_combine_4x4_sads_and_compute_cost_high_speed_neon()
607 S08 i1_ref_idx, in hme_combine_4x4_sads_and_compute_cost_high_quality_neon() argument
637 const uint16x8_t v_ref_idx = vdupq_n_u16(i1_ref_idx); in hme_combine_4x4_sads_and_compute_cost_high_quality_neon()
748 i1_ref_idx; in hme_combine_4x4_sads_and_compute_cost_high_quality_neon()

12