diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-09-28 02:22:32 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-09-28 02:22:32 +0000 |
commit | 0d782c278caeb9e70b1a5635d018168b09ecf2ba (patch) | |
tree | b807f4ee6b4ce6b9cbafb66768d09c106a71040d /lib/libpnm3.c | |
parent | 4616d7d06bc2ee200a7f40cee107fbbbf5d0cae9 (diff) | |
download | netpbm-mirror-0d782c278caeb9e70b1a5635d018168b09ecf2ba.tar.gz netpbm-mirror-0d782c278caeb9e70b1a5635d018168b09ecf2ba.tar.xz netpbm-mirror-0d782c278caeb9e70b1a5635d018168b09ecf2ba.zip |
Copy current Development release as Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4444 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpnm3.c')
-rw-r--r-- | lib/libpnm3.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libpnm3.c b/lib/libpnm3.c index 3970c734..ba408bd1 100644 --- a/lib/libpnm3.c +++ b/lib/libpnm3.c @@ -106,10 +106,14 @@ pnm_backgroundxelrow(xel * const xelrow, int const cols, xelval const maxval, int const format) { +/*---------------------------------------------------------------------------- + Guess a good background color for an image that contains row 'xelrow' + (probably top or bottom edge). + 'cols', 'maxval', and 'format' describe 'xelrow'. +-----------------------------------------------------------------------------*/ xel bgxel, l, r; - /* Guess a good background value. */ l = xelrow[0]; r = xelrow[cols-1]; |