Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
#include <stdio.h>
#include <intuition/intuition.h>
#include <libraries/dos.h>
#include <exec/types.h>
#include <exec/memory.h>
#include <graphics/gfxbase.h>
#include <graphics/view.h>
#include <iff.h>
#include <rle.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
Go to the source code of this file.
Data Structures | |
struct | cuse |
Macros | |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
#define | ABS(x) ((x) >= 0 ? (x) : -(x)) |
#define | MAX(x, y) ((x) > (y) ? (x) : (y)) |
#define | index(r, g, b) ((((r) >> 4) << 8) | (((g) >> 4) << 4) | ((b) >> 4)) |
#define | rdist(a, b) ((ABS (((cusage[a].i >> 8) & 0xf) - ((cusage[b].i >> 8) & 0xf))) * 30) |
#define | gdist(a, b) ((ABS (((cusage[a].i >> 4) & 0xf) - ((cusage[b].i >> 4) & 0xf))) * 59) |
#define | bdist(a, b) ((ABS ((cusage[a].i & 0xf) - (cusage[b].i & 0xf))) * 11) |
#define | mapx(x) (x + offsetx) |
#define | mapy(y) (sh - (y) - 1 - offsety) |
#define | fmapy(y) (y + offsety) |
#define | inside(x, y) ((x) >= 0 && (y) >= 0 && (x) < sw && (y) < sh) |
#define | EXACT(x) (x) |
#define | RED(x) ((2 << 4) | x) |
#define | GREEN(x) ((3 << 4) | x) |
#define | BLUE(x) ((1 << 4) | x) |
#define | SQ(x) (SQtmp = (x), SQtmp * SQtmp) |
#define | MAX_X 362 |
#define | MAX_Y_NTSC 241 |
#define | MAX_Y_PAL 283 |
#define | BASENAME(x) |
#define | MENUITEMS 3 |
#define | FREQW 148 |
#define | FREQH 28 |
#define | _abort CXBRK |
#define | OptSetAPen1(rp, col) curcol1 = (col); if(curcol1) SetAPen((rp), curcol1) |
#define | OptSetAPen2(rp, col) curcol2 = (col); if(curcol2) SetAPen((rp), curcol2) |
#define | OptSetAPen3(rp, col) curcol3 = (col); if(curcol3) SetAPen((rp), curcol3) |
#define | OptWritePixel1(rp, x, y) if(curcol1) WritePixel((rp), (x), (y)) |
#define | OptWritePixel2(rp, x, y) if(curcol2) WritePixel((rp), (x), (y)) |
#define | OptWritePixel3(rp, x, y) if(curcol3) WritePixel((rp), (x), (y)) |
Functions | |
struct Window * | OpenWindow () |
struct Screen * | OpenScreen () |
struct Library * | OpenLibrary () |
char * | mktemp (char *) |
rle_pixel ** | buildmap () |
UBYTE | handleIDCMP (void) |
void | main (int, char **) |
int | compare (struct cuse *, struct cuse *) |
int | find_most_used (void) |
int | display_rle (void) |
void | show_rgb (void) |
int | CXBRK (void) |
void | AdjustScreen (register struct Screen *, int *, int *) |
void | save (void) |
void | FixColors (void) |
void | ResetColors (void) |
int | CalcWidth (int) |
int | CalcHAMWidth (int) |
int | CalcHeight (int, int) |
if (tfd) | |
if (w1) | |
if (w2) | |
if (w3) | |
if (s1) | |
Variables | |
struct GfxBase * | GfxBase = ((void *)0) |
struct IntuitionBase * | IntuitionBase = ((void *)0) |
struct Library * | IFFBase = ((void *)0) |
static struct NewScreen | screen |
static struct Image | img |
static struct Gadget | CloseGadget |
static struct NewWindow | window |
static struct cuse | cusage [4096] |
static struct Window * | w1 = ((void *)0) |
static struct Window * | w2 = ((void *)0) |
static struct Window * | w3 = ((void *)0) |
static struct RastPort * | rp1 = ((void *)0) |
static struct RastPort * | rp2 = ((void *)0) |
static struct RastPort * | rp3 = ((void *)0) |
static struct Screen * | s1 = ((void *)0) |
static struct Screen * | s2 = ((void *)0) |
static struct Screen * | s3 = ((void *)0) |
static struct ViewPort * | vp1 = ((void *)0) |
static struct ViewPort * | vp2 = ((void *)0) |
static struct ViewPort * | vp3 = ((void *)0) |
static rle_pixel * | sl [3] |
static rle_pixel ** | cmap |
static unsigned int | R [32] |
static unsigned int | G [32] |
static unsigned int | B [32] |
static char * | tfile |
static char * | infile = ((void *)0) |
static FILE * | ifd = ((void *)0) |
static FILE * | tfd = ((void *)0) |
static int | width |
static int | height |
static int | depth |
static int | nused |
static int | sw |
static int | sh |
static int | sd |
static int | isham |
static int | offsetx |
static int | offsety |
static int | bw =0 |
static int | threescreens =0 |
static int | havereq =0 |
static int | havemenu =0 |
static int | flip =0 |
static int | forceham =0 |
static USHORT * | Ptr = ((void *)0) |
static USHORT | RenderPtr [] |
static int | SQtmp |
static struct IntuiText | txt [] |
static struct MenuItem | actions [] |
static struct Menu | menu |
static char | fnam [80] = {'\0'} |
static char | ufnam [80] = {'\0'} |
static struct StringInfo | fgadinfo |
static struct IntuiText | ftxt |
static SHORT | fbcoord [] = {1, 1, 146, 1, 146, 26, 1, 26, 1, 1} |
static struct Border | fbord |
static struct Gadget | fgad |
static struct Requester | freq |
int | curcol1 |
int | curcol2 |
int | curcol3 |
static int | x |
static int | y |
static unsigned char | r |
static unsigned char | g |
static unsigned char | b |
int | |
#define BASENAME | ( | x | ) |
Definition at line 12 of file AdjustScreen.c.
rle_pixel** buildmap | ( | ) |
int CXBRK | ( | void | ) |
int display_rle | ( | void | ) |
Definition at line 695 of file getami.c.
References b, cmap, depth, g, height, rle_hdr::ncolors, offsetx, offsety, r, rle_hdr::rle_file, rle_get_setup(), rle_getcom(), rle_getrow(), sh, sl, sw, tfd, width, x, rle_hdr::xmax, rle_hdr::xmin, y, rle_hdr::ymax, and rle_hdr::ymin.
int find_most_used | ( | void | ) |
Definition at line 540 of file getami.c.
References rle_hdr::alpha, B, rle_hdr::background, buildmap(), bw, cmap, rle_hdr::cmap, rle_hdr::cmaplen, rle_hdr::comments, depth, rle_hdr::dispatch, G, height, cuse::i, ifd, cuse::j, rle_hdr::ncmap, rle_hdr::ncolors, nused, R, rle_dflt_hdr, rle_hdr::rle_file, rle_get_setup(), rle_getcom(), rle_getrow(), rle_put_setup(), rle_putcom(), rle_putrow(), RUN_DISPATCH, sl, tfd, threescreens, width, rle_hdr::xmax, rle_hdr::xmin, rle_hdr::ymax, and rle_hdr::ymin.
void FixColors | ( | void | ) |
UBYTE handleIDCMP | ( | void | ) |
if | ( | w1 | ) |
if | ( | w2 | ) |
if | ( | w3 | ) |
void main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 229 of file getami.c.
References B, bw, flip, fnam, forceham, G, ifd, IFFBase, infile, IntuitionBase, isham, mktemp(), nused, optarg, optind, R, s1, s2, s3, sd, sh, sw, tfd, tfile, threescreens, vp1, vp2, vp3, and width.
char* mktemp | ( | char * | ) |
struct Library* OpenLibrary | ( | ) |
struct Screen* OpenScreen | ( | ) |
struct Window* OpenWindow | ( | ) |
void ResetColors | ( | void | ) |
void save | ( | void | ) |
Definition at line 982 of file getami.c.
References fnam, IFFBase, and threescreens.
void show_rgb | ( | void | ) |
|
static |
|
static |
Definition at line 98 of file getami.c.
Referenced by find_most_used(), FixColors(), main(), ResetColors(), and show_rgb().
|
static |
Definition at line 692 of file getami.c.
Referenced by display_rle(), and show_rgb().
|
static |
Definition at line 106 of file getami.c.
Referenced by find_most_used(), main(), and show_rgb().
|
static |
|
static |
Definition at line 97 of file getami.c.
Referenced by display_rle(), and find_most_used().
|
static |
|
static |
Definition at line 101 of file getami.c.
Referenced by display_rle(), and find_most_used().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 106 of file getami.c.
Referenced by main(), and show_rgb().
|
static |
|
static |
|
static |
|
static |
Definition at line 98 of file getami.c.
Referenced by find_most_used(), FixColors(), main(), ResetColors(), and show_rgb().
|
static |
Definition at line 692 of file getami.c.
Referenced by display_rle(), and show_rgb().
|
static |
Definition at line 101 of file getami.c.
Referenced by display_rle(), and find_most_used().
|
static |
Definition at line 100 of file getami.c.
Referenced by find_most_used(), and main().
|
static |
int |
|
static |
Definition at line 101 of file getami.c.
Referenced by main(), and show_rgb().
|
static |
|
static |
Definition at line 101 of file getami.c.
Referenced by find_most_used(), main(), and show_rgb().
|
static |
Definition at line 105 of file getami.c.
Referenced by display_rle().
|
static |
Definition at line 105 of file getami.c.
Referenced by display_rle().
|
static |
Definition at line 98 of file getami.c.
Referenced by find_most_used(), FixColors(), main(), ResetColors(), and show_rgb().
|
static |
Definition at line 692 of file getami.c.
Referenced by display_rle(), and show_rgb().
|
static |
|
static |
Definition at line 91 of file getami.c.
Referenced by FixColors(), and show_rgb().
|
static |
Definition at line 91 of file getami.c.
Referenced by FixColors(), and show_rgb().
|
static |
Definition at line 91 of file getami.c.
Referenced by FixColors(), and show_rgb().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 101 of file getami.c.
Referenced by display_rle(), and main().
|
static |
Definition at line 96 of file getami.c.
Referenced by display_rle(), and find_most_used().
|
static |
Definition at line 101 of file getami.c.
Referenced by display_rle(), and main().
|
static |
Definition at line 100 of file getami.c.
Referenced by display_rle(), find_most_used(), if(), and main().
|
static |
Definition at line 106 of file getami.c.
Referenced by find_most_used(), FixColors(), main(), ResetColors(), save(), and show_rgb().
|
static |
|
static |
Definition at line 95 of file getami.c.
Referenced by FixColors(), main(), and ResetColors().
|
static |
Definition at line 95 of file getami.c.
Referenced by FixColors(), main(), and ResetColors().
|
static |
Definition at line 95 of file getami.c.
Referenced by FixColors(), main(), and ResetColors().
|
static |
Definition at line 101 of file getami.c.
Referenced by display_rle(), find_most_used(), and main().
|
static |
|
static |
Definition at line 691 of file getami.c.
Referenced by display_rle(), and show_rgb().
|
static |
Definition at line 691 of file getami.c.
Referenced by display_rle(), and show_rgb().