46 int c_wrap, c_xy, l_wrap, l_xy;
49 l_xy = (2 * s->
mb_y - 1) * l_wrap + s->
mb_x * 2 - 1;
51 c_xy = (s->
mb_y - 1) * c_wrap + s->
mb_x - 1;
61 memset(s->
ac_val[0] + l_xy, 0, (l_wrap * 2 + 1) * 16 *
sizeof(int16_t));
62 memset(s->
ac_val[1] + c_xy, 0, (c_wrap + 1) * 16 *
sizeof(int16_t));
63 memset(s->
ac_val[2] + c_xy, 0, (c_wrap + 1) * 16 *
sizeof(int16_t));
76 #define tab_size ((signed)FF_ARRAY_ELEMS(s->direct_scale_mv[0]))
77 #define tab_bias (tab_size / 2)
101 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] - p_mx
104 s->
mv[0][i][0] = p_mx * time_pb / time_pp + mx;
105 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] - p_mx
106 : p_mx * (time_pb - time_pp) / time_pp;
111 s->
mv[1][i][1] = my ? s->
mv[0][i][1] - p_my
114 s->
mv[0][i][1] = p_my * time_pb / time_pp + my;
115 s->
mv[1][i][1] = my ? s->
mv[0][i][1] - p_my
116 : p_my * (time_pb - time_pp) / time_pp;
137 if (
IS_8X8(colocated_mb_type)) {
139 for (i = 0; i < 4; i++)
144 for (i = 0; i < 2; i++) {
156 time_pb / time_pp + mx;
158 time_pb / time_pp + my;
159 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] -
162 (time_pb - time_pp) / time_pp;
163 s->
mv[1][i][1] = my ? s->
mv[0][i][1] -
166 (time_pb - time_pp) / time_pp;
174 s->
mv[0][3][0] = s->
mv[0][0][0];
177 s->
mv[0][3][1] = s->
mv[0][0][1];
180 s->
mv[1][3][0] = s->
mv[1][0][0];
183 s->
mv[1][3][1] = s->
mv[1][0][1];