Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
Go to the source code of this file.
Macros | |
#define | TRUE 1 /* Logical constants. */ |
#define | FALSE 0 |
#define | MAX(i, j) ( (i) > (j) ? (i) : (j) ) |
#define | RASTERSIZE_LIM 1023 |
#define | COLMAP_OFFSET 8 |
#define | MONOCHROME_MODE 1 |
#define | EIGHT_BIT_COLOR_MODE 2 |
#define | DMAP(v, x, y) (errN[v]>dm16[x][y] ? divN[v] + 1 : divN[v]) |
Typedefs | |
typedef char * | string |
typedef int | boolean |
typedef float | single |
typedef single | starbase_color_type[3] |
typedef unsigned char | starbase_color_index_type |
Functions | |
main (int argc, argv) | |
init_gamma_map () | |
init_8_bit_color_map () | |
init_monochrome_color_map (int ncolors) | |
put_line_8 (int y) | |
put_line_mono (int y) | |
direct_setup () | |
write_color_map (int star_fd) | |
write_scanline (int y) | |
Variables | |
unsigned char | scanline [4][1023] |
unsigned char * | rows [4] |
starbase_color_index_type | dest_pixels [1023] |
int | dm16 [16][16] |
int | errN [256] |
int | divN [256] |
int | gammamap [256] |
float | gam = 2.0 |
string | infname = ((void *)0) |
rle_hdr | hdr |
boolean | linear_flag = 0 |
boolean | gamma_flag = 0 |
boolean | dummy |
string | display_name = "/dev/crt" |
string | driver_name = "hp98705" |
boolean | pos_flag |
int | pic_x = 0 |
int | pic_y = 0 |
int | dev_color_map_size |
int | put_mode |
int | n_colmap_colors |
static starbase_color_type | colmap [216] |
float | r_base_color = 1.0 |
float | g_base_color = 1.0 |
float | b_base_color = 1.0 |
int | picture_fd |
typedef unsigned char starbase_color_index_type |
direct_setup | ( | ) |
Definition at line 399 of file getbob.c.
References hdr, pic_x, pic_y, picture_fd, put_mode, rle_hdr::xmax, and rle_hdr::ymax.
init_8_bit_color_map | ( | ) |
Definition at line 187 of file getbob.c.
References colmap, divN, dm16, errN, make_square(), and n_colmap_colors.
init_gamma_map | ( | ) |
init_monochrome_color_map | ( | int | ncolors | ) |
main | ( | int | argc, |
argv | |||
) |
Definition at line 107 of file getbob.c.
|
static |
Definition at line 96 of file getbob.c.
Referenced by init_8_bit_color_map().
starbase_color_index_type dest_pixels[1023] |
int errN[256] |
Definition at line 61 of file getbob.c.
Referenced by init_8_bit_color_map(), init_8_bit_colour_map(), and init_monochrome_colour_map().
float gam = 2.0 |
Definition at line 65 of file getbob.c.
Referenced by borrow_color_map(), init_gamma_map(), and window_color_map().
boolean linear_flag = 0 |
Definition at line 74 of file getbob.c.
Referenced by init_gamma_map().
int n_colmap_colors |
Definition at line 95 of file getbob.c.
Referenced by init_8_bit_color_map().
int pic_x = 0 |
Definition at line 85 of file getbob.c.
Referenced by direct_setup().
int pic_y = 0 |
Definition at line 86 of file getbob.c.
Referenced by direct_setup().
int put_mode |
Definition at line 92 of file getbob.c.
Referenced by direct_setup().