libdragon
Loading...
Searching...
No Matches
aplib_dec_internal.h
1#ifndef LIBDRAGON_COMPRESS_APLIB_DEC_INTERNAL_H
2#define LIBDRAGON_COMPRESS_APLIB_DEC_INTERNAL_H
3
5#ifdef N64
6#define DECOMPRESS_APLIB_FULL_USE_ASM 1
7#else
8#define DECOMPRESS_APLIB_FULL_USE_ASM 0
9#endif
10
11#include <stdio.h>
12
13#define DECOMPRESS_APLIB_STATE_SIZE 348
14
15void decompress_aplib_init(void *state, int fd, int winsize);
16ssize_t decompress_aplib_read(void *state, void *buf, size_t len);
17void decompress_aplib_reset(void *state);
18
19#if DECOMPRESS_APLIB_FULL_USE_ASM
20int decompress_aplib_full_inplace(const uint8_t* in, size_t cmp_size, uint8_t *out, size_t size);
21#else
22void* decompress_aplib_full(const char *fn, int fd, size_t cmp_size, size_t size);
23#endif
24
25#endif