Home
last modified time | relevance | path

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

/external/libhevc/decoder/
Dihevcd_mv_pred.c103 void ihevcd_scale_mv(mv_t *ps_mv, in ihevcd_scale_mv() argument
122 mvx = ps_mv->i2_mvx; in ihevcd_scale_mv()
123 mvy = ps_mv->i2_mvy; in ihevcd_scale_mv()
130 ps_mv->i2_mvx = CLIP_S16(mvx); in ihevcd_scale_mv()
131 ps_mv->i2_mvy = CLIP_S16(mvy); in ihevcd_scale_mv()
164 void ihevcd_scale_collocated_mv(mv_t *ps_mv, in ihevcd_scale_collocated_mv() argument
182 mvx = ps_mv->i2_mvx; in ihevcd_scale_collocated_mv()
183 mvy = ps_mv->i2_mvy; in ihevcd_scale_collocated_mv()
190 ps_mv->i2_mvx = CLIP_S16(mvx); in ihevcd_scale_collocated_mv()
191 ps_mv->i2_mvy = CLIP_S16(mvy); in ihevcd_scale_collocated_mv()
[all …]
Dihevcd_parse_slice.h41 IHEVCD_ERROR_T ihevcd_parse_mvd(codec_t *ps_codec, mv_t *ps_mv);
Dihevcd_mv_pred.h52 void ihevcd_scale_mv(mv_t *ps_mv,
Dihevcd_mv_merge.h106 void ihevcd_scale_collocated_mv(mv_t *ps_mv,
Dihevcd_parse_slice.c434 IHEVCD_ERROR_T ihevcd_parse_mvd(codec_t *ps_codec, mv_t *ps_mv) in ihevcd_parse_mvd() argument
491 ps_mv->i2_mvx = abs_mvd; in ihevcd_parse_mvd()
511 ps_mv->i2_mvy = abs_mvd; in ihevcd_parse_mvd()
/external/libhevc/encoder/
Dihevce_mv_pred.c232 mv_t *ps_mv; in ihevce_mv_pred() local
237 ps_mv = &as_mv_a[0]; in ihevce_mv_pred()
310 ps_mv[l_x] = *ps_nbr_mv[a][l_x]; in ihevce_mv_pred()
327 ps_mv[l_x] = *ps_nbr_mv[a][l_y]; in ihevce_mv_pred()
353 ps_mv[l_x] = *ps_nbr_mv[a][l_x]; in ihevce_mv_pred()
362 ps_mv[l_x] = *ps_nbr_mv[a][l_y]; in ihevce_mv_pred()
384 ihevce_scale_mv(&ps_mv[l_x], cur_ref_poc, nbr_ref_poc, cur_poc); in ihevce_mv_pred()
400 mv_t *ps_mv; in ihevce_mv_pred() local
405 ps_mv = &as_mv_b[0]; in ihevce_mv_pred()
504 ps_mv[l_x] = *ps_nbr_mv[b][l_x]; in ihevce_mv_pred()
[all …]
Dhme_utils.c321 void hme_get_global_mv(layer_ctxt_t *ps_prev_layer, hme_mv_t *ps_mv, S32 i4_delta_poc) in hme_get_global_mv() argument
335 ps_mv->i2_mv_x = i2_mv_x; in hme_get_global_mv()
336 ps_mv->i2_mv_y = i2_mv_y; in hme_get_global_mv()
354 void hme_calculate_global_mv(mv_hist_t *ps_hist, hme_mv_t *ps_mv, GMV_MVTYPE_T e_lobe_type) in hme_calculate_global_mv() argument
390 ps_mv->i2_mv_y = (S16)((i4_max_y << ps_hist->i4_shift_y) + ps_hist->i4_min_y); in hme_calculate_global_mv()
391 ps_mv->i2_mv_x = (S16)((i4_max_x << ps_hist->i4_shift_x) + ps_hist->i4_min_x); in hme_calculate_global_mv()
1237 ps_mv_bank->ps_mv = ps_mv_bank->ps_mv_base + mvs_in_row + mvs_in_blk; in hme_init_mv_bank()
1271 hme_mv_t *ps_mv; in hme_fill_mvbank_intra() local
1295 ps_mv = ps_mv_bank->ps_mv; in hme_fill_mvbank_intra()
1302 ps_mv[j].i2_mv_x = INTRA_MV; in hme_fill_mvbank_intra()
[all …]
Dhme_defs.h255 #define COMPUTE_MVD(ps_mv, ps_data, cumulative_mv_distance) \ argument
257 S32 mvx_q8 = (ps_mv)->mvx << 8; \
258 S32 mvy_q8 = (ps_mv)->mvy << 8; \
430 ps_cluster_data, ps_range_prms, ps_list, ps_mv, is_ref_in_l0, ref_idx) \ argument
433 ps_mv = &ps_list->as_mv[ps_list->num_mvs]; \
435 ps_mv->i2_mvx = (ps_centroid->i4_pos_x_q8 + (1 << 7)) >> 8; \
436 ps_mv->i2_mvy = (ps_centroid->i4_pos_y_q8 + (1 << 7)) >> 8; \
438 CLIP_MV_WITHIN_RANGE(ps_mv->i2_mvx, ps_mv->i2_mvy, (ps_range_prms), 0, 0, 0); \
447 (node)->ps_mv->i2_mvx = (mv)->i2_mv_x; \
448 (node)->ps_mv->i2_mvy = (mv)->i2_mv_y; \
[all …]
Dhme_coarse.c110 #define COPY_SEARCH_RESULT(ps_mv, pi1_ref_idx, ps_search_node, shift) \ argument
112 ps_mv->i2_mv_x = ps_search_node->s_mv.i2_mvx >> (shift); \
113 ps_mv->i2_mv_y = ps_search_node->s_mv.i2_mvy >> (shift); \
164 hme_mv_t *ps_mv; in hme_update_mv_bank_coarse() local
189 ps_mv = ps_layer_mv->ps_mv + (i4_offset + (num_mvs * i1_ref_idx)); in hme_update_mv_bank_coarse()
210 COPY_SEARCH_RESULT(ps_mv, pi1_ref_idx, aps_search_nodes[0], 0); in hme_update_mv_bank_coarse()
211 ps_mv++; in hme_update_mv_bank_coarse()
213 COPY_SEARCH_RESULT(ps_mv, pi1_ref_idx, aps_search_nodes[1], 0); in hme_update_mv_bank_coarse()
214 ps_mv++; in hme_update_mv_bank_coarse()
216 COPY_SEARCH_RESULT(ps_mv, pi1_ref_idx, aps_search_nodes[2], 0); in hme_update_mv_bank_coarse()
[all …]
Dhme_refine.c352 mv_t *ps_mv; in hme_add_me_best_as_merge_cands() local
366 ps_mv = &ps_pu->mv.s_l1_mv; in hme_add_me_best_as_merge_cands()
371 ps_mv = &ps_pu->mv.s_l0_mv; in hme_add_me_best_as_merge_cands()
380 ps_merge_cand[i4_num_cands_added].s_mv.i2_mvx = ps_mv->i2_mvx; in hme_add_me_best_as_merge_cands()
381 ps_merge_cand[i4_num_cands_added].s_mv.i2_mvy = ps_mv->i2_mvy; in hme_add_me_best_as_merge_cands()
394 if((ps_merge_cand[k].s_mv.i2_mvx == ps_mv->i2_mvx) && in hme_add_me_best_as_merge_cands()
395 (ps_merge_cand[k].s_mv.i2_mvy == ps_mv->i2_mvy) && in hme_add_me_best_as_merge_cands()
417 mv_t *ps_mv; in hme_add_me_best_as_merge_cands() local
444 ps_mv = &ps_pu->mv.s_l1_mv; in hme_add_me_best_as_merge_cands()
449 ps_mv = &ps_pu->mv.s_l0_mv; in hme_add_me_best_as_merge_cands()
[all …]
Dihevce_common_utils.c608 void ihevce_scale_mv(mv_t *ps_mv, WORD32 i4_poc_to, WORD32 i4_poc_from, WORD32 i4_curr_poc) in ihevce_scale_mv() argument
622 mvx = ps_mv->i2_mvx; in ihevce_scale_mv()
623 mvy = ps_mv->i2_mvy; in ihevce_scale_mv()
628 ps_mv->i2_mvx = CLIP_S16(mvx); in ihevce_scale_mv()
629 ps_mv->i2_mvy = CLIP_S16(mvy); in ihevce_scale_mv()
Dihevce_mv_pred_merge.c137 mv_t *ps_mv, WORD32 cur_ref_poc, WORD32 col_ref_poc, WORD32 col_poc, WORD32 cur_poc) in ihevce_scale_collocated_mv() argument
151 mvx = ps_mv->i2_mvx; in ihevce_scale_collocated_mv()
152 mvy = ps_mv->i2_mvy; in ihevce_scale_collocated_mv()
157 ps_mv->i2_mvx = CLIP_S16(mvx); in ihevce_scale_collocated_mv()
158 ps_mv->i2_mvy = CLIP_S16(mvy); in ihevce_scale_collocated_mv()
Dhme_utils.h94 void hme_get_global_mv(layer_ctxt_t *ps_prev_layer, hme_mv_t *ps_mv, S32 i4_delta_poc);
111 void hme_calculate_global_mv(mv_hist_t *ps_hist, hme_mv_t *ps_mv, GMV_MVTYPE_T e_lobe_type);
Dihevce_common_utils.h180 void ihevce_scale_mv(mv_t *ps_mv, WORD32 i4_poc_to, WORD32 i4_poc_from, WORD32 i4_curr_poc);
Dhme_err_compute.c3738 ps_pred_node_b->s_mv = ps_pred_node_b->ps_mv[0]; in hme_set_mvp_node()
3744 ps_pred_node_a->s_mv = ps_pred_node_a->ps_mv[0]; in hme_set_mvp_node()
3749 ps_pred_node_b->s_mv = ps_pred_node_b->ps_mv[0]; in hme_set_mvp_node()
/external/libavc/decoder/
Dih264d_process_bslice.c76 mv_pred_t s_mv_pred, *ps_mv; in ih264d_decode_spatial_direct() local
334 ps_mv = ps_mv_nmb_start + u1_sub_mb_num; in ih264d_decode_spatial_direct()
335 ih264d_rep_mv_colz(ps_dec, &s_temp_mv_pred, ps_mv, u1_sub_mb_num, u1_colz, in ih264d_decode_spatial_direct()
552 ps_mv = ps_mv_nmb_start + u1_sub_mb_num; in ih264d_decode_spatial_direct()
553 ih264d_rep_mv_colz(ps_dec, &s_temp_mv_pred, ps_mv, u1_sub_mb_num, u1_colz, in ih264d_decode_spatial_direct()
588 mv_pred_t *ps_mv, s_temp_mv_pred; in ih264d_decode_temporal_direct() local
619 ps_mv = ps_col_pic->ps_mv + s_mvdirect.i4_mv_indices[i]; in ih264d_decode_temporal_direct()
633 c_refFrm0 = ps_mv->i1_ref_frame[0]; in ih264d_decode_temporal_direct()
634 c_refFrm1 = ps_mv->i1_ref_frame[1]; in ih264d_decode_temporal_direct()
668 buf_id = ps_mv->u1_col_ref_pic_idx; in ih264d_decode_temporal_direct()
[all …]
Dih264d_parse_slice.c440 ps_cur_pic->ps_mv = (mv_pred_t *)ps_col_mv->pv_mv; in ih264d_start_of_pic()
511 ps_cur_pic->ps_mv = (mv_pred_t *)ps_col_mv->pv_mv; in ih264d_start_of_pic()
545 ps_dec->s_cur_pic.ps_mv += in ih264d_start_of_pic()
572 ps_dec->ps_mv_cur = ps_dec->s_cur_pic.ps_mv; in ih264d_start_of_pic()
578 ps_dec->ps_mv_left = ps_dec->s_cur_pic.ps_mv; in ih264d_start_of_pic()
584 ps_dec->ps_mv = ps_dec->s_cur_pic.ps_mv; in ih264d_start_of_pic()
585 ps_dec->ps_mv_bank_cur = ps_dec->s_cur_pic.ps_mv; in ih264d_start_of_pic()
1774 ps_dec->ps_mv_cur = ps_dec->s_cur_pic.ps_mv in ih264d_parse_decode_slice()
1796 ps_dec->ps_mv_cur = ps_dec->s_cur_pic.ps_mv; in ih264d_parse_decode_slice()
Dih264d_parse_mb_header.h81 mv_pred_t *ps_mv);
Dih264d_parse_bslice.c287 mv_pred_t * ps_mv; in ih264d_parse_bmb_non_direct_cavlc() local
289 ps_mv = ps_mv_start + u1_sub_mb_num; in ih264d_parse_bmb_non_direct_cavlc()
371 ps_mv->i2_mv[u1_b2] = i2_mvx; in ih264d_parse_bmb_non_direct_cavlc()
372 ps_mv->i2_mv[u1_b2 + 1] = i2_mvy; in ih264d_parse_bmb_non_direct_cavlc()
584 mv_pred_t *ps_mv; in ih264d_parse_bmb_non_direct_cabac() local
586 ps_mv = ps_mv_start + u1_sub_mb_num; in ih264d_parse_bmb_non_direct_cabac()
605 ps_mv); in ih264d_parse_bmb_non_direct_cabac()
Dih264d_mvpred.h75 mv_pred_t *ps_mv; /** Ptr to the Mv bank */ member
Dih264d_parse_pslice.c218 mv_pred_t * ps_mv, *ps_mv_start = ps_dec->ps_mv_cur + (u1_mb_num << 4); in ih264d_parse_pmb_cavlc() local
264 ps_mv = ps_mv_start + u1_sub_mb_num; in ih264d_parse_pmb_cavlc()
310 ps_mv->i2_mv[0] = i2_mvx; in ih264d_parse_pmb_cavlc()
311 ps_mv->i2_mv[1] = i2_mvy; in ih264d_parse_pmb_cavlc()
635 mv_pred_t * ps_mv; in ih264d_parse_pmb_cabac() local
638 ps_mv = ps_mv_start + u1_sub_mb_num; in ih264d_parse_pmb_cabac()
651 u1_mb_part_height, 1, ps_dec, ps_mv); in ih264d_parse_pmb_cabac()
Dih264d_utils.c2355 mv_pred_t *ps_mv; in ih264d_create_mv_bank() local
2382 ps_mv = (mv_pred_t *)pu1_buf; in ih264d_create_mv_bank()
2385 memset(ps_mv, 0, ((ui_width * OFFSET_MV_BANK_ROW) >> 4) * sizeof(mv_pred_t)); in ih264d_create_mv_bank()
2386 ps_mv += (ui_width*OFFSET_MV_BANK_ROW) >> 4; in ih264d_create_mv_bank()
2389 ps_col_mv->pv_mv = (void *)ps_mv; in ih264d_create_mv_bank()
Dih264d_parse_mb_header.c1118 mv_pred_t *ps_mv) in ih264d_get_mvd_cabac() argument
1129 pi2_mv = &ps_mv->i2_mv[u1_b2]; in ih264d_get_mvd_cabac()
Dih264d_structs.h176 mv_pred_t *ps_mv; /** Pointer to the MV bank array */ member
786 mv_pred_t *ps_mv; /** Pointer to the MV bank array */ member
Dih264d_thread_compute_bs.c121 ps_cur_mv_pred = ps_dec->s_cur_pic.ps_mv + (u4_mb_num << 4); in ih264d_compute_bs_non_mbaff_thread()