Debian Codegraph @

src/codec_cdfl.h

raw symbols SCIP
1 #ifndef LIBCHDR_CODEC_CDFL_H
2 #define LIBCHDR_CODEC_CDFL_H
3
4 #include <stdint.h>
5
6 #include "../include/libchdr/chd.h"
7 #include "../include/libchdr/chdconfig.h"
8 #include "../include/libchdr/flac.h"
9 #include "codec_zlib.h"
10
11 /* codec-private data for the CDFL codec */
12 typedef struct _cdfl_codec_data cdfl_codec_data;
13 struct _cdfl_codec_data {
14 /* internal state */
15 int swap_endian;
16 flac_decoder decoder;
17 #if WANT_SUBCODE
18 zlib_codec_data subcode_decompressor;
19 #endif
20 uint8_t* buffer;
21 };
22
23 /* cdfl compression codec */
24 chd_error cdfl_codec_init(void* codec, uint32_t hunkbytes);
25 void cdfl_codec_free(void* codec);
26 chd_error cdfl_codec_decompress(void *codec, const uint8_t *src, uint32_t complen, uint8_t *dest, uint32_t destlen);
27
28 #endif /* LIBCHDR_CODEC_CDFL_H */