| 1 |
#ifndef LIBCHDR_CODEC_HUFF_H |
| 2 |
#define LIBCHDR_CODEC_HUFF_H |
| 3 |
|
| 4 |
#include <stdint.h> |
| 5 |
|
| 6 |
#include "../include/libchdr/chd.h" |
| 7 |
|
| 8 |
struct huffman_decoder; |
| 9 |
|
| 10 |
|
| 11 |
typedef struct _huff_codec_data huff_codec_data; |
| 12 |
struct _huff_codec_data |
| 13 |
{ |
| 14 |
struct huffman_decoder* decoder; |
| 15 |
}; |
| 16 |
|
| 17 |
|
| 18 |
chd_error huff_codec_init(void *codec, uint32_t hunkbytes); |
| 19 |
void huff_codec_free(void *codec); |
| 20 |
chd_error huff_codec_decompress(void *codec, const uint8_t *src, uint32_t complen, uint8_t *dest, uint32_t destlen); |
| 21 |
|
| 22 |
#endif |