ff_estimate_motion_b(s, mb_x, mb_y, s->b_forw_mv_table, s->last_picture[0], s->f_code); ff_estimate_motion_b(s, mb_x, mb_y, s->b_back_mv_table, s->next_picture[0], s->b_code);
fmin= ff_estimate_motion_b(s, mb_x, mb_y, s->b_forw_mv_table, s->last_picture[0], s->f_code); bmin= ff_estimate_motion_b(s, mb_x, mb_y, s->b_back_mv_table, s->next_picture[0], s->b_code) - quant;
void ff_estimate_b_frame_motion(MpegEncContext * s,                             int mb_x, int mb_y){    const int mot_stride = s->mb_width + 2;    const int xy = (mb_y + 1)*mot_stride + mb_x + 1;    ff_estimate_motion_b(s, mb_x, mb_y, s->b_forw_mv_table, s->last_picture[0], s->f_code);    ff_estimate_motion_b(s, mb_x, mb_y, s->b_back_mv_table, s->next_picture[0], s->b_code);//printf(" %d %d ", s->b_forw_mv_table[xy][0], s->b_forw_mv_table[xy][1]);    s->b_bidir_forw_mv_table[xy][0]= s->b_forw_mv_table[xy][0];    s->b_bidir_forw_mv_table[xy][1]= s->b_forw_mv_table[xy][1];    s->b_bidir_back_mv_table[xy][0]= s->b_back_mv_table[xy][0];    s->b_bidir_back_mv_table[xy][1]= s->b_back_mv_table[xy][1];        s->mb_type[mb_y*s->mb_width + mb_x]= MB_TYPE_FORWARD; //FIXME}