comparison postproc/postprocess.c @ 3987:a80d0b59ca0e

fixed -npp help ... i think i need more sleep ;)
author michael
date Fri, 04 Jan 2002 21:56:11 +0000
parents 3aa6a5c1ca32
children d416ca893952
comparison
equal deleted inserted replaced
3986:da96a04ec11e 3987:a80d0b59ca0e
578 struct PPMode ppMode= {0,0,0,0,0,0,{150,200,400}}; 578 struct PPMode ppMode= {0,0,0,0,0,0,{150,200,400}};
579 char *filterToken; 579 char *filterToken;
580 580
581 strncpy(temp, name, GET_MODE_BUFFER_SIZE); 581 strncpy(temp, name, GET_MODE_BUFFER_SIZE);
582 582
583 if(!strcmp("help", name))
584 {
585 printf("%s", help);
586 ppMode.error++;
587 return ppMode;
588 }
589
590 if(verbose) printf("%s\n", name); 583 if(verbose) printf("%s\n", name);
591 584
592 for(;;){ 585 for(;;){
593 char *filterName; 586 char *filterName;
594 int q= 1000000; //GET_PP_QUALITY_MAX; 587 int q= 1000000; //GET_PP_QUALITY_MAX;
766 * Check and load the -npp part of the cmd line 759 * Check and load the -npp part of the cmd line
767 */ 760 */
768 int readPPOpt(void *conf, char *arg) 761 int readPPOpt(void *conf, char *arg)
769 { 762 {
770 int quality; 763 int quality;
764
765 if(!strcmp("help", arg))
766 {
767 printf("%s", help);
768 exit(1);
769 }
770
771 for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++) 771 for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++)
772 { 772 {
773 gPPMode[quality]= getPPModeByNameAndQuality(arg, quality); 773 gPPMode[quality]= getPPModeByNameAndQuality(arg, quality);
774 774
775 if(gPPMode[quality].error) return -1; 775 if(gPPMode[quality].error) return -1;