Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
Go to the source code of this file.
Macros | |
#define | MAX(i, j) ( (i) > (j) ? (i) : (j) ) |
#define | MIN(i, j) ( (i) < (j) ? (i) : (j) ) |
#define | levels 8 /* Compute 3 bits per channel. */ |
#define | DMAP(v, x) (modN[v]>row_ptr[x] ? divN[v] + 1 : divN[v]) |
Functions | |
main (argc, char **argv) | |
get_pic (FILE *infile, char *infname, char cmdname) | |
update_pic () | |
map_scanline (rgb, n, y, Colorindex *line) | |
init_dither () | |
float | getgamma () |
makemap () | |
FILE * | configopen () |
float | gammacorrect () |
float | ungammacorrect () |
gammapcolor (strchr, int strchr r, int strchr g, int strchr b) | |
static | makegamtables () |
static | fixup (unsigned char *cptr) |
gamgetmcolor (strchr, unsigned short *r, unsigned short *g, unsigned short *b) | |
float | gammacorrect (float i, float gamma) |
float | ungammacorrect (float i, float gamma) |
newgamma () | |
newgamtables () | |
readgamtables () | |
setgamma (float gam) | |
getcolorbal (unsigned int *r, unsigned int *g, unsigned int *b) | |
setcolorbal (int r, int g, int b) | |
FILE * | configopen (name, mode) |
Variables | |
Colorindex | color_start = 512 |
Colorindex | bw_start = 128 |
long | window_number |
int | x_size |
int | y_size |
int | dbg = 0 |
int | forkflg = 0 |
int | bwflag = 0 |
Colorindex * | image |
int | modN [256] |
int | divN [256] |
int | dm16 [16][16] |
static unsigned char | rgamtable [256] |
static unsigned char | ggamtable [256] |
static unsigned char | bgamtable [256] |
static unsigned char | rungamtable [256] |
static unsigned char | gungamtable [256] |
static unsigned char | bungamtable [256] |
static short | firsted |
FILE * configopen | ( | ) |
#include "math.h" #include "port.h" #include "gl.h" #include "stdio.h"
#include "stdio.h" #include "port.h" #include "gl.h"
FILE* configopen | ( | name | , |
mode | |||
) |
gamgetmcolor | ( | strchr | , |
unsigned short * | r, | ||
unsigned short * | g, | ||
unsigned short * | b | ||
) |
float gammacorrect | ( | ) |
get_pic | ( | FILE * | infile, |
char * | infname, | ||
char | cmdname | ||
) |
Definition at line 88 of file getmex.c.
float getgamma | ( | ) |
NOTE: This is the makemap program from /usr/people/gifts/mextools/tools, with the gamma and getset routines from /usr/people/gifts/mextools/portlib appended. The only modification is that it only does the part of the map required here, and expands the RGB map to 512 colors.#include "gl.h" #include "gl2/port.h"
savecolors and restorecolors
Definition at line 569 of file getmex.c.
init_dither | ( | ) |
main | ( | argc | , |
char ** | argv | ||
) |
|
static |
Definition at line 442 of file getmex.c.
References bgamtable, bungamtable, ggamtable, gungamtable, rgamtable, and rungamtable.
makemap | ( | ) |
newgamma | ( | ) |
newgamtables | ( | ) |
Definition at line 516 of file getmex.c.
References bgamtable, bungamtable, ggamtable, gungamtable, rgamtable, and rungamtable.
readgamtables | ( | ) |
Definition at line 534 of file getmex.c.
References bgamtable, bungamtable, ggamtable, gungamtable, rgamtable, and rungamtable.
float ungammacorrect | ( | ) |
|
static |
Definition at line 421 of file getmex.c.
Referenced by makegamtables(), newgamtables(), and readgamtables().
|
static |
Definition at line 424 of file getmex.c.
Referenced by makegamtables(), newgamtables(), and readgamtables().
|
static |
Definition at line 425 of file getmex.c.
Referenced by newgamma().
|
static |
Definition at line 420 of file getmex.c.
Referenced by makegamtables(), newgamtables(), and readgamtables().
|
static |
Definition at line 423 of file getmex.c.
Referenced by makegamtables(), newgamtables(), and readgamtables().
|
static |
Definition at line 419 of file getmex.c.
Referenced by makegamtables(), newgamtables(), and readgamtables().
|
static |
Definition at line 422 of file getmex.c.
Referenced by makegamtables(), newgamtables(), and readgamtables().
int x_size |
Definition at line 25 of file getmex.c.
Referenced by convertgreylevels(), and update_pic().
int y_size |
Definition at line 25 of file getmex.c.
Referenced by convertgreylevels(), and update_pic().