Lines Matching refs:P_TOP

41 #define P_TOP P[2]
611 P_TOP[0] = s->current_picture.motion_val[0][mot_xy - mot_stride ][0];
612 P_TOP[1] = s->current_picture.motion_val[0][mot_xy - mot_stride ][1];
615 if (P_TOP[1] > c->ymax * (1 << shift)) P_TOP[1] = c->ymax * (1 << shift);
620 P_MEDIAN[0]= mid_pred(P_LEFT[0], P_TOP[0], P_TOPRIGHT[0]);
621 P_MEDIAN[1]= mid_pred(P_LEFT[1], P_TOP[1], P_TOPRIGHT[1]);
785 P_TOP[0] = mv_table[xy - mot_stride][0];
786 P_TOP[1] = mv_table[xy - mot_stride][1];
789 if(P_TOP[1] > (c->ymax<<1)) P_TOP[1] = (c->ymax<<1);
794 P_MEDIAN[0]= mid_pred(P_LEFT[0], P_TOP[0], P_TOPRIGHT[0]);
795 P_MEDIAN[1]= mid_pred(P_LEFT[1], P_TOP[1], P_TOPRIGHT[1]);
935 P_TOP[0] = s->current_picture.motion_val[0][mot_xy - mot_stride ][0];
936 P_TOP[1] = s->current_picture.motion_val[0][mot_xy - mot_stride ][1];
939 if (P_TOP[1] > (c->ymax << shift))
940 P_TOP[1] = c->ymax << shift;
946 P_MEDIAN[0] = mid_pred(P_LEFT[0], P_TOP[0], P_TOPRIGHT[0]);
947 P_MEDIAN[1] = mid_pred(P_LEFT[1], P_TOP[1], P_TOPRIGHT[1]);
1090 P_TOP[0]= P_TOPRIGHT[0]= P_MEDIAN[0]=
1091 P_TOP[1]= P_TOPRIGHT[1]= P_MEDIAN[1]= 0; //FIXME
1093 P_TOP[0] = s->p_mv_table[xy + s->mb_stride ][0];
1094 P_TOP[1] = s->p_mv_table[xy + s->mb_stride ][1];
1097 if(P_TOP[1] < (c->ymin<<shift)) P_TOP[1] = (c->ymin<<shift);
1101 P_MEDIAN[0]= mid_pred(P_LEFT[0], P_TOP[0], P_TOPRIGHT[0]);
1102 P_MEDIAN[1]= mid_pred(P_LEFT[1], P_TOP[1], P_TOPRIGHT[1]);
1143 P_TOP[0] = mv_table[mot_xy - mot_stride ][0];
1144 P_TOP[1] = mv_table[mot_xy - mot_stride ][1];
1147 if (P_TOP[1] > (c->ymax << shift)) P_TOP[1] = (c->ymax << shift);
1151 P_MEDIAN[0] = mid_pred(P_LEFT[0], P_TOP[0], P_TOPRIGHT[0]);
1152 P_MEDIAN[1] = mid_pred(P_LEFT[1], P_TOP[1], P_TOPRIGHT[1]);
1464 P_TOP[0] = av_clip(mv_table[mot_xy - mot_stride ][0], xmin * (1 << shift), xmax << shift);
1465 P_TOP[1] = av_clip(mv_table[mot_xy - mot_stride ][1], ymin * (1 << shift), ymax << shift);
1469 P_MEDIAN[0]= mid_pred(P_LEFT[0], P_TOP[0], P_TOPRIGHT[0]);
1470 P_MEDIAN[1]= mid_pred(P_LEFT[1], P_TOP[1], P_TOPRIGHT[1]);