diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-03-15 15:20:29 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-03-15 15:20:29 +0000 |
commit | bbb7d073574d31019b0023641fbb85f167c19ab5 (patch) | |
tree | eb4d5e6489502488f8b07b43a5c5575621941a1f /lib | |
parent | 3be2255ecea7aa9442db31457e13bd0149ce606d (diff) | |
download | netpbm-mirror-bbb7d073574d31019b0023641fbb85f167c19ab5.tar.gz netpbm-mirror-bbb7d073574d31019b0023641fbb85f167c19ab5.tar.xz netpbm-mirror-bbb7d073574d31019b0023641fbb85f167c19ab5.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3573 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpnm3.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/libpnm3.c b/lib/libpnm3.c index 0426ebcb..52439bba 100644 --- a/lib/libpnm3.c +++ b/lib/libpnm3.c @@ -199,22 +199,22 @@ pnm_blackxel(xelval const maxval, default: pm_error("Invalid format %d passed to pnm_blackxel()", format); } - + return retval; } void -pnm_invertxel(xel* const xP, - xelval const maxval, +pnm_invertxel(xel* const xP, + xelval const maxval, int const format) { switch (PNM_FORMAT_TYPE(format)) { case PPM_TYPE: - PPM_ASSIGN(*xP, + PPM_ASSIGN(*xP, maxval - PPM_GETR(*xP), - maxval - PPM_GETG(*xP), + maxval - PPM_GETG(*xP), maxval - PPM_GETB(*xP)); break; @@ -348,31 +348,31 @@ pnm_promoteformatrow( xel* xelrow, int cols, xelval maxval, int format, xelval n pixel -pnm_xeltopixel(xel const inputxel, +pnm_xeltopixel(xel const inputXel, int const format) { - - pixel outputpixel; + + pixel outputPixel; switch (PNM_FORMAT_TYPE(format)) { case PPM_TYPE: - PPM_ASSIGN(outputpixel, - PPM_GETR(inputxel), - PPM_GETG(inputxel), - PPM_GETB(inputxel)); + PPM_ASSIGN(outputPixel, + PNM_GETR(inputXel), + PNM_GETG(inputXel), + PNM_GETB(inputXel)); break; case PGM_TYPE: case PBM_TYPE: - PPM_ASSIGN(outputpixel, - PNM_GET1(inputxel), - PNM_GET1(inputxel), - PNM_GET1(inputxel)); + PPM_ASSIGN(outputPixel, + PNM_GET1(inputXel), + PNM_GET1(inputXel), + PNM_GET1(inputXel)); break; default: pm_error("Invalid format code %d passed to pnm_xeltopixel()", format); } - return outputpixel; + return outputPixel; } @@ -413,6 +413,6 @@ pnm_parsecolorxel(const char * const colorName, pm_error("Invalid format code %d passed to pnm_parsecolorxel()", format); } - + return retval; } |