GrafX2 2.9.3227
The ultimate 256-color painting program
miscfileformats.c File Reference

Formats that aren't fully saving, either because of palette restrictions or other things. More...

#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "global.h"
#include "io.h"
#include "loadsave.h"
#include "loadsavefuncs.h"
#include "misc.h"
#include "struct.h"
#include "windows.h"
#include "oldies.h"
#include "fileformats.h"
#include "gfx2mem.h"
#include "gfx2log.h"
+ Include dependency graph for miscfileformats.c:

Data Structures

struct  T_PKM_Header
 
struct  T_CEL_Header1
 
struct  T_CEL_Header2
 
struct  T_KCF_Header
 
struct  T_FLIC_Header
 

Functions

void Test_PAL (T_IO_Context *context, FILE *file)
 
void Test_GPL (T_IO_Context *context, FILE *file)
 Test for GPL (Gimp Palette) file format. More...
 
static int skip_padding (FILE *file, int max_chars)
 skip the padding before a space-padded field. More...
 
void Load_GPL (T_IO_Context *context)
 Load GPL (Gimp Palette) file format. More...
 
void Save_GPL (T_IO_Context *context)
 Save GPL (Gimp Palette) file format. More...
 
void Load_PAL (T_IO_Context *context)
 
void Save_PAL (T_IO_Context *context)
 
void Test_PKM (T_IO_Context *context, FILE *file)
 
void Load_PKM (T_IO_Context *context)
 
void Find_recog (byte *recog1, byte *recog2)
 
void Save_PKM (T_IO_Context *context)
 
void Test_CEL (T_IO_Context *context, FILE *file)
 
void Load_CEL (T_IO_Context *context)
 
void Save_CEL (T_IO_Context *context)
 
void Test_KCF (T_IO_Context *context, FILE *file)
 
void Load_KCF (T_IO_Context *context)
 
void Save_KCF (T_IO_Context *context)
 
static void Load_FLI_Header (FILE *file, T_FLIC_Header *header)
 
void Test_FLI (T_IO_Context *context, FILE *file)
 Test for the Autodesk Animator FLI/FLC format. More...
 
void Load_FLI (T_IO_Context *context)
 Load file in the Autodesk Animator FLI/FLC format. More...
 
void Test_HGR (T_IO_Context *context, FILE *file)
 Test for an Apple II HGR or DHGR raw file. More...
 
void Load_HGR (T_IO_Context *context)
 Load HGR (280x192) or DHGR (560x192) Apple II pictures. More...
 
void Save_HGR (T_IO_Context *context)
 Save HGR (280x192) or DHGR (560x192) Apple II pictures. More...
 
static dword Read_HP48Address (const byte *buffer, int offset)
 HP48 addresses are 20bits (5 nibbles) offset is in nibble (half byte) More...
 
void Test_GRB (T_IO_Context *context, FILE *file)
 Test for a HP-48 Grob file. More...
 
void Load_GRB (T_IO_Context *context)
 

Detailed Description

Formats that aren't fully saving, either because of palette restrictions or other things.

Function Documentation

◆ skip_padding()

static int skip_padding ( FILE *  file,
int  max_chars 
)
static

skip the padding before a space-padded field.

References Read_byte().

Referenced by Load_GPL().

◆ Find_recog()

void Find_recog ( byte recog1,
byte recog2 
)

References Count_used_colors().

Referenced by Save_PKM().

◆ Load_FLI_Header()

◆ Read_HP48Address()

static dword Read_HP48Address ( const byte buffer,
int  offset 
)
static

HP48 addresses are 20bits (5 nibbles) offset is in nibble (half byte)

Referenced by Load_GRB(), and Test_GRB().