usaa25/sk1/compressor.h
2026-02-07 01:44:33 +01:00

25 lines
375 B
C

#ifndef COMPRESSOR_H
#define COMPRESSOR_H
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define SYMBOLS 256
typedef struct HuffmanNode {
unsigned char symbol;
uint32_t freq;
struct HuffmanNode *left, *right;
} HuffmanNode;
int compress_file(const char *infile, const char *outfile);
int decompress_file(const char *infile, const char *outfile);
#endif