- Timestamp:
- Dec 1, 2007, 6:56:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/img2txt.c
r2104 r2106 42 42 static void usage(int argc, char **argv) 43 43 { 44 char const * const * list; 45 44 46 fprintf(stderr, "Usage: %s [OPTIONS]... <IMAGE>\n", argv[0]); 45 47 fprintf(stderr, "Convert IMAGE to any text based available format.\n"); … … 56 58 fprintf(stderr, " -g, --gamma=GAMMA\t\tGamma of resulting image\n"); 57 59 fprintf(stderr, " -d, --dither=DITHER\t\tDithering algorithm to use :\n"); 58 fprintf(stderr, "\t\t\tnone : Nearest color\n"); 59 fprintf(stderr, "\t\t\tordered2 : Ordered 2x2\n"); 60 fprintf(stderr, "\t\t\tordered4 : Ordered 4x4\n"); 61 fprintf(stderr, "\t\t\tordered8 : Ordered 8x8\n"); 62 fprintf(stderr, "\t\t\trandom : Random\n"); 63 fprintf(stderr, "\t\t\tfstein : Floyd Steinberg (default)\n"); 60 list = cucul_get_dither_algorithm_list(NULL); 61 while(*list) 62 { 63 fprintf(stderr, "\t\t\t%s: %s\n", list[0], list[1]); 64 list += 2; 65 } 66 64 67 fprintf(stderr, " -f, --format=FORMAT\t\tFormat of the resulting image :\n"); 65 fprintf(stderr, "\t\t\tansi : coloured ANSI (default)\n"); 66 fprintf(stderr, "\t\t\tcaca : internal libcaca format\n"); 67 fprintf(stderr, "\t\t\tutf8 : UTF8 with CR\n"); 68 fprintf(stderr, "\t\t\tutf8 : UTF8 with CRLF (MS Windows)\n"); 69 fprintf(stderr, "\t\t\thtml : HTML with CSS and DIV support\n"); 70 fprintf(stderr, "\t\t\thtml3 : Pure HTML3 with tables\n"); 71 fprintf(stderr, "\t\t\tirc : IRC with ctrl-k codes\n"); 72 fprintf(stderr, "\t\t\bbfr : BBCode (French)\n"); 73 fprintf(stderr, "\t\t\tps : Postscript\n"); 74 fprintf(stderr, "\t\t\tsvg : Scalable Vector Graphics\n"); 75 fprintf(stderr, "\t\t\ttga : Targa Image\n\n"); 68 list = cucul_get_export_list(); 69 while(*list) 70 { 71 fprintf(stderr, "\t\t\t%s: %s\n", list[0], list[1]); 72 list += 2; 73 } 76 74 77 75 #if !defined(USE_IMLIB2)
Note: See TracChangeset
for help on using the changeset viewer.