diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-08-08 15:07:23 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-08-08 15:07:23 +0000 |
commit | 496fe4ea1b9f884ec8a8373bd69f9983889d98aa (patch) | |
tree | 6aa9246d0bc9a45f48574271c5ef19407ae21385 /urt | |
parent | dd9af3ebc34dadbd969ccef05c943f749ec32aec (diff) | |
download | netpbm-mirror-496fe4ea1b9f884ec8a8373bd69f9983889d98aa.tar.gz netpbm-mirror-496fe4ea1b9f884ec8a8373bd69f9983889d98aa.tar.xz netpbm-mirror-496fe4ea1b9f884ec8a8373bd69f9983889d98aa.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3654 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'urt')
-rw-r--r-- | urt/rle.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/urt/rle.h b/urt/rle.h index 0766d22a..5d5ff33a 100644 --- a/urt/rle.h +++ b/urt/rle.h @@ -1,29 +1,29 @@ /* * This software is copyrighted as noted below. It may be freely copied, - * modified, and redistributed, provided that the copyright notice is + * modified, and redistributed, provided that the copyright notice is * preserved on all copies. - * + * * There is no warranty or other guarantee of fitness for this software, * it is provided solely "as is". Bug reports or fixes may be sent * to the author, who may or may not act on them as he desires. * * You may not include this software in a program or other software product - * without supplying the source, or without informing the end-user that the + * without supplying the source, or without informing the end-user that the * source is available for no extra charge. * * If you modify this software, you should include a notice giving the * name of the person performing the modification, the date of modification, * and the reason for such modification. */ -/* +/* * rle.h - Global declarations for Utah Raster Toolkit RLE programs. - * + * * Author: Todd W. Fuqua * Computer Science Dept. * University of Utah * Date: Sun Jul 29 1984 * Copyright (c) 1984 Todd W. Fuqua - * + * * $Id: rle.h,v 3.0.1.5 1992/04/30 14:05:56 spencer Exp $ */ @@ -103,10 +103,10 @@ typedef rle_map * cmap; /* Pointer to color map array. */ const char ** comments; /* Pointer to array of pointers to comments. */ FILE * rle_file; /* Input or output file. */ - /* + /* * Bit map of channels to read/save. Indexed by (channel mod 256). * Alpha channel sets bit 255. - * + * * Indexing (0 <= c <= 255): * bits[c/8] & (1 << (c%8)) */ @@ -119,12 +119,12 @@ typedef char bits[256/8]; /* Set to magic pattern if following fields are initialized. */ /* This gives a 2^(-32) chance of missing. */ - long int is_init; + long int is_init; /* Command, file name and image number for error messages. */ const char *cmd; const char *file_name; int img_num; - /* + /* * Local storage for rle_getrow & rle_putrow. * rle_getrow has * scan_y int current Y scanline. @@ -153,7 +153,7 @@ rle_hdr /* End of typedef. */ #endif ; -/* +/* * TAG( rle_dflt_hdr ) * * Global variable with possibly useful default values. @@ -166,7 +166,7 @@ extern rle_hdr rle_dflt_hdr; /* From rle_error.c. */ /***************************************************************** * TAG( rle_alloc_error ) - * + * * Print memory allocation error message and exit. */ extern int rle_alloc_error( const char *pgm, @@ -181,12 +181,12 @@ extern int rle_alloc_error( const char *pgm, extern int rle_get_error( int code, const char *pgmname, const char *fname ); - + /* From rle_getrow.c */ /***************************************************************** * TAG( rle_debug ) - * + * * Turn RLE debugging on or off. */ extern void rle_debug( int on_off ); @@ -199,7 +199,7 @@ rle_get_setup(rle_hdr * const the_hdr); * * Call rle_get_setup. If it returns an error code, call * rle_get_error to print the error message, then exit with the error - * code. + * code. */ extern void rle_get_setup_ok( rle_hdr *the_hdr, const char *prog_name, @@ -210,7 +210,7 @@ extern void rle_get_setup_ok( rle_hdr *the_hdr, * * Read a scanline worth of data from an RLE file. */ -extern int rle_getrow( rle_hdr * the_hdr, +extern int rle_getrow( rle_hdr * the_hdr, rle_pixel * scanline[] ); /* From rle_getskip.c */ @@ -235,7 +235,7 @@ extern void rle_names( rle_hdr *the_hdr, /***************************************************************** * TAG( rle_hdr_cp ) - * + * * Make a "safe" copy of a rle_hdr structure. */ extern rle_hdr * rle_hdr_cp( rle_hdr *from_hdr, @@ -243,14 +243,14 @@ extern rle_hdr * rle_hdr_cp( rle_hdr *from_hdr, /***************************************************************** * TAG( rle_hdr_init ) - * + * * Initialize a rle_hdr structure. */ extern rle_hdr * rle_hdr_init( rle_hdr *the_hdr ); /***************************************************************** * TAG( rle_hdr_clear ) - * + * */ extern void rle_hdr_clear( rle_hdr *the_hdr ); @@ -326,7 +326,7 @@ extern int rle_row_alloc( rle_hdr * the_hdr, extern void rle_row_free( rle_hdr *the_hdr, rle_pixel **scanp ); /* From buildmap.c. */ -/* +/* * buildmap - build a more usable colormap from data in the_hdr struct. */ extern rle_pixel **buildmap( rle_hdr *the_hdr, @@ -367,7 +367,7 @@ extern void bwdithermap( int levels, double gamma, int bwmap[], * TAG( ditherbw ) * Dither a gray-scale value. */ -extern int ditherbw( int x, int y, int val, +extern int ditherbw( int x, int y, int val, int divN[256], int modN[256], int magic[16][16] ); /***************************************************************** * TAG( dithergb ) @@ -402,7 +402,7 @@ extern void float_to_exp( int count, float * floats, rle_pixel * pixels ); * Open an input/output file with default. */ FILE * -rle_open_f(const char * prog_name, const char * file_name, +rle_open_f(const char * prog_name, const char * file_name, const char * mode); /***************************************************************** @@ -412,16 +412,16 @@ rle_open_f(const char * prog_name, const char * file_name, */ FILE * rle_open_f_noexit(const char * const prog_name, - const char * const file_name, + const char * const file_name, const char * const mode); /***************************************************************** * TAG( rle_close_f ) - * + * * Close a file opened by rle_open_f. If the file is stdin or stdout, * it will not be closed. */ -extern void +extern void rle_close_f( FILE *fd ); /* From colorquant.c. */ |