about summary refs log tree commit diff
path: root/lib/libpnm3.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-07-26 16:38:27 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-07-26 16:38:27 +0000
commitebc4d1a86965af0a0d4e98094f76ca541d324ae8 (patch)
treee8a094f4fd0d721fc07dc2e982d8c9587f02cfc9 /lib/libpnm3.c
parentb49c23f7f948a2f453b4a8580e52692742e6163f (diff)
downloadnetpbm-mirror-ebc4d1a86965af0a0d4e98094f76ca541d324ae8.tar.gz
netpbm-mirror-ebc4d1a86965af0a0d4e98094f76ca541d324ae8.tar.xz
netpbm-mirror-ebc4d1a86965af0a0d4e98094f76ca541d324ae8.zip
comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4368 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpnm3.c')
-rw-r--r--lib/libpnm3.c6
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];