45 int c_wrap, c_xy, l_wrap, l_xy;
48 l_xy= (2*s->
mb_y-1)*l_wrap + s->
mb_x*2 - 1;
50 c_xy= (s->
mb_y-1)*c_wrap + s->
mb_x - 1;
60 memset(s->
ac_val[0] + l_xy, 0, (l_wrap*2+1)*16*
sizeof(int16_t));
61 memset(s->
ac_val[1] + c_xy, 0, (c_wrap +1)*16*
sizeof(int16_t));
62 memset(s->
ac_val[2] + c_xy, 0, (c_wrap +1)*16*
sizeof(int16_t));
74 #define tab_size ((signed)FF_ARRAY_ELEMS(s->direct_scale_mv[0]))
75 #define tab_bias (tab_size/2)
95 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] - p_mx
98 s->
mv[0][i][0] = p_mx*time_pb/time_pp + mx;
99 s->
mv[1][i][0] = mx ? s->
mv[0][i][0] - p_mx
100 : p_mx*(time_pb - time_pp)/time_pp;
105 s->
mv[1][i][1] = my ? s->
mv[0][i][1] - p_my
108 s->
mv[0][i][1] = p_my*time_pb/time_pp + my;
109 s->
mv[1][i][1] = my ? s->
mv[0][i][1] - p_my
110 : p_my*(time_pb - time_pp)/time_pp;
131 if(
IS_8X8(colocated_mb_type)){
160 s->
mv[0][1][0] = s->
mv[0][2][0] = s->
mv[0][3][0] = s->
mv[0][0][0];
161 s->
mv[0][1][1] = s->
mv[0][2][1] = s->
mv[0][3][1] = s->
mv[0][0][1];
162 s->
mv[1][1][0] = s->
mv[1][2][0] = s->
mv[1][3][0] = s->
mv[1][0][0];
163 s->
mv[1][1][1] = s->
mv[1][2][1] = s->
mv[1][3][1] = s->
mv[1][0][1];