Lines Matching refs:mv_x
469 int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb,
483 mv_x = mv_y = 0;
515 mb->mv_x = mb->mv_y = 0; /* no motion vector coded */
519 mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale);
522 mb->mv_x = ref_mb->mv_x;
554 mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */
560 mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale);
563 mb->mv_x = ref_mb->mv_x;
573 mv_x += IVI_TOSIGNED(mv_delta);
574 mb->mv_x = mv_x;
584 mv_x += IVI_TOSIGNED(mv_delta);
585 mb->b_mv_x = -mv_x;
590 mb->b_mv_x = -mb->mv_x;
592 mb->mv_x = 0;
600 if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 ||
601 x + ((mb->mv_x+s)>>s) + band->mb_size - 1
603 av_log(avctx, AV_LOG_ERROR, "motion vector %d %d outside reference\n", x*s + mb->mv_x, y*s + mb->mv_y);