l_wrap= s->block_wrap[0]; l_xy= s->mb_y*l_wrap*2 + s->mb_x*2; c_wrap= s->block_wrap[4]; c_xy= s->mb_y*c_wrap + s->mb_x;
l_wrap= s->b8_stride; l_xy= (2*s->mb_y-1)*l_wrap + s->mb_x*2 - 1; c_wrap= s->mb_stride; c_xy= (s->mb_y-1)*c_wrap + s->mb_x - 1;
void ff_mpeg4_clean_buffers(MpegEncContext *s){    int c_wrap, c_xy, l_wrap, l_xy;    l_wrap= s->block_wrap[0];    l_xy= s->mb_y*l_wrap*2 + s->mb_x*2;    c_wrap= s->block_wrap[4];    c_xy= s->mb_y*c_wrap + s->mb_x;#if 0    /* clean DC */    memsetw(s->dc_val[0] + l_xy, 1024, l_wrap*2+1);    memsetw(s->dc_val[1] + c_xy, 1024, c_wrap+1);    memsetw(s->dc_val[2] + c_xy, 1024, c_wrap+1);#endif    /* clean AC */    memset(s->ac_val[0] + l_xy, 0, (l_wrap*2+1)*16*sizeof(int16_t));    memset(s->ac_val[1] + c_xy, 0, (c_wrap  +1)*16*sizeof(int16_t));    memset(s->ac_val[2] + c_xy, 0, (c_wrap  +1)*16*sizeof(int16_t));    /* clean MV */    // we cant clear the MVs as they might be needed by a b frame//    memset(s->motion_val + l_xy, 0, (l_wrap*2+1)*2*sizeof(int16_t));//    memset(s->motion_val, 0, 2*sizeof(int16_t)*(2 + s->mb_width*2)*(2 + s->mb_height*2));    s->last_mv[0][0][0]=    s->last_mv[0][0][1]=    s->last_mv[1][0][0]=    s->last_mv[1][0][1]= 0;}