static int vf_open(vf_instance_t *vf, char *args){

    vf->config=config;

    vf->put_image=put_image;

    vf->get_image=get_image;

    vf->query_format=query_format;

    vf->uninit=uninit;

    vf->control= control;

    vf->priv=malloc(sizeof(struct vf_priv_s));

    memset(vf->priv, 0, sizeof(struct vf_priv_s));



    if (args) sscanf(args, "%d:%d", &vf->priv->qp, &vf->priv->mode);



    if(vf->priv->qp < 0)

        vf->priv->qp = 0;



    init_thres2();



    switch(vf->priv->mode){

        case 0: requantize= hardthresh_c; break;

        case 1: requantize= softthresh_c; break;

        default:

        case 2: requantize= mediumthresh_c; break;

    }



#if HAVE_MMX

    if(ff_gCpuCaps.hasMMX){

        dctB= dctB_mmx;

    }

#endif

#if 0

    if(ff_gCpuCaps.hasMMX){

        switch(vf->priv->mode){

            case 0: requantize= hardthresh_mmx; break;

            case 1: requantize= softthresh_mmx; break;

        }

    }

#endif



    return 1;

}

static int vf_open(vf_instance_t *vf, char *args){

    vf->config=config;

    vf->put_image=put_image;

    vf->get_image=get_image;

    vf->query_format=query_format;

    vf->uninit=uninit;

    vf->control= control;

    vf->priv=malloc(sizeof(struct vf_priv_s));

    memset(vf->priv, 0, sizeof(struct vf_priv_s));



    if (args) sscanf(args, "%d:%d", &vf->priv->qp, &vf->priv->mode);



    if(vf->priv->qp < 0)

        vf->priv->qp = 0;



    init_thres2();



    switch(vf->priv->mode){

        case 0: requantize= hardthresh_c; break;

        case 1: requantize= softthresh_c; break;

        default:

        case 2: requantize= mediumthresh_c; break;

    }



#if HAVE_MMX

    if(ff_gCpuCaps.hasMMX){

        dctB= dctB_mmx;

    }

#endif

#if 0

    if(ff_gCpuCaps.hasMMX){

        switch(vf->priv->mode){

            case 0: requantize= hardthresh_mmx; break;

            case 1: requantize= softthresh_mmx; break;

        }

    }

#endif



    return 1;

}

static int FUNC_0(vf_instance_t *VAR_0, char *VAR_1){

    VAR_0->config=config;

    VAR_0->put_image=put_image;

    VAR_0->get_image=get_image;

    VAR_0->query_format=query_format;

    VAR_0->uninit=uninit;

    VAR_0->control= control;

    VAR_0->priv=malloc(sizeof(struct vf_priv_s));

    memset(VAR_0->priv, 0, sizeof(struct vf_priv_s));



    if (VAR_1) sscanf(VAR_1, "%d:%d", &VAR_0->priv->qp, &VAR_0->priv->mode);



    if(VAR_0->priv->qp < 0)

        VAR_0->priv->qp = 0;



    init_thres2();



    switch(VAR_0->priv->mode){

        case 0: requantize= hardthresh_c; break;

        case 1: requantize= softthresh_c; break;

        default:

        case 2: requantize= mediumthresh_c; break;

    }



#if HAVE_MMX

    if(ff_gCpuCaps.hasMMX){

        dctB= dctB_mmx;

    }

#endif

#if 0

    if(ff_gCpuCaps.hasMMX){

        switch(VAR_0->priv->mode){

            case 0: requantize= hardthresh_mmx; break;

            case 1: requantize= softthresh_mmx; break;

        }

    }

#endif



    return 1;

}

static int FUNC_0(vf_instance_t *VAR_0, char *VAR_1){ VAR_0->config=config; VAR_0->put_image=put_image; VAR_0->get_image=get_image; VAR_0->query_format=query_format; VAR_0->uninit=uninit; VAR_0->control= control; VAR_0->priv=malloc(sizeof(struct vf_priv_s)); memset(VAR_0->priv, 0, sizeof(struct vf_priv_s)); if (VAR_1) sscanf(VAR_1, "%d:%d", &VAR_0->priv->qp, &VAR_0->priv->mode); if(VAR_0->priv->qp < 0)
VAR_0->priv->qp = 0; init_thres2(); switch(VAR_0->priv->mode){ case 0: requantize= hardthresh_c; break; case 1: requantize= softthresh_c; break; default:
case 2: requantize= mediumthresh_c; break; } #if HAVE_MMX
if(ff_gCpuCaps.hasMMX){ dctB= dctB_mmx; } #endif
#if 0
if(ff_gCpuCaps.hasMMX){ switch(VAR_0->priv->mode){ case 0: requantize= hardthresh_mmx; break; case 1: requantize= softthresh_mmx; break; } } #endif
return 1; }