Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
Go to the source code of this file.
Data Structures | |
struct | rle_hdr |
Macros | |
#define | RLE_RED 0 /* Red channel traditionally here. */ |
#define | RLE_GREEN 1 /* Green channel traditionally here. */ |
#define | RLE_BLUE 2 /* Blue channel traditionally here. */ |
#define | RLE_ALPHA -1 /* Alpha channel here. */ |
#define | RLE_SUCCESS 0 |
#define | RLE_NOT_RLE -1 |
#define | RLE_NO_SPACE -2 |
#define | RLE_EMPTY -3 |
#define | RLE_EOF -4 |
#define | RLE_INIT_MAGIC 0x6487ED51L |
#define | RLE_CHECK_ALLOC(pgm, ptr, name) ( !(ptr) ? rle_alloc_error( pgm, name ) : 0 ) |
#define | RLE_SET_BIT(glob, bit) ((glob).bits[((bit)&0xff)/8] |= (1<<((bit)&0x7))) |
#define | RLE_CLR_BIT(glob, bit) ((glob).bits[((bit)&0xff)/8] &= ~(1<<((bit)&0x7))) |
#define | RLE_BIT(glob, bit) ((glob).bits[((bit)&0xff)/8] & (1<<((bit)&0x7))) |
Typedefs | |
typedef unsigned char | rle_pixel |
typedef unsigned short | rle_map |
typedef struct rle_hdr | rle_hdr |
Enumerations | |
enum | rle_dispatch { NO_DISPATCH = -1, RUN_DISPATCH = 0 } |
Functions | |
int | rle_alloc_error (const char *pgm, const char *name) |
int | rle_get_error (int code, const char *pgmname, const char *fname) |
void | rle_debug (int on_off) |
int | rle_get_setup (rle_hdr *the_hdr) |
void | rle_get_setup_ok (rle_hdr *the_hdr, const char *prog_name, const char *file_name) |
int | rle_getrow (rle_hdr *the_hdr, rle_pixel *scanline[]) |
unsigned int | rle_getskip (rle_hdr *the_hdr) |
void | rle_names (rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num) |
rle_hdr * | rle_hdr_cp (rle_hdr *from_hdr, rle_hdr *to_hdr) |
rle_hdr * | rle_hdr_init (rle_hdr *the_hdr) |
void | rle_hdr_clear (rle_hdr *the_hdr) |
void | rgb_to_bw (rle_pixel *red_row, rle_pixel *green_row, rle_pixel *blue_row, rle_pixel *bw_row, int rowlen) |
void | rle_puteof (rle_hdr *the_hdr) |
void | rle_putrow (rle_pixel *rows[], int rowlen, rle_hdr *the_hdr) |
void | rle_put_init (rle_hdr *the_hdr) |
void | rle_put_setup (rle_hdr *the_hdr) |
void | rle_skiprow (rle_hdr *the_hdr, int nrow) |
void | rle_cp (rle_hdr *in_hdr, rle_hdr *out_hdr) |
int | rle_row_alloc (rle_hdr *the_hdr, rle_pixel ***scanp) |
void | rle_row_free (rle_hdr *the_hdr, rle_pixel **scanp) |
rle_pixel ** | buildmap (rle_hdr *the_hdr, int minmap, double orig_gamma, double new_gamma) |
char * | rle_getcom (const char *name, rle_hdr *the_hdr) |
const char * | rle_delcom (const char *name, rle_hdr *the_hdr) |
const char * | rle_putcom (const char *value, rle_hdr *the_hdr) |
void | bwdithermap (int levels, double gamma, int bwmap[], int divN[256], int modN[256], int magic[16][16]) |
int | ditherbw (int x, int y, int val, int divN[256], int modN[256], int magic[16][16]) |
int | dithergb (int x, int y, int r, int g, int b, int divN[256], int modN[256], int magic[16][16]) |
void | dithermap (int levels, double gamma, int rgbmap[][3], int divN[256], int modN[256], int magic[16][16]) |
void | make_square (double N, int divN[256], int modN[256], int magic[16][16]) |
void | float_to_exp (int count, float *floats, rle_pixel *pixels) |
FILE * | rle_open_f (const char *prog_name, const char *f_name, const char *mode) |
FILE * | rle_open_f_noexit (const char *prog_name, const char *f_name, const char *mode) |
void | rle_close_f (FILE *fd) |
int | colorquant (rle_pixel *red, rle_pixel *green, rle_pixel *blue, unsigned long pixels, rle_pixel *colormap[3], int colors, int bits, rle_pixel *rgbmap, int fast, int otherimages) |
void | rle_addhist (char *argv[], rle_hdr *in_hdr, rle_hdr *out_hdr) |
char * | cmd_name (char **argv) |
int | scanargs (int argc, char **argv, const char *format,...) |
void | hilbert_c2i (int n, int m, int a[], long int *r) |
void | hilbert_i2c (int n, int m, long int r, int a[]) |
void | inv_cmap (int colors, unsigned char *colormap[3], int bits, unsigned long *dist_buf, unsigned char *rgbmap) |
Variables | |
rle_hdr | rle_dflt_hdr |
#define RLE_CHECK_ALLOC | ( | pgm, | |
ptr, | |||
name | |||
) | ( !(ptr) ? rle_alloc_error( pgm, name ) : 0 ) |
enum rle_dispatch |
Definition at line 56 of file buildmap.c.
Referenced by find_most_used().
void bwdithermap | ( | int | levels, |
double | gamma, | ||
int | bwmap[], | ||
int | divN[256], | ||
int | modN[256], | ||
int | magic[16][16] | ||
) |
char* cmd_name | ( | char ** | argv | ) |
Definition at line 31 of file cmd_name.c.
int colorquant | ( | rle_pixel * | red, |
rle_pixel * | green, | ||
rle_pixel * | blue, | ||
unsigned long | pixels, | ||
rle_pixel * | colormap[3], | ||
int | colors, | ||
int | bits, | ||
rle_pixel * | rgbmap, | ||
int | fast, | ||
int | otherimages | ||
) |
void dithermap | ( | int | levels, |
double | gamma, | ||
int | rgbmap[][3], | ||
int | divN[256], | ||
int | modN[256], | ||
int | magic[16][16] | ||
) |
Definition at line 42 of file float_to_exp.c.
void inv_cmap | ( | int | colors, |
unsigned char * | colormap[3], | ||
int | bits, | ||
unsigned long * | dist_buf, | ||
unsigned char * | rgbmap | ||
) |
void rgb_to_bw | ( | rle_pixel * | red_row, |
rle_pixel * | green_row, | ||
rle_pixel * | blue_row, | ||
rle_pixel * | bw_row, | ||
int | rowlen | ||
) |
Definition at line 680 of file rle_putrow.c.
int rle_alloc_error | ( | const char * | pgm, |
const char * | name | ||
) |
void rle_close_f | ( | FILE * | fd | ) |
Definition at line 244 of file rle_open_f.c.
void rle_debug | ( | int | on_off | ) |
Definition at line 293 of file rle_getrow.c.
const char* rle_delcom | ( | const char * | name, |
rle_hdr * | the_hdr | ||
) |
Definition at line 74 of file rle_getrow.c.
Referenced by display_rle(), find_most_used(), RLE::open:, and read_rle_header().
void rle_get_setup_ok | ( | rle_hdr * | the_hdr, |
const char * | prog_name, | ||
const char * | file_name | ||
) |
char* rle_getcom | ( | const char * | name, |
rle_hdr * | the_hdr | ||
) |
Definition at line 57 of file rle_getskip.c.
Definition at line 119 of file rle_hdr.c.
Definition at line 267 of file rle_hdr.c.
Referenced by read_file().
FILE* rle_open_f | ( | const char * | prog_name, |
const char * | f_name, | ||
const char * | mode | ||
) |
FILE* rle_open_f_noexit | ( | const char * | prog_name, |
const char * | f_name, | ||
const char * | mode | ||
) |
void rle_put_init | ( | rle_hdr * | the_hdr | ) |
Definition at line 415 of file rle_putrow.c.
void rle_put_setup | ( | rle_hdr * | the_hdr | ) |
Definition at line 453 of file rle_putrow.c.
Referenced by find_most_used(), and write_rle_header().
const char* rle_putcom | ( | const char * | value, |
rle_hdr * | the_hdr | ||
) |
void rle_puteof | ( | rle_hdr * | the_hdr | ) |
Definition at line 474 of file rle_putrow.c.
Referenced by FormFeed(), rasterDone(), and write_rle_data().
Definition at line 56 of file rle_row_alc.c.
Referenced by get_scanlines(), RLE::open:, write_ppm_data(), write_rlb_data(), and write_rle_data().
Definition at line 114 of file rle_row_alc.c.
Referenced by RLE::open:, write_ppm_data(), and write_rle_data().
Definition at line 393 of file rle_putrow.c.
Referenced by write_rle_data().
Definition at line 94 of file scanargs.c.
References _do_scanargs().
rle_hdr rle_dflt_hdr |
Definition at line 66 of file rle_global.c.
Referenced by find_most_used(), and write_rlb_data().