diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-18 03:48:54 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-18 03:48:54 +0000 |
commit | 27d6da036c2aa20ecee53cb77ef8aecf04fc633d (patch) | |
tree | 8e852e267e9f3d614728dc22e7639c9e56cd9697 /editor/specialty/pamoil.c | |
parent | 9e85aa0118c5e02daac094e1b650edfbeabb771e (diff) | |
download | netpbm-mirror-27d6da036c2aa20ecee53cb77ef8aecf04fc633d.tar.gz netpbm-mirror-27d6da036c2aa20ecee53cb77ef8aecf04fc633d.tar.xz netpbm-mirror-27d6da036c2aa20ecee53cb77ef8aecf04fc633d.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4668 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/specialty/pamoil.c')
-rw-r--r-- | editor/specialty/pamoil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/specialty/pamoil.c b/editor/specialty/pamoil.c index 6cb8d3ac..2618ac12 100644 --- a/editor/specialty/pamoil.c +++ b/editor/specialty/pamoil.c @@ -18,7 +18,7 @@ #include "pam.h" #include "mallocvar.h" -static void +static void convertRow(struct pam const inpam, tuple ** const tuples, tuple * const tuplerow, int const row, int const smearFactor, int * const hist) { @@ -34,7 +34,7 @@ convertRow(struct pam const inpam, tuple ** const tuples, of the pixel being examined */ - /* Compute hist[] - frequencies, in the neighborhood, of each + /* Compute hist[] - frequencies, in the neighborhood, of each sample value */ for (i = 0; i <= inpam.maxval; ++i) hist[i] = 0; @@ -42,8 +42,8 @@ convertRow(struct pam const inpam, tuple ** const tuples, for (drow = row - smearFactor; drow <= row + smearFactor; ++drow) { if (drow >= 0 && drow < inpam.height) { int dcol; - for (dcol = col - smearFactor; - dcol <= col + smearFactor; + for (dcol = col - smearFactor; + dcol <= col + smearFactor; ++dcol) { if ( dcol >= 0 && dcol < inpam.width ) ++hist[tuples[drow][dcol][sample]]; |