pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)

{

    char temp[GET_MODE_BUFFER_SIZE];

    char *p= temp;

    static const char filterDelimiters[] = ",/";

    static const char optionDelimiters[] = ":";

    struct PPMode *ppMode;

    char *filterToken;



    ppMode= av_malloc(sizeof(PPMode));



    ppMode->lumMode= 0;

    ppMode->chromMode= 0;

    ppMode->maxTmpNoise[0]= 700;

    ppMode->maxTmpNoise[1]= 1500;

    ppMode->maxTmpNoise[2]= 3000;

    ppMode->maxAllowedY= 234;

    ppMode->minAllowedY= 16;

    ppMode->baseDcDiff= 256/8;

    ppMode->flatnessThreshold= 56-16-1;

    ppMode->maxClippedThreshold= 0.01;

    ppMode->error=0;



    memset(temp, 0, GET_MODE_BUFFER_SIZE);

    av_strlcpy(temp, name, GET_MODE_BUFFER_SIZE - 1);



    av_log(NULL, AV_LOG_DEBUG, "pp: %s\n", name);



    for(;;){

        char *filterName;

        int q= 1000000; //PP_QUALITY_MAX;

        int chrom=-1;

        int luma=-1;

        char *option;

        char *options[OPTIONS_ARRAY_SIZE];

        int i;

        int filterNameOk=0;

        int numOfUnknownOptions=0;

        int enable=1; //does the user want us to enabled or disabled the filter



        filterToken= strtok(p, filterDelimiters);

        if(filterToken == NULL) break;

        p+= strlen(filterToken) + 1; // p points to next filterToken

        filterName= strtok(filterToken, optionDelimiters);

        av_log(NULL, AV_LOG_DEBUG, "pp: %s::%s\n", filterToken, filterName);



        if(*filterName == '-'){

            enable=0;

            filterName++;

        }



        for(;;){ //for all options

            option= strtok(NULL, optionDelimiters);

            if(option == NULL) break;



            av_log(NULL, AV_LOG_DEBUG, "pp: option: %s\n", option);

            if(!strcmp("autoq", option) || !strcmp("a", option)) q= quality;

            else if(!strcmp("nochrom", option) || !strcmp("y", option)) chrom=0;

            else if(!strcmp("chrom", option) || !strcmp("c", option)) chrom=1;

            else if(!strcmp("noluma", option) || !strcmp("n", option)) luma=0;

            else{

                options[numOfUnknownOptions] = option;

                numOfUnknownOptions++;

            }

            if(numOfUnknownOptions >= OPTIONS_ARRAY_SIZE-1) break;

        }

        options[numOfUnknownOptions] = NULL;



        /* replace stuff from the replace Table */

        for(i=0; replaceTable[2*i]!=NULL; i++){

            if(!strcmp(replaceTable[2*i], filterName)){

                int newlen= strlen(replaceTable[2*i + 1]);

                int plen;

                int spaceLeft;



                if(p==NULL) p= temp, *p=0;      //last filter

                else p--, *p=',';               //not last filter



                plen= strlen(p);

                spaceLeft= p - temp + plen;

                if(spaceLeft + newlen  >= GET_MODE_BUFFER_SIZE - 1){

                    ppMode->error++;

                    break;

                }

                memmove(p + newlen, p, plen+1);

                memcpy(p, replaceTable[2*i + 1], newlen);

                filterNameOk=1;

            }

        }



        for(i=0; filters[i].shortName!=NULL; i++){

            if(   !strcmp(filters[i].longName, filterName)

               || !strcmp(filters[i].shortName, filterName)){

                ppMode->lumMode &= ~filters[i].mask;

                ppMode->chromMode &= ~filters[i].mask;



                filterNameOk=1;

                if(!enable) break; // user wants to disable it



                if(q >= filters[i].minLumQuality && luma)

                    ppMode->lumMode|= filters[i].mask;

                if(chrom==1 || (chrom==-1 && filters[i].chromDefault))

                    if(q >= filters[i].minChromQuality)

                            ppMode->chromMode|= filters[i].mask;



                if(filters[i].mask == LEVEL_FIX){

                    int o;

                    ppMode->minAllowedY= 16;

                    ppMode->maxAllowedY= 234;

                    for(o=0; options[o]!=NULL; o++){

                        if(  !strcmp(options[o],"fullyrange")

                           ||!strcmp(options[o],"f")){

                            ppMode->minAllowedY= 0;

                            ppMode->maxAllowedY= 255;

                            numOfUnknownOptions--;

                        }

                    }

                }

                else if(filters[i].mask == TEMP_NOISE_FILTER)

                {

                    int o;

                    int numOfNoises=0;



                    for(o=0; options[o]!=NULL; o++){

                        char *tail;

                        ppMode->maxTmpNoise[numOfNoises]=

                            strtol(options[o], &tail, 0);

                        if(tail!=options[o]){

                            numOfNoises++;

                            numOfUnknownOptions--;

                            if(numOfNoises >= 3) break;

                        }

                    }

                }

                else if(filters[i].mask == V_DEBLOCK   || filters[i].mask == H_DEBLOCK

                     || filters[i].mask == V_A_DEBLOCK || filters[i].mask == H_A_DEBLOCK){

                    int o;



                    for(o=0; options[o]!=NULL && o<2; o++){

                        char *tail;

                        int val= strtol(options[o], &tail, 0);

                        if(tail==options[o]) break;



                        numOfUnknownOptions--;

                        if(o==0) ppMode->baseDcDiff= val;

                        else ppMode->flatnessThreshold= val;

                    }

                }

                else if(filters[i].mask == FORCE_QUANT){

                    int o;

                    ppMode->forcedQuant= 15;



                    for(o=0; options[o]!=NULL && o<1; o++){

                        char *tail;

                        int val= strtol(options[o], &tail, 0);

                        if(tail==options[o]) break;



                        numOfUnknownOptions--;

                        ppMode->forcedQuant= val;

                    }

                }

            }

        }

        if(!filterNameOk) ppMode->error++;

        ppMode->error += numOfUnknownOptions;

    }



    av_log(NULL, AV_LOG_DEBUG, "pp: lumMode=%X, chromMode=%X\n", ppMode->lumMode, ppMode->chromMode);

    if(ppMode->error){

        av_log(NULL, AV_LOG_ERROR, "%d errors in postprocess string \"%s\"\n", ppMode->error, name);

        av_free(ppMode);

        return NULL;

    }

    return ppMode;

}

pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)

{

    char temp[GET_MODE_BUFFER_SIZE];

    char *p= temp;

    static const char filterDelimiters[] = ",/";

    static const char optionDelimiters[] = ":";

    struct PPMode *ppMode;

    char *filterToken;



    ppMode= av_malloc(sizeof(PPMode));



    ppMode->lumMode= 0;

    ppMode->chromMode= 0;

    ppMode->maxTmpNoise[0]= 700;

    ppMode->maxTmpNoise[1]= 1500;

    ppMode->maxTmpNoise[2]= 3000;

    ppMode->maxAllowedY= 234;

    ppMode->minAllowedY= 16;

    ppMode->baseDcDiff= 256/8;

    ppMode->flatnessThreshold= 56-16-1;

    ppMode->maxClippedThreshold= 0.01;

    ppMode->error=0;



    memset(temp, 0, GET_MODE_BUFFER_SIZE);

    av_strlcpy(temp, name, GET_MODE_BUFFER_SIZE - 1);



    av_log(NULL, AV_LOG_DEBUG, "pp: %s\n", name);



    for(;;){

        char *filterName;

        int q= 1000000; 

        int chrom=-1;

        int luma=-1;

        char *option;

        char *options[OPTIONS_ARRAY_SIZE];

        int i;

        int filterNameOk=0;

        int numOfUnknownOptions=0;

        int enable=1; 



        filterToken= strtok(p, filterDelimiters);

        if(filterToken == NULL) break;

        p+= strlen(filterToken) + 1; 

        filterName= strtok(filterToken, optionDelimiters);

        av_log(NULL, AV_LOG_DEBUG, "pp: %s::%s\n", filterToken, filterName);



        if(*filterName == '-'){

            enable=0;

            filterName++;

        }



        for(;;){ 

            option= strtok(NULL, optionDelimiters);

            if(option == NULL) break;



            av_log(NULL, AV_LOG_DEBUG, "pp: option: %s\n", option);

            if(!strcmp("autoq", option) || !strcmp("a", option)) q= quality;

            else if(!strcmp("nochrom", option) || !strcmp("y", option)) chrom=0;

            else if(!strcmp("chrom", option) || !strcmp("c", option)) chrom=1;

            else if(!strcmp("noluma", option) || !strcmp("n", option)) luma=0;

            else{

                options[numOfUnknownOptions] = option;

                numOfUnknownOptions++;

            }

            if(numOfUnknownOptions >= OPTIONS_ARRAY_SIZE-1) break;

        }

        options[numOfUnknownOptions] = NULL;



        

        for(i=0; replaceTable[2*i]!=NULL; i++){

            if(!strcmp(replaceTable[2*i], filterName)){

                int newlen= strlen(replaceTable[2*i + 1]);

                int plen;

                int spaceLeft;



                if(p==NULL) p= temp, *p=0;      

                else p--, *p=',';               



                plen= strlen(p);

                spaceLeft= p - temp + plen;

                if(spaceLeft + newlen  >= GET_MODE_BUFFER_SIZE - 1){

                    ppMode->error++;

                    break;

                }

                memmove(p + newlen, p, plen+1);

                memcpy(p, replaceTable[2*i + 1], newlen);

                filterNameOk=1;

            }

        }



        for(i=0; filters[i].shortName!=NULL; i++){

            if(   !strcmp(filters[i].longName, filterName)

               || !strcmp(filters[i].shortName, filterName)){

                ppMode->lumMode &= ~filters[i].mask;

                ppMode->chromMode &= ~filters[i].mask;



                filterNameOk=1;

                if(!enable) break; 



                if(q >= filters[i].minLumQuality && luma)

                    ppMode->lumMode|= filters[i].mask;

                if(chrom==1 || (chrom==-1 && filters[i].chromDefault))

                    if(q >= filters[i].minChromQuality)

                            ppMode->chromMode|= filters[i].mask;



                if(filters[i].mask == LEVEL_FIX){

                    int o;

                    ppMode->minAllowedY= 16;

                    ppMode->maxAllowedY= 234;

                    for(o=0; options[o]!=NULL; o++){

                        if(  !strcmp(options[o],"fullyrange")

                           ||!strcmp(options[o],"f")){

                            ppMode->minAllowedY= 0;

                            ppMode->maxAllowedY= 255;

                            numOfUnknownOptions--;

                        }

                    }

                }

                else if(filters[i].mask == TEMP_NOISE_FILTER)

                {

                    int o;

                    int numOfNoises=0;



                    for(o=0; options[o]!=NULL; o++){

                        char *tail;

                        ppMode->maxTmpNoise[numOfNoises]=

                            strtol(options[o], &tail, 0);

                        if(tail!=options[o]){

                            numOfNoises++;

                            numOfUnknownOptions--;

                            if(numOfNoises >= 3) break;

                        }

                    }

                }

                else if(filters[i].mask == V_DEBLOCK   || filters[i].mask == H_DEBLOCK

                     || filters[i].mask == V_A_DEBLOCK || filters[i].mask == H_A_DEBLOCK){

                    int o;



                    for(o=0; options[o]!=NULL && o<2; o++){

                        char *tail;

                        int val= strtol(options[o], &tail, 0);

                        if(tail==options[o]) break;



                        numOfUnknownOptions--;

                        if(o==0) ppMode->baseDcDiff= val;

                        else ppMode->flatnessThreshold= val;

                    }

                }

                else if(filters[i].mask == FORCE_QUANT){

                    int o;

                    ppMode->forcedQuant= 15;



                    for(o=0; options[o]!=NULL && o<1; o++){

                        char *tail;

                        int val= strtol(options[o], &tail, 0);

                        if(tail==options[o]) break;



                        numOfUnknownOptions--;

                        ppMode->forcedQuant= val;

                    }

                }

            }

        }

        if(!filterNameOk) ppMode->error++;

        ppMode->error += numOfUnknownOptions;

    }



    av_log(NULL, AV_LOG_DEBUG, "pp: lumMode=%X, chromMode=%X\n", ppMode->lumMode, ppMode->chromMode);

    if(ppMode->error){

        av_log(NULL, AV_LOG_ERROR, "%d errors in postprocess string \"%s\"\n", ppMode->error, name);

        av_free(ppMode);

        return NULL;

    }

    return ppMode;

}

pp_mode *FUNC_0(const char *name, int quality)

{

    char VAR_0[GET_MODE_BUFFER_SIZE];

    char *VAR_1= VAR_0;

    static const char VAR_2[] = ",/";

    static const char VAR_3[] = ":";

    struct PPMode *VAR_4;

    char *VAR_5;



    VAR_4= av_malloc(sizeof(PPMode));



    VAR_4->lumMode= 0;

    VAR_4->chromMode= 0;

    VAR_4->maxTmpNoise[0]= 700;

    VAR_4->maxTmpNoise[1]= 1500;

    VAR_4->maxTmpNoise[2]= 3000;

    VAR_4->maxAllowedY= 234;

    VAR_4->minAllowedY= 16;

    VAR_4->baseDcDiff= 256/8;

    VAR_4->flatnessThreshold= 56-16-1;

    VAR_4->maxClippedThreshold= 0.01;

    VAR_4->error=0;



    memset(VAR_0, 0, GET_MODE_BUFFER_SIZE);

    av_strlcpy(VAR_0, name, GET_MODE_BUFFER_SIZE - 1);



    av_log(NULL, AV_LOG_DEBUG, "pp: %s\n", name);



    for(;;){

        char *VAR_6;

        int VAR_7= 1000000; 

        int VAR_8=-1;

        int VAR_9=-1;

        char *VAR_10;

        char *VAR_11[OPTIONS_ARRAY_SIZE];

        int VAR_12;

        int VAR_13=0;

        int VAR_14=0;

        int VAR_15=1; 



        VAR_5= strtok(VAR_1, VAR_2);

        if(VAR_5 == NULL) break;

        VAR_1+= strlen(VAR_5) + 1; 

        VAR_6= strtok(VAR_5, VAR_3);

        av_log(NULL, AV_LOG_DEBUG, "pp: %s::%s\n", VAR_5, VAR_6);



        if(*VAR_6 == '-'){

            VAR_15=0;

            VAR_6++;

        }



        for(;;){ 

            VAR_10= strtok(NULL, VAR_3);

            if(VAR_10 == NULL) break;



            av_log(NULL, AV_LOG_DEBUG, "pp: VAR_10: %s\n", VAR_10);

            if(!strcmp("autoq", VAR_10) || !strcmp("a", VAR_10)) VAR_7= quality;

            else if(!strcmp("nochrom", VAR_10) || !strcmp("y", VAR_10)) VAR_8=0;

            else if(!strcmp("VAR_8", VAR_10) || !strcmp("c", VAR_10)) VAR_8=1;

            else if(!strcmp("noluma", VAR_10) || !strcmp("n", VAR_10)) VAR_9=0;

            else{

                VAR_11[VAR_14] = VAR_10;

                VAR_14++;

            }

            if(VAR_14 >= OPTIONS_ARRAY_SIZE-1) break;

        }

        VAR_11[VAR_14] = NULL;



        

        for(VAR_12=0; replaceTable[2*VAR_12]!=NULL; VAR_12++){

            if(!strcmp(replaceTable[2*VAR_12], VAR_6)){

                int newlen= strlen(replaceTable[2*VAR_12 + 1]);

                int plen;

                int spaceLeft;



                if(VAR_1==NULL) VAR_1= VAR_0, *VAR_1=0;      

                else VAR_1--, *VAR_1=',';               



                plen= strlen(VAR_1);

                spaceLeft= VAR_1 - VAR_0 + plen;

                if(spaceLeft + newlen  >= GET_MODE_BUFFER_SIZE - 1){

                    VAR_4->error++;

                    break;

                }

                memmove(VAR_1 + newlen, VAR_1, plen+1);

                memcpy(VAR_1, replaceTable[2*VAR_12 + 1], newlen);

                VAR_13=1;

            }

        }



        for(VAR_12=0; filters[VAR_12].shortName!=NULL; VAR_12++){

            if(   !strcmp(filters[VAR_12].longName, VAR_6)

               || !strcmp(filters[VAR_12].shortName, VAR_6)){

                VAR_4->lumMode &= ~filters[VAR_12].mask;

                VAR_4->chromMode &= ~filters[VAR_12].mask;



                VAR_13=1;

                if(!VAR_15) break; 



                if(VAR_7 >= filters[VAR_12].minLumQuality && VAR_9)

                    VAR_4->lumMode|= filters[VAR_12].mask;

                if(VAR_8==1 || (VAR_8==-1 && filters[VAR_12].chromDefault))

                    if(VAR_7 >= filters[VAR_12].minChromQuality)

                            VAR_4->chromMode|= filters[VAR_12].mask;



                if(filters[VAR_12].mask == LEVEL_FIX){

                    int o;

                    VAR_4->minAllowedY= 16;

                    VAR_4->maxAllowedY= 234;

                    for(o=0; VAR_11[o]!=NULL; o++){

                        if(  !strcmp(VAR_11[o],"fullyrange")

                           ||!strcmp(VAR_11[o],"f")){

                            VAR_4->minAllowedY= 0;

                            VAR_4->maxAllowedY= 255;

                            VAR_14--;

                        }

                    }

                }

                else if(filters[VAR_12].mask == TEMP_NOISE_FILTER)

                {

                    int o;

                    int numOfNoises=0;



                    for(o=0; VAR_11[o]!=NULL; o++){

                        char *tail;

                        VAR_4->maxTmpNoise[numOfNoises]=

                            strtol(VAR_11[o], &tail, 0);

                        if(tail!=VAR_11[o]){

                            numOfNoises++;

                            VAR_14--;

                            if(numOfNoises >= 3) break;

                        }

                    }

                }

                else if(filters[VAR_12].mask == V_DEBLOCK   || filters[VAR_12].mask == H_DEBLOCK

                     || filters[VAR_12].mask == V_A_DEBLOCK || filters[VAR_12].mask == H_A_DEBLOCK){

                    int o;



                    for(o=0; VAR_11[o]!=NULL && o<2; o++){

                        char *tail;

                        int val= strtol(VAR_11[o], &tail, 0);

                        if(tail==VAR_11[o]) break;



                        VAR_14--;

                        if(o==0) VAR_4->baseDcDiff= val;

                        else VAR_4->flatnessThreshold= val;

                    }

                }

                else if(filters[VAR_12].mask == FORCE_QUANT){

                    int o;

                    VAR_4->forcedQuant= 15;



                    for(o=0; VAR_11[o]!=NULL && o<1; o++){

                        char *tail;

                        int val= strtol(VAR_11[o], &tail, 0);

                        if(tail==VAR_11[o]) break;



                        VAR_14--;

                        VAR_4->forcedQuant= val;

                    }

                }

            }

        }

        if(!VAR_13) VAR_4->error++;

        VAR_4->error += VAR_14;

    }



    av_log(NULL, AV_LOG_DEBUG, "pp: lumMode=%X, chromMode=%X\n", VAR_4->lumMode, VAR_4->chromMode);

    if(VAR_4->error){

        av_log(NULL, AV_LOG_ERROR, "%d errors in postprocess string \"%s\"\n", VAR_4->error, name);

        av_free(VAR_4);

        return NULL;

    }

    return VAR_4;

}

pp_mode *FUNC_0(const char *name, int quality)
{ char VAR_0[GET_MODE_BUFFER_SIZE]; char *VAR_1= VAR_0; static const char VAR_2[] = ",/"; static const char VAR_3[] = ":"; struct PPMode *VAR_4; char *VAR_5; VAR_4= av_malloc(sizeof(PPMode)); VAR_4->lumMode= 0; VAR_4->chromMode= 0; VAR_4->maxTmpNoise[0]= 700; VAR_4->maxTmpNoise[1]= 1500; VAR_4->maxTmpNoise[2]= 3000; VAR_4->maxAllowedY= 234; VAR_4->minAllowedY= 16; VAR_4->baseDcDiff= 256/8; VAR_4->flatnessThreshold= 56-16-1; VAR_4->maxClippedThreshold= 0.01; VAR_4->error=0; memset(VAR_0, 0, GET_MODE_BUFFER_SIZE); av_strlcpy(VAR_0, name, GET_MODE_BUFFER_SIZE - 1); av_log(NULL, AV_LOG_DEBUG, "pp: %s\n", name); for(;;){ char *VAR_6; int VAR_7= 1000000; int VAR_8=-1; int VAR_9=-1; char *VAR_10; char *VAR_11[OPTIONS_ARRAY_SIZE]; int VAR_12; int VAR_13=0; int VAR_14=0; int VAR_15=1; VAR_5= strtok(VAR_1, VAR_2); if(VAR_5 == NULL) break; VAR_1+= strlen(VAR_5) + 1; VAR_6= strtok(VAR_5, VAR_3); av_log(NULL, AV_LOG_DEBUG, "pp: %s::%s\n", VAR_5, VAR_6); if(*VAR_6 == '-'){ VAR_15=0; VAR_6++; } for(;;){ VAR_10= strtok(NULL, VAR_3); if(VAR_10 == NULL) break; av_log(NULL, AV_LOG_DEBUG, "pp: VAR_10: %s\n", VAR_10); if(!strcmp("autoq", VAR_10) || !strcmp("a", VAR_10)) VAR_7= quality; else if(!strcmp("nochrom", VAR_10) || !strcmp("y", VAR_10)) VAR_8=0; else if(!strcmp("VAR_8", VAR_10) || !strcmp("c", VAR_10)) VAR_8=1; else if(!strcmp("noluma", VAR_10) || !strcmp("n", VAR_10)) VAR_9=0; else{ VAR_11[VAR_14] = VAR_10; VAR_14++; } if(VAR_14 >= OPTIONS_ARRAY_SIZE-1) break; } VAR_11[VAR_14] = NULL; for(VAR_12=0; replaceTable[2*VAR_12]!=NULL; VAR_12++){ if(!strcmp(replaceTable[2*VAR_12], VAR_6)){ int newlen= strlen(replaceTable[2*VAR_12 + 1]); int plen; int spaceLeft; if(VAR_1==NULL) VAR_1= VAR_0, *VAR_1=0; else VAR_1--, *VAR_1=','; plen= strlen(VAR_1); spaceLeft= VAR_1 - VAR_0 + plen; if(spaceLeft + newlen  >= GET_MODE_BUFFER_SIZE - 1){ VAR_4->error++; break; } memmove(VAR_1 + newlen, VAR_1, plen+1); memcpy(VAR_1, replaceTable[2*VAR_12 + 1], newlen); VAR_13=1; } } for(VAR_12=0; filters[VAR_12].shortName!=NULL; VAR_12++){ if(   !strcmp(filters[VAR_12].longName, VAR_6)
|| !strcmp(filters[VAR_12].shortName, VAR_6)){ VAR_4->lumMode &= ~filters[VAR_12].mask; VAR_4->chromMode &= ~filters[VAR_12].mask; VAR_13=1; if(!VAR_15) break; if(VAR_7 >= filters[VAR_12].minLumQuality && VAR_9)
VAR_4->lumMode|= filters[VAR_12].mask; if(VAR_8==1 || (VAR_8==-1 && filters[VAR_12].chromDefault))
if(VAR_7 >= filters[VAR_12].minChromQuality)
VAR_4->chromMode|= filters[VAR_12].mask; if(filters[VAR_12].mask == LEVEL_FIX){ int o; VAR_4->minAllowedY= 16; VAR_4->maxAllowedY= 234; for(o=0; VAR_11[o]!=NULL; o++){ if(  !strcmp(VAR_11[o],"fullyrange")
||!strcmp(VAR_11[o],"f")){ VAR_4->minAllowedY= 0; VAR_4->maxAllowedY= 255; VAR_14--; } } } else if(filters[VAR_12].mask == TEMP_NOISE_FILTER)
{ int o; int numOfNoises=0; for(o=0; VAR_11[o]!=NULL; o++){ char *tail; VAR_4->maxTmpNoise[numOfNoises]=
strtol(VAR_11[o], &tail, 0); if(tail!=VAR_11[o]){ numOfNoises++; VAR_14--; if(numOfNoises >= 3) break; } } } else if(filters[VAR_12].mask == V_DEBLOCK   || filters[VAR_12].mask == H_DEBLOCK
|| filters[VAR_12].mask == V_A_DEBLOCK || filters[VAR_12].mask == H_A_DEBLOCK){ int o; for(o=0; VAR_11[o]!=NULL && o<2; o++){ char *tail; int val= strtol(VAR_11[o], &tail, 0); if(tail==VAR_11[o]) break; VAR_14--; if(o==0) VAR_4->baseDcDiff= val; else VAR_4->flatnessThreshold= val; } } else if(filters[VAR_12].mask == FORCE_QUANT){ int o; VAR_4->forcedQuant= 15; for(o=0; VAR_11[o]!=NULL && o<1; o++){ char *tail; int val= strtol(VAR_11[o], &tail, 0); if(tail==VAR_11[o]) break; VAR_14--; VAR_4->forcedQuant= val; } } } } if(!VAR_13) VAR_4->error++; VAR_4->error += VAR_14; } av_log(NULL, AV_LOG_DEBUG, "pp: lumMode=%X, chromMode=%X\n", VAR_4->lumMode, VAR_4->chromMode); if(VAR_4->error){ av_log(NULL, AV_LOG_ERROR, "%d errors in postprocess string \"%s\"\n", VAR_4->error, name); av_free(VAR_4); return NULL; } return VAR_4; }