comparison Meerwald/cmp_ppm.c @ 11:a5249f7d45f7

improve cmp_ppm usage help
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Thu, 01 May 2008 18:19:13 +0200
parents aa7b4c3a7313
children bd669312f068
comparison
equal deleted inserted replaced
10:aa7b4c3a7313 11:a5249f7d45f7
9 char *progname; 9 char *progname;
10 10
11 void usage(void) { 11 void usage(void) {
12 fprintf(stderr, "usage: %s -c name [-C] [-h] [-m n] [-o file] [-pP] -i file file\n\n", progname); 12 fprintf(stderr, "usage: %s -c name [-C] [-h] [-m n] [-o file] [-pP] -i file file\n\n", progname);
13 fprintf(stderr, "\t-c name\t\tcolor component (default luminance)\n"); 13 fprintf(stderr, "\t-c name\t\tcolor component (default luminance)\n");
14 fprintf(stderr, "\t\t\teg. red, green, blue, luminance\n");
14 fprintf(stderr, "\t-C\t\tprint PSNR value only\n"); 15 fprintf(stderr, "\t-C\t\tprint PSNR value only\n");
15 fprintf(stderr, "\t-h\t\tprint usage\n"); 16 fprintf(stderr, "\t-h\t\tprint usage\n");
16 fprintf(stderr, "\t-i file\t\toriginal image file\n"); 17 fprintf(stderr, "\t-i file\t\toriginal image file\n");
17 fprintf(stderr, "\t-m n\t\tmultiplication factor (default 16)\n"); 18 fprintf(stderr, "\t-m n\t\tmultiplication factor (default 16)\n");
18 fprintf(stderr, "\t-o file\t\toutput file\n"); 19 fprintf(stderr, "\t-o file\t\toutput file\n");

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.