summaryrefslogtreecommitdiff
path: root/csrc/mkf.h
blob: 3d5cbc4e2f2536f405a9d89b9c2330a4e71a030b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int load_mkf(const char *fn);
void unload_mkf(int mkf_idx);
char * read_mkf(int mkf_idx, int a1, char *buf, int *bufsize);

extern int pixel_fmt;

struct spr_smp
{
	char sig[4]; /* "SPR" or "SMP" */
	int32_t nchunk;
	int32_t start_offset;
	int32_t t3, t4; /* unused? */
	struct {
		/* in the file, it's the chunk size,
		 * after read_mkf(), it becomes the start address */
		int32_t chunk_sz;
		int32_t v2, v3; /* unused? */
	} chunk_tab[0];
};