about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-05-26 17:08:41 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-05-26 17:08:41 +0000
commit66315180a2d1b39f635ce19dec6985f4f5f52c65 (patch)
treee549f794ff812c67029031bd9bd28dd75581da03 /lib
parent114071a0f0644a2ec12d80fb3eddd40cddb47a74 (diff)
downloadnetpbm-mirror-66315180a2d1b39f635ce19dec6985f4f5f52c65.tar.gz
netpbm-mirror-66315180a2d1b39f635ce19dec6985f4f5f52c65.tar.xz
netpbm-mirror-66315180a2d1b39f635ce19dec6985f4f5f52c65.zip
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3617 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/util/runlength.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/util/runlength.c b/lib/util/runlength.c
index 62e3bf0c..8f60759d 100644
--- a/lib/util/runlength.c
+++ b/lib/util/runlength.c
@@ -29,7 +29,7 @@
   A survey of netpbm source code in 2015 found Packbits encoding in the
   following Netpbm programs: pbmtoescp2, pbmtomacp, pnmtopalm, pnmtopclxl,
   pnmtops, ppmtoilbm and ppmtopjxl.
- 
+
   Packbits is an option in the TIFF standard; pamtotiff can generate TIFF
   images that use Packbits compression, but does so via code in the TIFF
   library (not part of Netpbm).
@@ -47,7 +47,7 @@
 
   Today, all Netpbm programs that do Packbits compression with the exception
   of pamtotiff, pbmtoppa, pbmtogo and pamtotga use the facilities in this
-  file for it.  
+  file for it.
 =============================================================================*/
 
 #include <string.h>
@@ -71,7 +71,7 @@ static const char * const errorUndefinedMode =
    strings follow a single index or "flag" byte N.  There are several
    variations, differing in the format of the flag byte, maximum string
    length and element size (byte or word).
-   
+
    In the most widely used version, Packbits, the meaning of the flag byte
    N is defined as follows:
 
@@ -110,7 +110,7 @@ pm_rlenc_compressbyte(const unsigned char * const inbuf,
 
     int packBase;
     int packSign;
- 
+
     switch (mode) {
     case PM_RLE_PACKBITS:
         packBase = 257 ; packSign = -1; break;
@@ -128,7 +128,7 @@ pm_rlenc_compressbyte(const unsigned char * const inbuf,
             for (count = 0;
                  inCurs < inSize &&
                      inbuf[inCurs] == inbuf[hold] &&
-                     count < maxRun; 
+                     count < maxRun;
                  ++inCurs, ++count)
                 ;
             outbuf[outCurs++] = (unsigned char) (packBase + packSign * count);
@@ -139,7 +139,7 @@ pm_rlenc_compressbyte(const unsigned char * const inbuf,
             size_t count;
             ++outCurs;
             count = 0;
-            while(((inCurs + 2 >= inSize) && (inCurs < inSize) ) || 
+            while(((inCurs + 2 >= inSize) && (inCurs < inSize) ) ||
                   ((inCurs + 2 <  inSize) &&
                    ((inbuf[inCurs] != inbuf[inCurs+1]  )
                     || (inbuf[inCurs] != inbuf[inCurs+2]  ) ) )    ) {
@@ -242,7 +242,7 @@ pm_rlenc_compressword(const uint16_t   * const inbuf,
             outCurs += count * 2;
         }
     }
-    
+
     if (mode == PM_RLE_SGI16) {
         * (uint16_t *) &outbuf[outCurs] = 0;     /* terminator */
         outCurs += 2;
@@ -336,7 +336,7 @@ pm_rlenc_maxbytes(size_t          const inSize,  /* number of elements */
     size_t itemSize;   /* Size of item, in bytes */
     size_t miscSize;   /* Size of other elements such as term code, in bytes */
     size_t overhead;   /* Worst-case overhead, in bytes */
-    /* return value:      Worst-case output size, in bytes */ 
+    /* return value:      Worst-case output size, in bytes */
 
     switch (mode) {
     case PM_RLE_PACKBITS:
@@ -359,7 +359,7 @@ pm_rlenc_maxbytes(size_t          const inSize,  /* number of elements */
     default:
         pm_error(errorUndefinedMode, mode);
     }
-    
+
     overhead = miscSize +
         (inSize / blockSize + (inSize % blockSize > 0 ? 1 : 0) ) * flagSize;