"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/img2txt.c" between
libcaca-0.99.beta19.tar.gz and libcaca-0.99.beta20.tar.bz2

About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).

img2txt.c  (libcaca-0.99.beta19):img2txt.c  (libcaca-0.99.beta20.tar.bz2)
/* /*
* img2txt image to text converter * img2txt image to text converter
* Copyright (c) 2006-2012 Sam Hocevar <sam@hocevar.net> * Copyright © 2006—2018 Sam Hocevar <sam@hocevar.net>
* 2007 Jean-Yves Lamoureux <jylam@lnxscene.org> * 2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved * All Rights Reserved
* *
* This program is free software. It comes without any warranty, to * This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it * the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What the Fuck You Want * and/or modify it under the terms of the Do What the Fuck You Want
* to Public License, Version 2, as published by Sam Hocevar. See * to Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details. * http://www.wtfpl.net/ for more details.
*/ */
#include "config.h" #include "config.h"
skipping to change at line 34 skipping to change at line 34
#include "common-image.h" #include "common-image.h"
#define IMG2TXTVERSION "0.1" #define IMG2TXTVERSION "0.1"
static void usage(int argc, char **argv) static void usage(int argc, char **argv)
{ {
char const * const * list; char const * const * list;
fprintf(stderr, "Usage: %s [OPTIONS]... <IMAGE>\n", argv[0]); fprintf(stderr, "Usage: %s [OPTIONS]... <IMAGE>\n", argv[0]);
fprintf(stderr, "Convert IMAGE to any text based available format.\n"); fprintf(stderr, "Convert IMAGE to any text based available format.\n");
fprintf(stderr, "Example : %s -w 80 -f ansi ./caca.png\n\n", argv[0]); fprintf(stderr, "Example : %s -W 80 -f ansi ./caca.png\n\n", argv[0]);
fprintf(stderr, "Options:\n"); fprintf(stderr, "Options:\n");
fprintf(stderr, " -h, --help\t\t\tThis help\n"); fprintf(stderr, " -h, --help\t\t\tThis help\n");
fprintf(stderr, " -v, --version\t\t\tVersion of the program\n"); fprintf(stderr, " -v, --version\t\t\tVersion of the program\n");
fprintf(stderr, " -W, --width=WIDTH\t\tWidth of resulting image\n"); fprintf(stderr, " -W, --width=WIDTH\t\tWidth of resulting image\n");
fprintf(stderr, " -H, --height=HEIGHT\t\tHeight of resulting image\n"); fprintf(stderr, " -H, --height=HEIGHT\t\tHeight of resulting image\n");
fprintf(stderr, " -x, --font-width=WIDTH\t\tWidth of output font\n"); fprintf(stderr, " -x, --font-width=WIDTH\t\tWidth of output font\n");
fprintf(stderr, " -y, --font-height=HEIGHT\t\tHeight of output font\n"); fprintf(stderr, " -y, --font-height=HEIGHT\t\tHeight of output font\n");
fprintf(stderr, " -b, --brightness=BRIGHTNESS\tBrightness of resulting imag e\n"); fprintf(stderr, " -b, --brightness=BRIGHTNESS\tBrightness of resulting imag e\n");
fprintf(stderr, " -c, --contrast=CONTRAST\tContrast of resulting image\n"); fprintf(stderr, " -c, --contrast=CONTRAST\tContrast of resulting image\n");
fprintf(stderr, " -g, --gamma=GAMMA\t\tGamma of resulting image\n"); fprintf(stderr, " -g, --gamma=GAMMA\t\tGamma of resulting image\n");
 End of changes. 2 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)