![]() |
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 |
| #define | GRAYSCALE 001 /* 8 bits, no colormap */ |
| #define | PSEUDOCOLOR 010 /* 8 bits, colormap */ |
| #define | TRUECOLOR 011 /* 24 bits, colormap */ |
| #define | DIRECTCOLOR 100 /* 24 bits, no colormap */ |
Functions | |
| void | read_rle_header () |
| void | write_ppm_data () |
| int | main (int argc, char **argv) |
Variables | |
| static char | rcsid [] = "$Header: /l/spencer/src/urt/cnv/RCS/rletoppm.c,v 3.0.1.4 1992/03/04 19:30:10 spencer Exp $" |
| pixval | maxval = 255 |
| rle_hdr | hdr |
| rle_map * | colormap |
| FILE * | fpin |
| int | visual |
| int | maplen |
| int | width |
| int | height |
| int | verbose = 0 |
| int | header = 0 |
| int | plain = 0 |
| #define DIRECTCOLOR 100 /* 24 bits, no colormap */ |
Definition at line 47 of file rletoppm.c.
| #define GRAYSCALE 001 /* 8 bits, no colormap */ |
Definition at line 44 of file rletoppm.c.
| #define NO_DECLARE_MALLOC /* ppm.h does it */ |
Definition at line 38 of file rletoppm.c.
| #define PSEUDOCOLOR 010 /* 8 bits, colormap */ |
Definition at line 45 of file rletoppm.c.
| #define TRUECOLOR 011 /* 24 bits, colormap */ |
Definition at line 46 of file rletoppm.c.
Definition at line 43 of file rletoppm.c.
Definition at line 225 of file rletoppm.c.
| void read_rle_header | ( | ) |
Definition at line 68 of file rletoppm.c.
References rle_hdr::alpha, rle_hdr::background, rle_hdr::bg_color, rle_hdr::cmap, rle_hdr::cmaplen, colormap, rle_hdr::comments, fpin, hdr, height, maplen, rle_hdr::ncmap, rle_hdr::ncolors, rle_hdr::rle_file, rle_get_setup(), visual, width, rle_hdr::xmax, rle_hdr::xmin, rle_hdr::ymax, and rle_hdr::ymin.
| void write_ppm_data | ( | ) |
Definition at line 150 of file rletoppm.c.
References rle_hdr::cmd, hdr, height, rle_getrow(), rle_row_alloc(), rle_row_free(), visual, and width.
| rle_map* colormap |
Definition at line 56 of file rletoppm.c.
| FILE* fpin |
Definition at line 60 of file rletoppm.c.
| rle_hdr hdr |
Definition at line 55 of file rletoppm.c.
| int header = 0 |
Definition at line 63 of file rletoppm.c.
| int height |
Definition at line 62 of file rletoppm.c.
Referenced by read_pgm_header(), read_ppm_header(), read_rle_header(), write_ppm_data(), write_rle_data(), and write_rle_header().
| int maplen |
Definition at line 61 of file rletoppm.c.
| pixval maxval = 255 |
Definition at line 51 of file rletoppm.c.
| int plain = 0 |
Definition at line 64 of file rletoppm.c.
|
static |
Definition at line 29 of file rletoppm.c.
| int verbose = 0 |
Definition at line 63 of file rletoppm.c.
| int visual |
Definition at line 61 of file rletoppm.c.
| int width |
Definition at line 62 of file rletoppm.c.
Referenced by read_pgm_header(), read_ppm_header(), read_rle_header(), write_ppm_data(), write_rle_data(), and write_rle_header().
1.8.10