diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:40:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:40:42 +0000 |
commit | 34546ecb9b586f34e04f6e133a247ffe1f50046e (patch) | |
tree | 55c0c6c76c55bfe99a9f3c7dec416604a1c6dbd9 /editor/pnmsmooth.c | |
parent | d484f36f7c690d0a88476127afd9bdf90233699d (diff) | |
download | netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.tar.gz netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.tar.xz netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.zip |
Release 1.04.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4700 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmsmooth.c')
-rw-r--r-- | editor/pnmsmooth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/pnmsmooth.c b/editor/pnmsmooth.c index a76bd42b..b4dc1b9a 100644 --- a/editor/pnmsmooth.c +++ b/editor/pnmsmooth.c @@ -1,4 +1,4 @@ -/* pnmsmooth.c - smooth out an image by replacing each pixel with the +/* pnmsmooth.c - smooth out an image by replacing each pixel with the ** average of its width x height neighbors. ** ** Version 2.0 December 5, 1994 @@ -51,7 +51,7 @@ parseCommandLine (int argc, const char ** argv, struct cmdlineInfo *cmdlineP) { /*---------------------------------------------------------------------------- parse program command line described in Unix standard form by argc - and argv. Return the information in the options as *cmdlineP. + and argv. Return the information in the options as *cmdlineP. If command line is internally inconsistent (invalid options, etc.), issue error message to stderr and abort program. @@ -69,9 +69,9 @@ parseCommandLine (int argc, const char ** argv, unsigned int widthSpec, heightSpec, sizeSpec; MALLOCARRAY_NOFAIL(option_def, 100); - + option_def_index = 0; /* incremented by OPTENT3 */ - OPTENT3(0, "dump", OPT_FLAG, + OPTENT3(0, "dump", OPT_FLAG, NULL, &cmdlineP->dump, 0); OPTENT3(0, "width", OPT_UINT, &cmdlineP->width, &widthSpec, 0); @@ -117,7 +117,7 @@ parseCommandLine (int argc, const char ** argv, else { cmdlineP->width = atoi(argv[1]); cmdlineP->height = atoi(argv[2]); - + if (argc-1 < 3) cmdlineP->inputFilespec = "-"; else @@ -179,7 +179,7 @@ makeConvolutionKernel(unsigned int const cols, else { unsigned int row; unsigned int cursor; - + for (row = 0, cursor = 0; row < rows; ++row) { unsigned int col; |