Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
#include <stdio.h>
#include <math.h>
#include <graphics/grafix.h>
#include <graphics/window.h>
#include <graphics/control.h>
#include <graphics/events.h>
#include <sys/ioctl.h>
#include <machine/graphics.h>
#include "rle.h"
Go to the source code of this file.
Macros | |
#define | RASTERSIZE_LIM 1280 |
#define | MONOCHROME_MODE 1 |
#define | EIGHT_BIT_COLOUR_MODE 2 |
#define | MONOCHROME_ENTRIES 128 |
#define | DMAP(v, x, y) (errN[v]>dm16[x][y] ? divN[v]+1 : divN[v]) |
#define | WriteCLT(cltp) (ioctl (_gdev, GTIOCSCLT, &(cltp))) |
#define | ReadCLT(cltp) (ioctl (_gdev, GTIOCGCLT, &(cltp))) |
Typedefs | |
typedef int | boolean |
Functions | |
main (int argc, argv) | |
init_gamma_map () | |
init_8_bit_colour_map () | |
init_monochrome_colour_map () | |
init_24_bit_colour_map () | |
put_line_8 (int yscan) | |
put_line_mono (int yscan) | |
write_colour_map () | |
write_scanline (int yscan) | |
translate_bits (BitMapPtr db, Rect dr) | |
EventLoop () | |
MyClose () | |
MyActivate () | |
Variables | |
rle_hdr * | hdr |
unsigned char | scanline [4][1280] |
unsigned char * | rows [4] |
unsigned char | dest_pixels [1280] |
BitMap | scanbitmap |
Rect | trandr |
int | dm16 [16][16] |
int | errN [256] |
int | divN [256] |
int | gammamap [256] |
float | gam = 2.0 |
boolean | linear_flag = FALSE |
boolean | gamma_flag = FALSE |
boolean | all_colours_flag = FALSE |
int | put_mode = 2 |
int | n_colmap_colours |
int | colmap [256][3] |
WindowPtr | rle_window |
EventRecord | myEvent |
WindowPtr | whichWindow |
Point | myPt |
int | thePart |
boolean | isActive = FALSE |
int | window_size_x |
int | window_size_y |
boolean | debug_flag = FALSE |
boolean | reverse_flag = FALSE |
boolean | onec_threem_mode = FALSE |
Definition at line 310 of file get_orion.c.
#define EIGHT_BIT_COLOUR_MODE 2 |
Definition at line 26 of file get_orion.c.
#define MONOCHROME_ENTRIES 128 |
Definition at line 27 of file get_orion.c.
#define MONOCHROME_MODE 1 |
Definition at line 25 of file get_orion.c.
#define RASTERSIZE_LIM 1280 |
Definition at line 24 of file get_orion.c.
#define ReadCLT | ( | cltp | ) | (ioctl (_gdev, GTIOCGCLT, &(cltp))) |
Definition at line 434 of file get_orion.c.
#define WriteCLT | ( | cltp | ) | (ioctl (_gdev, GTIOCSCLT, &(cltp))) |
Definition at line 433 of file get_orion.c.
Definition at line 31 of file get_orion.c.
EventLoop | ( | ) |
Definition at line 566 of file get_orion.c.
init_24_bit_colour_map | ( | ) |
Definition at line 289 of file get_orion.c.
References rle_hdr::cmap, rle_hdr::cmaplen, colmap, hdr, and n_colmap_colours.
init_8_bit_colour_map | ( | ) |
Definition at line 244 of file get_orion.c.
References colmap, dithermap(), divN, dm16, errN, and n_colmap_colours.
init_gamma_map | ( | ) |
Definition at line 228 of file get_orion.c.
init_monochrome_colour_map | ( | ) |
Definition at line 264 of file get_orion.c.
References bwdithermap(), colmap, divN, dm16, errN, and n_colmap_colours.
main | ( | int | argc, |
argv | |||
) |
Definition at line 114 of file get_orion.c.
MyActivate | ( | ) |
Definition at line 617 of file get_orion.c.
MyClose | ( | ) |
Definition at line 610 of file get_orion.c.
put_line_8 | ( | int | yscan | ) |
Definition at line 318 of file get_orion.c.
put_line_mono | ( | int | yscan | ) |
Definition at line 380 of file get_orion.c.
translate_bits | ( | BitMapPtr | db, |
Rect | dr | ||
) |
Definition at line 511 of file get_orion.c.
write_colour_map | ( | ) |
Definition at line 442 of file get_orion.c.
References all_colours_flag, colmap, gammamap, and n_colmap_colours.
write_scanline | ( | int | yscan | ) |
Definition at line 475 of file get_orion.c.
Definition at line 60 of file get_orion.c.
Referenced by write_colour_map().
int colmap[256][3] |
Definition at line 67 of file get_orion.c.
Definition at line 79 of file get_orion.c.
unsigned char dest_pixels[1280] |
Definition at line 40 of file get_orion.c.
int divN[256] |
Definition at line 51 of file get_orion.c.
int dm16[16][16] |
Definition at line 48 of file get_orion.c.
int errN[256] |
Definition at line 51 of file get_orion.c.
float gam = 2.0 |
Definition at line 55 of file get_orion.c.
Definition at line 59 of file get_orion.c.
int gammamap[256] |
Definition at line 54 of file get_orion.c.
rle_hdr* hdr |
Definition at line 34 of file get_orion.c.
Definition at line 75 of file get_orion.c.
Definition at line 58 of file get_orion.c.
EventRecord myEvent |
Definition at line 71 of file get_orion.c.
Point myPt |
Definition at line 73 of file get_orion.c.
int n_colmap_colours |
Definition at line 66 of file get_orion.c.
Referenced by init_24_bit_colour_map(), init_8_bit_colour_map(), init_monochrome_colour_map(), and write_colour_map().
Definition at line 86 of file get_orion.c.
int put_mode = 2 |
Definition at line 63 of file get_orion.c.
Definition at line 82 of file get_orion.c.
WindowPtr rle_window |
Definition at line 70 of file get_orion.c.
unsigned char * rows[4] |
Definition at line 37 of file get_orion.c.
BitMap scanbitmap |
Definition at line 43 of file get_orion.c.
unsigned char scanline[4][1280] |
Definition at line 37 of file get_orion.c.
int thePart |
Definition at line 74 of file get_orion.c.
Rect trandr |
Definition at line 44 of file get_orion.c.
WindowPtr whichWindow |
Definition at line 72 of file get_orion.c.
int window_size_x |
Definition at line 76 of file get_orion.c.
int window_size_y |
Definition at line 76 of file get_orion.c.