/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004, 2005 Martin Dickopp Jpegpixi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Jpegpixi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with jpegpixi; if not, write to the Free Software Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include %% f blocks-file "=FILE read pixel block specifications from FILE" reqarg m method "=METHOD use interpolation method METHOD [default: linear]" reqarg v verbose "display coordinates and size of each pixel block that is interpolated" i info "display information about the image" s strip "do not copy comment and extra markers" help "display this help text and exit" return version "display version information and exit" return %% /* Display text in response to the --help command line option. */ void display_help_text (void) { printf (_("Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n\n" "Options:\n"), invocation_name); fputs (STR_HELP, stdout); /* TRANSLATORS: Please align the right text column in the "Interpolation methods" section with the right text column in the "Options" section. */ fputs (_("\nInterpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n"), stdout); /* TRANSLATORS: Please include the information that bug reports should be send in English. E.g., translate "Please report bugs (in English) to ...". */ fputs (_("\nPlease report bugs to .\n"), stdout); } /* Display text in response to the --version command line option. */ void display_version_text (void) { fputs ("jpegpixi (" PACKAGE_NAME ") " PACKAGE_VERSION "\n", stdout); /* TRANSLATORS: Please leave the copyright statement intact, but replace "(C)" with the "copyright sign" (Unicode character ). */ fputs (_("Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n\n"), stdout); /* TRANSLATORS: Please don't translate the warranty disclaimer literally, but replace it with a text which has a legal effect as close as possible to the original in the jurisdiction(s) where your language is used. If unsure, replace it with a translation of "There is no warranty, to the extent allowed by law." */ fputs (_("This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n"), stdout); }