diff options
Diffstat (limited to 'converter/pbm/pbmtodjvurle.c')
-rw-r--r-- | converter/pbm/pbmtodjvurle.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/converter/pbm/pbmtodjvurle.c b/converter/pbm/pbmtodjvurle.c index 83e99ec4..598abfbb 100644 --- a/converter/pbm/pbmtodjvurle.c +++ b/converter/pbm/pbmtodjvurle.c @@ -1,7 +1,7 @@ /* Convert a PBM image into the DjVu Bitonal RLE format described in the csepdjvu(1) documentation - + Copyright (c) 2004 Scott Pakin <scott+pbm@pakin.org> All rights reserved. @@ -9,7 +9,7 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright @@ -17,7 +17,7 @@ documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. - + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. @@ -48,8 +48,9 @@ writebyte(FILE * const ofP, } + /* Write a run length to the RLE file. */ -static void +static void write_rle(FILE * const rlefile, uint32_t const tallyArg) { @@ -83,7 +84,7 @@ write_rle(FILE * const rlefile, -int +int main (int argc, const char * argv[]) { FILE * const rlefile = stdout; /* Generated Bitonal RLE file */ @@ -144,3 +145,6 @@ main (int argc, const char * argv[]) { return 0; } + + + |