diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-28 10:26:17 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-28 10:26:17 +0800 |
commit | 8db05a1a311f5d196c14e7946a1c0e6c3603007f (patch) | |
tree | 2e353b7c66088c788bee55f887d55d6d75bd2e5d /csrc/mkf.h | |
parent | ced4f8d857dd37c3d3317dbb78b6e6798a747e63 (diff) | |
download | rich4-8db05a1a311f5d196c14e7946a1c0e6c3603007f.tar.xz |
restruct mkf functions
Diffstat (limited to 'csrc/mkf.h')
-rw-r--r-- | csrc/mkf.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/csrc/mkf.h b/csrc/mkf.h new file mode 100644 index 0000000..3d5cbc4 --- /dev/null +++ b/csrc/mkf.h @@ -0,0 +1,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]; +}; + |