Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
#include <stdio.h>
#include <math.h>
#include <sys/file.h>
#include <suntool/sunview.h>
#include <suntool/canvas.h>
#include "rle.h"
Go to the source code of this file.
Macros | |
#define | DMAP(v, x, y) (modN[v]>dm16[x][y] ? divN[v] + 1 : divN[v]) |
Functions | |
void | get_pic () |
void | create_window () |
void | init_color () |
void | map_rgb_to_bw () |
void | map_scanline () |
void | put_scanline () |
void | main (int argc, char **argv) |
void | get_pic (FILE *infile, char *infname, char *cmdname) |
void | create_window (int width, int height, char *name) |
void | map_scanline (rgb, int n, int s, int y,*line) |
void | put_scanline (unsigned char *scan, int width, int x, int y) |
void | map_rgb_to_bw (rle_pixel *red_row, rle_pixel *green_row, rle_pixel *blue_row, rle_pixel *bw_row, rle_pixel **map, int rowlen) |
Variables | |
static char | rcsid [] = "$Header: /l/spencer/src/urt/get/RCS/getsun.c,v 3.0.1.2 1992/04/30 14:05:10 spencer Exp $" |
int | dm16 [16][16] |
rle_pixel ** | in_cmap |
int | modN [256] |
int | divN [256] |
int | bwflag = 0 |
int | levels = 0 |
int | levelsq |
int | levelsc |
double | disp_gam = 2.5 |
double | img_gam = 1.0 |
int | iflag = 0 |
int | nscan |
int | nrow |
int | nbyte |
int | dbg = 0 |
unsigned char * | buffer |
Frame | frame |
Canvas | canvas |
Pixwin * | pw |
void create_window | ( | ) |
void get_pic | ( | ) |
void get_pic | ( | FILE * | infile, |
char * | infname, | ||
char * | cmdname | ||
) |
Definition at line 185 of file getsun.c.
void init_color | ( | ) |
Definition at line 477 of file getsun.c.
References bwdithermap(), bwflag, disp_gam, dithermap(), divN, dm16, levels, levelsc, levelsq, make_square(), and modN.
void main | ( | int | argc, |
char ** | argv | ||
) |
void map_rgb_to_bw | ( | ) |
void map_rgb_to_bw | ( | rle_pixel * | red_row, |
rle_pixel * | green_row, | ||
rle_pixel * | blue_row, | ||
rle_pixel * | bw_row, | ||
rle_pixel ** | map, | ||
int | rowlen | ||
) |
void map_scanline | ( | ) |
void put_scanline | ( | ) |