Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
Go to the source code of this file.
Macros | |
#define | NO_DECLARE_MALLOC |
#define | VPRINTF if (verbose || header) fprintf |
Typedefs | |
typedef unsigned char | U_CHAR |
Functions | |
void | read_pgm_header () |
void | write_rle_header () |
void | write_rle_data () |
int | main (int argc, char **argv) |
Variables | |
static char | rcsid [] = "$Header: /l/spencer/src/urt/cnv/RCS/pgmtorle.c,v 3.0.1.5 1992/04/30 13:57:29 spencer Exp $" |
FILE * | fp |
int | format |
int | width |
int | height |
int | verbose = 0 |
int | header = 0 |
int | do_alpha = 0 |
gray | maxval |
rle_hdr | hdr |
#define NO_DECLARE_MALLOC |
Definition at line 40 of file pgmtorle.c.
Definition at line 43 of file pgmtorle.c.
typedef unsigned char U_CHAR |
Definition at line 45 of file pgmtorle.c.
Definition at line 138 of file pgmtorle.c.
void read_pgm_header | ( | ) |
void write_rle_data | ( | ) |
Definition at line 89 of file pgmtorle.c.
References rle_hdr::cmd, hdr, height, rle_puteof(), rle_putrow(), rle_row_alloc(), rle_row_free(), and width.
void write_rle_header | ( | ) |
Definition at line 71 of file pgmtorle.c.
References rle_hdr::alpha, rle_hdr::background, do_alpha, hdr, height, rle_hdr::ncolors, rle_put_setup(), width, rle_hdr::xmax, rle_hdr::xmin, rle_hdr::ymax, and rle_hdr::ymin.
int do_alpha = 0 |
Definition at line 52 of file pgmtorle.c.
int format |
Definition at line 50 of file pgmtorle.c.
FILE* fp |
Definition at line 49 of file pgmtorle.c.
rle_hdr hdr |
Definition at line 54 of file pgmtorle.c.
int header = 0 |
Definition at line 52 of file pgmtorle.c.
int height |
Definition at line 51 of file pgmtorle.c.
gray maxval |
Definition at line 53 of file pgmtorle.c.
|
static |
Definition at line 29 of file pgmtorle.c.
int verbose = 0 |
Definition at line 52 of file pgmtorle.c.
int width |
Definition at line 51 of file pgmtorle.c.