8 #import <appkit/Window.h>
9 #import <appkit/Panel.h>
10 #import <appkit/tiff.h>
45 NXRunAlertPanel(
"RLE ERROR",
"Can't open %s", NULL, NULL, NULL,
fileName);
52 NXRunAlertPanel(
"RLE ERROR",
"%s Not an RLE file ", NULL, NULL, NULL,
fileName);
67 NXRunAlertPanel(
"RLE ERROR",
"%s Malloc Error ", NULL, NULL, NULL,
fileName);
73 r = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
74 for (i =
ysize; i > 0; i--) {
81 r[j]=scan[0][row_pos];
88 r = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
89 g = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
90 b = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
91 for (i =
ysize; i > 0; i--) {
98 r[j]=scan[0][row_pos];
99 g[j]=scan[1][row_pos];
100 b[j]=scan[2][row_pos];
108 r = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
109 g = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
110 b = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
111 a = (
unsigned char *)NXZoneMalloc(newZone,ysize*xsize*(
sizeof(
unsigned char)));
113 for (i =
ysize; i > 0; i--) {
120 r[j]=scan[0] [row_pos];
121 g[j]=scan[1] [row_pos];
122 b[j]=scan[2] [row_pos];
123 a[j]=scan[-1][row_pos];
struct rle_hdr rle_file_hdr
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
void rle_row_free(rle_hdr *the_hdr, rle_pixel **scanp)
int rle_get_setup(rle_hdr *the_hdr)
int rle_row_alloc(rle_hdr *the_hdr, rle_pixel ***scanp)
int rle_getrow(rle_hdr *the_hdr, scanline)
FILE * rle_open_f_noexit(char *prog_name, char *file_name, char *mode)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
char windowIconName[1024]