diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-12-08 02:52:21 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-12-08 02:52:21 +0000 |
commit | 903b4c784afe71fa323e5e4ae65e3a7605f51eee (patch) | |
tree | 76339b02b01c33a78365a3aa46a2212ddc7803e2 | |
parent | 4c361c0a7638b4f068e8b524e4ff43374a286018 (diff) | |
download | netpbm-mirror-903b4c784afe71fa323e5e4ae65e3a7605f51eee.tar.gz netpbm-mirror-903b4c784afe71fa323e5e4ae65e3a7605f51eee.tar.xz netpbm-mirror-903b4c784afe71fa323e5e4ae65e3a7605f51eee.zip |
Release 10.92.01
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3996 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | doc/HISTORY | 13 | ||||
-rw-r--r-- | editor/pamaddnoise.c | 2 | ||||
-rw-r--r-- | other/pamarith.c | 10 | ||||
-rw-r--r-- | version.mk | 2 |
4 files changed, 21 insertions, 6 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 8779bd44..20bf2ef4 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,15 @@ Netpbm. CHANGE HISTORY -------------- +20.12.08 BJH Release 10.92.01 + + pamarith: Fix bug: fails with more than two operands for + -mulitply, -minimum, -maximum, -nand, and -nor. + + pamaddnoise: fix bug: garbage output with -type impulse. Always + broken (pamaddnoise's precursors pnmaddnoise was new to Netpbm + in Netpbm 10.29 (August 2005). + 20.09.26 BJH Release 10.92.00 pnmcrop: Make -margin effective with -blank-image=minimize. @@ -2031,6 +2040,10 @@ CHANGE HISTORY Add ppmtoascii. Thanks "Frank Ch. Eigler" <fche@elastic.org>. + pamarith: Allow more than two operands for functions for which + it makes sense (all but -subtract, -difference, -compare, + -divide, -shiftleft, and -shiftright). + pnmtops: Add -bitsperpixel option. pamx: Make exit status 0 instead of 10 when window manager diff --git a/editor/pamaddnoise.c b/editor/pamaddnoise.c index 354e0dc4..ccfde0b6 100644 --- a/editor/pamaddnoise.c +++ b/editor/pamaddnoise.c @@ -97,6 +97,8 @@ impulse_noise(sample const maxval, *newSampleP = 0; else if ( sap >= high_tol ) *newSampleP = maxval; + else + *newSampleP = origSample; } diff --git a/other/pamarith.c b/other/pamarith.c index c67c7326..180dbe23 100644 --- a/other/pamarith.c +++ b/other/pamarith.c @@ -23,21 +23,21 @@ isDyadic(enum function const function) { switch (function) { case FN_ADD: + case FN_MULTIPLY: + case FN_MINIMUM: + case FN_MAXIMUM: case FN_MEAN: case FN_AND: + case FN_NAND: case FN_OR: + case FN_NOR: case FN_XOR: retval = FALSE; break; case FN_SUBTRACT: case FN_DIFFERENCE: - case FN_MINIMUM: - case FN_MAXIMUM: case FN_COMPARE: - case FN_MULTIPLY: case FN_DIVIDE: - case FN_NAND: - case FN_NOR: case FN_SHIFTLEFT: case FN_SHIFTRIGHT: retval = TRUE; diff --git a/version.mk b/version.mk index afa232e7..518ad1cd 100644 --- a/version.mk +++ b/version.mk @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 92 -NETPBM_POINT_RELEASE = 0 +NETPBM_POINT_RELEASE = 1 |