static void ff_mpeg4_init_direct_mv(MpegEncContext *s){

    //FIXME table is stored in MpegEncContext for thread-safety,

    // but a static array would be faster

    static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);

    static const int tab_bias = (tab_size/2);

    int i;

    for(i=0; i<tab_size; i++){

        s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time;

        s->direct_scale_mv[1][i] = (i-tab_bias)*(s->pb_time-s->pp_time)/s->pp_time;

    }

}

static void ff_mpeg4_init_direct_mv(MpegEncContext *s){

    

    

    static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);

    static const int tab_bias = (tab_size/2);

    int i;

    for(i=0; i<tab_size; i++){

        s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time;

        s->direct_scale_mv[1][i] = (i-tab_bias)*(s->pb_time-s->pp_time)/s->pp_time;

    }

}

    static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);     static const int tab_bias = (tab_size/2);     static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);     static const int tab_bias = (tab_size/2);
static void FUNC_0(MpegEncContext *VAR_0){

    

    

    static const int VAR_1 = sizeof(VAR_0->direct_scale_mv[0])/sizeof(int16_t);

    static const int VAR_2 = (VAR_1/2);

    int VAR_3;

    for(VAR_3=0; VAR_3<VAR_1; VAR_3++){

        VAR_0->direct_scale_mv[0][VAR_3] = (VAR_3-VAR_2)*VAR_0->pb_time/VAR_0->pp_time;

        VAR_0->direct_scale_mv[1][VAR_3] = (VAR_3-VAR_2)*(VAR_0->pb_time-VAR_0->pp_time)/VAR_0->pp_time;

    }

}

static void FUNC_0(MpegEncContext *VAR_0){ static const int VAR_1 = sizeof(VAR_0->direct_scale_mv[0])/sizeof(int16_t); static const int VAR_2 = (VAR_1/2); int VAR_3; for(VAR_3=0; VAR_3<VAR_1; VAR_3++){ VAR_0->direct_scale_mv[0][VAR_3] = (VAR_3-VAR_2)*VAR_0->pb_time/VAR_0->pp_time; VAR_0->direct_scale_mv[1][VAR_3] = (VAR_3-VAR_2)*(VAR_0->pb_time-VAR_0->pp_time)/VAR_0->pp_time; } }