diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-01 20:55:20 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-01 20:55:20 +0000 |
commit | a2f383abd59a6ab6170ff87aed73907e337976e1 (patch) | |
tree | 0ff68bcd171205baf521bec150eaa0512ae747e7 /converter | |
parent | 36337c4f4249c002177cdc9ca3bc62aadf74168e (diff) | |
download | netpbm-mirror-a2f383abd59a6ab6170ff87aed73907e337976e1.tar.gz netpbm-mirror-a2f383abd59a6ab6170ff87aed73907e337976e1.tar.xz netpbm-mirror-a2f383abd59a6ab6170ff87aed73907e337976e1.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4712 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/ppm/ppmtopj.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/converter/ppm/ppmtopj.c b/converter/ppm/ppmtopj.c index d116773f..8b39ce37 100644 --- a/converter/ppm/ppmtopj.c +++ b/converter/ppm/ppmtopj.c @@ -62,12 +62,14 @@ static int compress_row ARGS((unsigned char *op, unsigned char *oe, unsigned cha #define C_MOVE_X "\033*p+%dX" #define C_MOVE_Y "\033*p+%dY" -static const char * const rmode[] = { - "none", "snap", "bw", "dither", "diffuse", - "monodither", "monodiffuse", "clusterdither", - "monoclusterdither", NULL +static const char * const rmode[] = { + "none", "snap", "bw", "dither", "diffuse", + "monodither", "monodiffuse", "clusterdither", + "monoclusterdither", NULL }; + + /* * Run-length encoding for the PaintJet. We have pairs of <instances> * <value>, where instances goes from 0 (meaning one instance) to 255 @@ -78,7 +80,7 @@ compress_row(op, oe, cp) unsigned char *op, *oe, *cp; { unsigned char *ce = cp; - while ( op < oe ) { + while ( op < oe ) { unsigned char px = *op++; unsigned char *pr = op; while ( op < oe && *op == px && op - pr < 255) op++; @@ -88,6 +90,8 @@ unsigned char *op, *oe, *cp; return ce - cp; } + + int main(argc, argv) int argc; char *argv[]; @@ -254,3 +258,6 @@ char *argv[]; (void) printf(C_END_RASTER, C_END_RASTER_UNUSED); exit(0); } + + + |