diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-10-01 10:40:39 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-10-01 10:44:15 +0800 |
commit | be9144f843df829fd2529c7ebf518749856eab90 (patch) | |
tree | 9ed567eb22ebb03a3169dd0f86f4d7aaf9e7f484 /csrc/mkf/mkf.h | |
parent | e3411dcbf0f8cfee057011ea29ce87654d74a3c1 (diff) | |
download | rich4-be9144f843df829fd2529c7ebf518749856eab90.tar.xz |
move mkf source to mkf/
Diffstat (limited to 'csrc/mkf/mkf.h')
-rw-r--r-- | csrc/mkf/mkf.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/csrc/mkf/mkf.h b/csrc/mkf/mkf.h new file mode 100644 index 0000000..ef1fa38 --- /dev/null +++ b/csrc/mkf/mkf.h @@ -0,0 +1,22 @@ +#include <stdint.h> + +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]; +}; + |