GrafX2 2.9.3227
The ultimate 256-color painting program
|
Formats for the Atari ST line of machines. More...
#include <stdlib.h>
#include <string.h>
#include "fileformats.h"
#include "loadsavefuncs.h"
#include "io.h"
#include "misc.h"
#include "palette.h"
#include "gfx2log.h"
#include "gfx2mem.h"
#include "packbits.h"
Macros | |
#define | WORDS_EQU(p1, p2) (((p1)[0] == (p2)[0]) && ((p1)[1] == (p2)[1])) |
Functions | |
static void | PI4_16b_to_16p (const byte *src, byte *dest) |
8bpp Planar to chunky conversion. More... | |
static void | PI1_8b_to_16p (const byte *src, byte *dest) |
4bpp Planar to chunky conversion. More... | |
static void | PI2_4b_to_16p (const byte *src, byte *dest) |
2bpp Planar to chunky conversion. More... | |
static void | PI1_16p_to_8b (const byte *src, byte *dest) |
Chunky to 4bpp planar conversion. More... | |
static void | PI1_decode_palette (const byte *src, T_Components *palette) |
Decode the 16 colors Atari ST(E) palette. More... | |
void | PI1_code_palette (const T_Components *palette, byte *dest) |
Code a 16 colors Atari ST(E) palette. More... | |
static void | PI1_load_ranges (T_IO_Context *context, const byte *buffer, int size) |
Load color cycling data from a PI1 or PC1 image (Degas Elite format) More... | |
void | PI1_save_ranges (T_IO_Context *context, byte *buffer, int size) |
Saves color ranges from a PI1 or PC1 image (Degas Elite format) More... | |
void | Test_PI1 (T_IO_Context *context, FILE *file) |
Test for Degas file format. More... | |
void | Load_PI1 (T_IO_Context *context) |
Load Degas file format. More... | |
void | Save_PI1 (T_IO_Context *context) |
Save a PI1 Degas uncompressed picture. More... | |
static void | PC1_4bp_to_1line (const byte *src0, const byte *src1, const byte *src2, const byte *src3, byte *dest) |
4bpp planar to chunky conversion. More... | |
static void | PC1_1line_to_4bp (const byte *src, byte *dst0, byte *dst1, byte *dst2, byte *dst3) |
Convert 1 line of 320 pixel from chunky to 4bpp planar. More... | |
void | Test_PC1 (T_IO_Context *context, FILE *file) |
Test for Degas Elite Compressed format. More... | |
void | Load_PC1 (T_IO_Context *context) |
Load Degas Elite compressed files. More... | |
void | Save_PC1 (T_IO_Context *context) |
Save a Degas Elite compressed picture. More... | |
void | Test_NEO (T_IO_Context *context, FILE *file) |
NeoChrome Format : More... | |
void | Load_NEO (T_IO_Context *context) |
Load Neochrome file format. More... | |
void | Save_NEO (T_IO_Context *context) |
Save in NeoChrome format. More... | |
void | Test_TNY (T_IO_Context *context, FILE *file) |
void | Load_TNY (T_IO_Context *context) |
void | Save_TNY (T_IO_Context *context) |
Save in Tiny compressed format. More... | |
void | Test_CA1 (T_IO_Context *context, FILE *file) |
test for CrackArt format. More... | |
void | Load_CA1 (T_IO_Context *context) |
void | Save_CA1 (T_IO_Context *context) |
Save a 320x200 16c picture in CrackArt format. More... | |
Formats for the Atari ST line of machines.
#define WORDS_EQU | ( | p1, | |
p2 | |||
) | (((p1)[0] == (p2)[0]) && ((p1)[1] == (p2)[1])) |