Lines Matching refs:ps_mv_pred
76 mv_pred_t **ps_mv_pred, in ih264d_get_motion_vector_predictor() argument
87 (ps_mv_pred[LEFT]->i1_ref_frame[u1_B] == u1_ref_idx) in ih264d_get_motion_vector_predictor()
88 | ((ps_mv_pred[TOP]->i1_ref_frame[u1_B] in ih264d_get_motion_vector_predictor()
90 | ((ps_mv_pred[TOP_R]->i1_ref_frame[u1_B] in ih264d_get_motion_vector_predictor()
98 ps_result->i2_mv[uc_B2 + 0] = ps_mv_pred[c_temp]->i2_mv[uc_B2 + 0]; in ih264d_get_motion_vector_predictor()
99 ps_result->i2_mv[uc_B2 + 1] = ps_mv_pred[c_temp]->i2_mv[uc_B2 + 1]; in ih264d_get_motion_vector_predictor()
104 D0 = MIN(ps_mv_pred[0]->i2_mv[uc_B2 + 0], in ih264d_get_motion_vector_predictor()
105 ps_mv_pred[1]->i2_mv[uc_B2 + 0]); in ih264d_get_motion_vector_predictor()
106 D1 = MAX(ps_mv_pred[0]->i2_mv[uc_B2 + 0], in ih264d_get_motion_vector_predictor()
107 ps_mv_pred[1]->i2_mv[uc_B2 + 0]); in ih264d_get_motion_vector_predictor()
108 D1 = MIN(D1, ps_mv_pred[2]->i2_mv[uc_B2 + 0]); in ih264d_get_motion_vector_predictor()
111 D0 = MIN(ps_mv_pred[0]->i2_mv[uc_B2 + 1], in ih264d_get_motion_vector_predictor()
112 ps_mv_pred[1]->i2_mv[uc_B2 + 1]); in ih264d_get_motion_vector_predictor()
113 D1 = MAX(ps_mv_pred[0]->i2_mv[uc_B2 + 1], in ih264d_get_motion_vector_predictor()
114 ps_mv_pred[1]->i2_mv[uc_B2 + 1]); in ih264d_get_motion_vector_predictor()
115 D1 = MIN(D1, ps_mv_pred[2]->i2_mv[uc_B2 + 1]); in ih264d_get_motion_vector_predictor()
144 void ih264d_mbaff_mv_pred(mv_pred_t **ps_mv_pred, in ih264d_mbaff_mv_pred() argument
167 ps_mv_pred[LEFT] = &ps_dec->s_default_mv_pred; in ih264d_mbaff_mv_pred()
168 ps_mv_pred[TOP] = &(ps_dec->s_default_mv_pred); in ih264d_mbaff_mv_pred()
169 ps_mv_pred[TOP_R] = &(ps_dec->s_default_mv_pred); in ih264d_mbaff_mv_pred()
175 ps_mv_pred[LEFT] = (ps_mv_nmb - 1); in ih264d_mbaff_mv_pred()
203 ps_mv_pred[LEFT] = (ps_mvpred_l - uc_temp); in ih264d_mbaff_mv_pred()
212 ps_mv_pred[TOP] = ps_mv_nmb - 4; in ih264d_mbaff_mv_pred()
230 ps_mv_pred[TOP] = ps_mvpred_tmp; in ih264d_mbaff_mv_pred()
245 ps_mv_pred[TOP_R] = ps_mv_pred[TOP] + uc_mb_part_width; in ih264d_mbaff_mv_pred()
256 ps_mv_pred[TOP_R] = ps_mvpred_tmp; in ih264d_mbaff_mv_pred()
269 ps_mv_pred[TOP_R] = ps_mv_pred[TOP] - 1; in ih264d_mbaff_mv_pred()
277 ps_mvpred_tmp = ps_mv_pred[LEFT] - 4; in ih264d_mbaff_mv_pred()
281 ps_mvpred_tmp = ps_mv_pred[LEFT] + 16; in ih264d_mbaff_mv_pred()
296 ps_mv_pred[TOP_R] = ps_mvpred_tmp; in ih264d_mbaff_mv_pred()
304 ps_mv_pred[TOP] = ps_mv_pred[LEFT]; in ih264d_mbaff_mv_pred()
305 ps_mv_pred[TOP_R] = ps_mv_pred[LEFT]; in ih264d_mbaff_mv_pred()
335 void ih264d_non_mbaff_mv_pred(mv_pred_t **ps_mv_pred, in ih264d_non_mbaff_mv_pred() argument
349 ps_mv_pred[LEFT] = &ps_dec->s_default_mv_pred; in ih264d_non_mbaff_mv_pred()
350 ps_mv_pred[TOP] = &(ps_dec->s_default_mv_pred); in ih264d_non_mbaff_mv_pred()
351 ps_mv_pred[TOP_R] = &(ps_dec->s_default_mv_pred); in ih264d_non_mbaff_mv_pred()
356 ps_mv_pred[LEFT] = (ps_mv_nmb - 1); in ih264d_non_mbaff_mv_pred()
362 ps_mv_pred[LEFT] = (ps_mv_nmb - 13); in ih264d_non_mbaff_mv_pred()
371 ps_mv_pred[TOP] = ps_mv_ntop; in ih264d_non_mbaff_mv_pred()
379 ps_mv_pred[TOP] = ps_mv_ntop; in ih264d_non_mbaff_mv_pred()
393 ps_mv_pred[TOP_R] = (ps_mv_ntop + uc_mb_part_width); in ih264d_non_mbaff_mv_pred()
399 ps_mv_pred[TOP_R] += 12; in ih264d_non_mbaff_mv_pred()
409 ps_mv_pred[TOP_R] = (ps_mv_ntop - 1); in ih264d_non_mbaff_mv_pred()
414 ps_mv_pred[TOP_R] = (ps_mv_nmb - 17); in ih264d_non_mbaff_mv_pred()
419 ps_mv_pred[TOP_R] -= 12; in ih264d_non_mbaff_mv_pred()
427 ps_mv_pred[TOP] = ps_mv_pred[LEFT]; in ih264d_non_mbaff_mv_pred()
428 ps_mv_pred[TOP_R] = ps_mv_pred[LEFT]; in ih264d_non_mbaff_mv_pred()
470 mv_pred_t *ps_mv_pred[3]; in ih264d_mvpred_nonmbaffB() local
474 ih264d_non_mbaff_mv_pred(ps_mv_pred, u1_sub_mb_num, ps_mv_nmb, ps_mv_ntop, in ih264d_mvpred_nonmbaffB()
488 if(ps_mv_pred[TOP]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_nonmbaffB()
495 ps_mv_pred[TOP]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_nonmbaffB()
497 ps_mv_pred[TOP]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_nonmbaffB()
505 ps_mv_pred, in ih264d_mvpred_nonmbaffB()
513 if(ps_mv_pred[LEFT]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_nonmbaffB()
520 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_nonmbaffB()
522 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_nonmbaffB()
530 ps_mv_pred, in ih264d_mvpred_nonmbaffB()
541 if(ps_mv_pred[LEFT]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_nonmbaffB()
548 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_nonmbaffB()
550 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_nonmbaffB()
558 ps_mv_pred, in ih264d_mvpred_nonmbaffB()
566 if(ps_mv_pred[TOP_R]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_nonmbaffB()
573 ps_mv_pred[TOP_R]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_nonmbaffB()
575 ps_mv_pred[TOP_R]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_nonmbaffB()
583 ps_mv_pred, in ih264d_mvpred_nonmbaffB()
598 uc_temp1 = (UWORD8)ps_mv_pred[LEFT]->i1_ref_frame[0]; in ih264d_mvpred_nonmbaffB()
599 uc_temp2 = (UWORD8)ps_mv_pred[TOP]->i1_ref_frame[0]; in ih264d_mvpred_nonmbaffB()
600 uc_temp3 = (UWORD8)ps_mv_pred[TOP_R]->i1_ref_frame[0]; in ih264d_mvpred_nonmbaffB()
605 uc_temp1 = (UWORD8)ps_mv_pred[LEFT]->i1_ref_frame[1]; in ih264d_mvpred_nonmbaffB()
606 uc_temp2 = (UWORD8)ps_mv_pred[TOP]->i1_ref_frame[1]; in ih264d_mvpred_nonmbaffB()
607 uc_temp3 = (UWORD8)ps_mv_pred[TOP_R]->i1_ref_frame[1]; in ih264d_mvpred_nonmbaffB()
620 ps_mv_final_pred, ps_mv_pred, in ih264d_mvpred_nonmbaffB()
625 ps_mv_final_pred, ps_mv_pred, in ih264d_mvpred_nonmbaffB()
643 || ((ps_mv_pred[LEFT]->i2_mv[0] in ih264d_mvpred_nonmbaffB()
644 | ps_mv_pred[LEFT]->i2_mv[1] in ih264d_mvpred_nonmbaffB()
645 | ps_mv_pred[LEFT]->i1_ref_frame[0]) in ih264d_mvpred_nonmbaffB()
647 || ((ps_mv_pred[TOP]->i2_mv[0] in ih264d_mvpred_nonmbaffB()
648 | ps_mv_pred[TOP]->i2_mv[1] in ih264d_mvpred_nonmbaffB()
649 | ps_mv_pred[TOP]->i1_ref_frame[0]) in ih264d_mvpred_nonmbaffB()
660 ps_mv_final_pred, ps_mv_pred, u1_ref_idx, uc_lx, in ih264d_mvpred_nonmbaffB()
705 mv_pred_t *ps_mv_pred[3]; in ih264d_mvpred_nonmbaff() local
710 ih264d_non_mbaff_mv_pred(ps_mv_pred, u1_sub_mb_num, ps_mv_nmb, ps_mv_ntop, in ih264d_mvpred_nonmbaff()
722 if(ps_mv_pred[TOP]->i1_ref_frame[0] == u1_ref_idx) in ih264d_mvpred_nonmbaff()
729 ps_mv_final_pred->i2_mv[0] = ps_mv_pred[TOP]->i2_mv[0]; in ih264d_mvpred_nonmbaff()
730 ps_mv_final_pred->i2_mv[1] = ps_mv_pred[TOP]->i2_mv[1]; in ih264d_mvpred_nonmbaff()
738 ps_mv_pred, in ih264d_mvpred_nonmbaff()
746 if(ps_mv_pred[LEFT]->i1_ref_frame[0] == u1_ref_idx) in ih264d_mvpred_nonmbaff()
753 ps_mv_final_pred->i2_mv[0] = ps_mv_pred[LEFT]->i2_mv[0]; in ih264d_mvpred_nonmbaff()
754 ps_mv_final_pred->i2_mv[1] = ps_mv_pred[LEFT]->i2_mv[1]; in ih264d_mvpred_nonmbaff()
762 ps_mv_pred, in ih264d_mvpred_nonmbaff()
773 if(ps_mv_pred[LEFT]->i1_ref_frame[0] == u1_ref_idx) in ih264d_mvpred_nonmbaff()
780 ps_mv_final_pred->i2_mv[0] = ps_mv_pred[LEFT]->i2_mv[0]; in ih264d_mvpred_nonmbaff()
781 ps_mv_final_pred->i2_mv[1] = ps_mv_pred[LEFT]->i2_mv[1]; in ih264d_mvpred_nonmbaff()
789 ps_mv_pred, in ih264d_mvpred_nonmbaff()
797 if(ps_mv_pred[TOP_R]->i1_ref_frame[0] == u1_ref_idx) in ih264d_mvpred_nonmbaff()
804 ps_mv_final_pred->i2_mv[0] = ps_mv_pred[TOP_R]->i2_mv[0]; in ih264d_mvpred_nonmbaff()
805 ps_mv_final_pred->i2_mv[1] = ps_mv_pred[TOP_R]->i2_mv[1]; in ih264d_mvpred_nonmbaff()
813 ps_mv_pred, in ih264d_mvpred_nonmbaff()
828 uc_temp1 = (UWORD8)ps_mv_pred[LEFT]->i1_ref_frame[0]; in ih264d_mvpred_nonmbaff()
829 uc_temp2 = (UWORD8)ps_mv_pred[TOP]->i1_ref_frame[0]; in ih264d_mvpred_nonmbaff()
830 uc_temp3 = (UWORD8)ps_mv_pred[TOP_R]->i1_ref_frame[0]; in ih264d_mvpred_nonmbaff()
835 uc_temp1 = (UWORD8)ps_mv_pred[LEFT]->i1_ref_frame[1]; in ih264d_mvpred_nonmbaff()
836 uc_temp2 = (UWORD8)ps_mv_pred[TOP]->i1_ref_frame[1]; in ih264d_mvpred_nonmbaff()
837 uc_temp3 = (UWORD8)ps_mv_pred[TOP_R]->i1_ref_frame[1]; in ih264d_mvpred_nonmbaff()
850 ps_mv_final_pred, ps_mv_pred, in ih264d_mvpred_nonmbaff()
855 ps_mv_final_pred, ps_mv_pred, in ih264d_mvpred_nonmbaff()
873 || ((ps_mv_pred[LEFT]->i2_mv[0] in ih264d_mvpred_nonmbaff()
874 | ps_mv_pred[LEFT]->i2_mv[1] in ih264d_mvpred_nonmbaff()
875 | ps_mv_pred[LEFT]->i1_ref_frame[0]) in ih264d_mvpred_nonmbaff()
877 || ((ps_mv_pred[TOP]->i2_mv[0] in ih264d_mvpred_nonmbaff()
878 | ps_mv_pred[TOP]->i2_mv[1] in ih264d_mvpred_nonmbaff()
879 | ps_mv_pred[TOP]->i1_ref_frame[0]) in ih264d_mvpred_nonmbaff()
891 ps_mv_final_pred, ps_mv_pred, u1_ref_idx, 0, in ih264d_mvpred_nonmbaff()
935 mv_pred_t *ps_mv_pred[3], s_mvPred[3]; in ih264d_mvpred_mbaff() local
940 ih264d_mbaff_mv_pred(ps_mv_pred, u1_sub_mb_num, ps_mv_nmb, ps_mv_ntop, ps_dec, in ih264d_mvpred_mbaff()
946 memcpy(&s_mvPred[i], ps_mv_pred[i], sizeof(mv_pred_t)); in ih264d_mvpred_mbaff()
961 ps_mv_pred[i] = &s_mvPred[i]; in ih264d_mvpred_mbaff()
976 if(ps_mv_pred[TOP]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_mbaff()
983 ps_mv_pred[TOP]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_mbaff()
985 ps_mv_pred[TOP]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_mbaff()
993 ps_mv_pred, in ih264d_mvpred_mbaff()
1001 if(ps_mv_pred[LEFT]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_mbaff()
1008 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_mbaff()
1010 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_mbaff()
1018 ps_mv_pred, in ih264d_mvpred_mbaff()
1029 if(ps_mv_pred[LEFT]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_mbaff()
1036 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_mbaff()
1038 ps_mv_pred[LEFT]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_mbaff()
1046 ps_mv_pred, in ih264d_mvpred_mbaff()
1054 if(ps_mv_pred[TOP_R]->i1_ref_frame[uc_lx] == u1_ref_idx) in ih264d_mvpred_mbaff()
1061 ps_mv_pred[TOP_R]->i2_mv[uc_B2 + 0]; in ih264d_mvpred_mbaff()
1063 ps_mv_pred[TOP_R]->i2_mv[uc_B2 + 1]; in ih264d_mvpred_mbaff()
1071 ps_mv_pred, in ih264d_mvpred_mbaff()
1086 uc_temp1 = (UWORD8)ps_mv_pred[LEFT]->i1_ref_frame[0]; in ih264d_mvpred_mbaff()
1087 uc_temp2 = (UWORD8)ps_mv_pred[TOP]->i1_ref_frame[0]; in ih264d_mvpred_mbaff()
1088 uc_temp3 = (UWORD8)ps_mv_pred[TOP_R]->i1_ref_frame[0]; in ih264d_mvpred_mbaff()
1093 uc_temp1 = (UWORD8)ps_mv_pred[LEFT]->i1_ref_frame[1]; in ih264d_mvpred_mbaff()
1094 uc_temp2 = (UWORD8)ps_mv_pred[TOP]->i1_ref_frame[1]; in ih264d_mvpred_mbaff()
1095 uc_temp3 = (UWORD8)ps_mv_pred[TOP_R]->i1_ref_frame[1]; in ih264d_mvpred_mbaff()
1117 ps_mv_final_pred, ps_mv_pred, in ih264d_mvpred_mbaff()
1122 ps_mv_final_pred, ps_mv_pred, in ih264d_mvpred_mbaff()
1140 || ((ps_mv_pred[LEFT]->i2_mv[0] in ih264d_mvpred_mbaff()
1141 | ps_mv_pred[LEFT]->i2_mv[1] in ih264d_mvpred_mbaff()
1142 | ps_mv_pred[LEFT]->i1_ref_frame[0]) in ih264d_mvpred_mbaff()
1144 || ((ps_mv_pred[TOP]->i2_mv[0] in ih264d_mvpred_mbaff()
1145 | ps_mv_pred[TOP]->i2_mv[1] in ih264d_mvpred_mbaff()
1146 | ps_mv_pred[TOP]->i1_ref_frame[0]) in ih264d_mvpred_mbaff()
1157 ps_mv_final_pred, ps_mv_pred, u1_ref_idx, uc_lx, in ih264d_mvpred_mbaff()