47 int c_wrap, c_xy, l_wrap, l_xy;
50 l_xy = (2 * s->
mb_y - 1) * l_wrap + s->
mb_x * 2 - 1;
52 c_xy = (s->
mb_y - 1) * c_wrap + s->
mb_x - 1;
62 memset(s->
ac_val[0] + l_xy, 0, (l_wrap * 2 + 1) * 16 *
sizeof(int16_t));
63 memset(s->
ac_val[1] + c_xy, 0, (c_wrap + 1) * 16 *
sizeof(int16_t));
64 memset(s->
ac_val[2] + c_xy, 0, (c_wrap + 1) * 16 *
sizeof(int16_t));
77 #define tab_size ((signed)FF_ARRAY_ELEMS(s->direct_scale_mv[0]))
78 #define tab_bias (tab_size / 2)
102 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] - p_mx
105 s->
mv[0][i][0] = p_mx * time_pb / time_pp + mx;
106 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] - p_mx
107 : p_mx * (time_pb - time_pp) / time_pp;
112 s->
mv[1][i][1] = my ? s->
mv[0][i][1] - p_my
115 s->
mv[0][i][1] = p_my * time_pb / time_pp + my;
116 s->
mv[1][i][1] = my ? s->
mv[0][i][1] - p_my
117 : p_my * (time_pb - time_pp) / time_pp;
138 if (
IS_8X8(colocated_mb_type)) {
140 for (i = 0; i < 4; i++)
145 for (i = 0; i < 2; i++) {
157 time_pb / time_pp + mx;
159 time_pb / time_pp + my;
160 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] -
163 (time_pb - time_pp) / time_pp;
164 s->
mv[1][i][1] = my ? s->
mv[0][i][1] -
167 (time_pb - time_pp) / time_pp;
175 s->
mv[0][3][0] = s->
mv[0][0][0];
178 s->
mv[0][3][1] = s->
mv[0][0][1];
181 s->
mv[1][3][0] = s->
mv[1][0][0];
184 s->
mv[1][3][1] = s->
mv[1][0][1];