Lines Matching defs:dmv_x
1098 static av_always_inline void get_mvdata_interlaced(VC1Context *v, int *dmv_x,
1128 *dmv_x = get_bits(gb, v->k_x);
1144 *dmv_x = (sign ^ ((val >> 1) + offs_tab[index1])) - sign;
1146 *dmv_x = 0;
1338 static inline void vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y,
1361 dmv_x <<= 1 - s->quarter_sample;
1574 s->mv[dir][n][0] = s->current_picture.f.motion_val[dir][xy + v->blocks_off][0] = ((px + dmv_x + r_x) & ((r_x << 1) - 1)) - r_x;
1590 static inline void vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y,
1797 s->mv[0][n][0] = s->current_picture.f.motion_val[0][xy][0] = ((px + dmv_x + r_x) & ((r_x << 1) - 1)) - r_x;
1992 static inline void vc1_b_mc(VC1Context *v, int dmv_x[2], int dmv_y[2],
2021 static inline void vc1_pred_b_mv(VC1Context *v, int dmv_x[2], int dmv_y[2],
2035 dmv_x[0] <<= 1 - s->quarter_sample;
2037 dmv_x[1] <<= 1 - s->quarter_sample;
2145 s->mv[0][0][0] = ((px + dmv_x[0] + r_x) & ((r_x << 1) - 1)) - r_x;
2225 s->mv[1][0][0] = ((px + dmv_x[1] + r_x) & ((r_x << 1) - 1)) - r_x;
2234 static inline void vc1_pred_b_mv_intfi(VC1Context *v, int n, int *dmv_x, int *dmv_y, int mv1, int *pred_flag)
2274 vc1_pred_mv(v, 0, dmv_x[0], dmv_y[0], 1, v->range_x, v->range_y, v->mb_type[0], pred_flag[0], 0);
2275 vc1_pred_mv(v, 0, dmv_x[1], dmv_y[1], 1, v->range_x, v->range_y, v->mb_type[0], pred_flag[1], 1);
2279 vc1_pred_mv(v, n, dmv_x[1], dmv_y[1], mv1, v->range_x, v->range_y, v->mb_type[0], pred_flag[1], 1);
2281 vc1_pred_mv(v, 0, dmv_x[0], dmv_y[0], 1, v->range_x, v->range_y, v->mb_type[0], 0, 0);
2284 vc1_pred_mv(v, n, dmv_x[0], dmv_y[0], mv1, v->range_x, v->range_y, v->mb_type[0], pred_flag[0], 0);
2286 vc1_pred_mv(v, 0, dmv_x[1], dmv_y[1], 1, v->range_x, v->range_y, v->mb_type[0], 0, 1);
3453 int dmv_x, dmv_y; /* Differential MV components */
3474 GET_MVDATA(dmv_x, dmv_y);
3481 vc1_pred_mv(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], 0, 0);
3567 dmv_x = dmv_y = 0;
3571 GET_MVDATA(dmv_x, dmv_y);
3573 vc1_pred_mv(v, i, dmv_x, dmv_y, 0, v->range_x, v->range_y, v->mb_type[0], 0, 0);
3692 int dmv_x, dmv_y; /* Differential MV components */
3808 dmv_x = dmv_y = 0;
3811 get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0);
3813 vc1_pred_mv_intfr(v, i, dmv_x, dmv_y, 0, v->range_x, v->range_y, v->mb_type[0]);
3821 dmv_x = dmv_y = 0;
3823 get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0);
3825 vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0]);
3828 dmv_x = dmv_y = 0;
3830 get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0);
3832 vc1_pred_mv_intfr(v, 2, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0]);
3839 get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0);
3841 vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0]);
3900 int dmv_x, dmv_y; /* Differential MV components */
3952 dmv_x = dmv_y = 0;
3954 get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag);
3956 vc1_pred_mv(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], pred_flag, 0);
3963 dmv_x = dmv_y = pred_flag = 0;
3966 get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag);
3968 vc1_pred_mv(v, i, dmv_x, dmv_y, 0, v->range_x, v->range_y, v->mb_type[0], pred_flag, 0);
4026 int dmv_x[2], dmv_y[2];
4041 dmv_x[0] = dmv_x[1] = dmv_y[0] = dmv_y[1] = 0;
4050 GET_MVDATA(dmv_x[0], dmv_y[0]);
4051 dmv_x[1] = dmv_x[0];
4065 dmv_x[0] = dmv_y[0] = 0;
4075 vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype);
4076 vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype);
4086 dmv_x[0] = dmv_y[0] = dmv_x[1] = dmv_y[1] = 0;
4087 vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype);
4088 vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype);
4092 vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype);
4093 vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype);
4101 vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype);
4104 GET_MVDATA(dmv_x[0], dmv_y[0]);
4107 vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype);
4108 vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype);
4112 vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype);
4114 vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype);
4177 int dmv_x[2], dmv_y[2], pred_flag[2];
4233 dmv_x[0] = dmv_x[1] = dmv_y[0] = dmv_y[1] = 0;
4253 get_mvdata_interlaced(v, &dmv_x[bmvtype == BMV_TYPE_BACKWARD], &dmv_y[bmvtype == BMV_TYPE_BACKWARD], &pred_flag[bmvtype == BMV_TYPE_BACKWARD]);
4256 get_mvdata_interlaced(v, &dmv_x[1], &dmv_y[1], &pred_flag[1]);
4259 dmv_x[0] = dmv_y[0] = pred_flag[0] = 0;
4260 dmv_x[1] = dmv_y[1] = pred_flag[0] = 0;
4262 vc1_pred_b_mv_intfi(v, 0, dmv_x, dmv_y, 1, pred_flag);
4263 vc1_b_mc(v, dmv_x, dmv_y, (bmvtype == BMV_TYPE_DIRECT), bmvtype);
4272 dmv_x[0] = dmv_y[0] = pred_flag[0] = 0;
4273 dmv_x[1] = dmv_y[1] = pred_flag[1] = 0;
4276 get_mvdata_interlaced(v, &dmv_x[bmvtype == BMV_TYPE_BACKWARD],
4280 vc1_pred_b_mv_intfi(v, i, dmv_x, dmv_y, 0, pred_flag);