Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
Go to the source code of this file.
Macros | |
#define | NO_DECLARE_MALLOC /* ppm.h does it */ |
#define | VPRINTF if (verbose || header) fprintf |
Typedefs | |
typedef unsigned char | U_CHAR |
Functions | |
void | read_ppm_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/ppmtorle.c,v 3.0.1.4 1992/03/04 19:29:43 spencer Exp $" |
FILE * | fp |
rle_hdr | hdr |
int | format |
int | width |
int | height |
int | verbose = 0 |
int | header = 0 |
int | do_alpha = 0 |
gray | maxval |
#define NO_DECLARE_MALLOC /* ppm.h does it */ |
Definition at line 37 of file ppmtorle.c.
Definition at line 42 of file ppmtorle.c.
typedef unsigned char U_CHAR |
Definition at line 44 of file ppmtorle.c.
Definition at line 140 of file ppmtorle.c.
void read_ppm_header | ( | ) |
void write_rle_data | ( | ) |
Definition at line 89 of file ppmtorle.c.
References rle_hdr::cmd, do_alpha, hdr, height, rle_puteof(), rle_putrow(), rle_row_alloc(), rle_row_free(), and width.
void write_rle_header | ( | ) |
Definition at line 69 of file ppmtorle.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 ppmtorle.c.
Referenced by read_pgm_header(), read_ppm_header(), write_rle_data(), and write_rle_header().
int format |
Definition at line 50 of file ppmtorle.c.
FILE* fp |
Definition at line 48 of file ppmtorle.c.
rle_hdr hdr |
Definition at line 49 of file ppmtorle.c.
int header = 0 |
Definition at line 52 of file ppmtorle.c.
int height |
Definition at line 51 of file ppmtorle.c.
gray maxval |
Definition at line 53 of file ppmtorle.c.
|
static |
Definition at line 29 of file ppmtorle.c.
int verbose = 0 |
Definition at line 52 of file ppmtorle.c.
int width |
Definition at line 51 of file ppmtorle.c.