This repository has been archived on 2026-05-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Projet-C-Huffman/main_compress.h

23 lines
No EOL
724 B
C

#ifndef __MAIN_COMPRESS__
#define __MAIN_COMPRESS__
#include <stdio.h>
#include "arbre_de_codage/arbre_binaire.h"
#include "gestion_des_fichiers/gestion_fichiers.h"
struct lexique{ //Struct permettant d'associer une lettre et son code
char lettre;
char code[256]; //N'ayant
};
typedef struct lexique lex;
typedef struct lexique* plex;
arbre huffman(arbre T[]);
void frequence(arbre T[], FILE *file);
void tri_tab(arbre T[],int n);
void afficher_tab(arbre T[], int n);
void init_tab(arbre T[], int n);
void get_lexique(FILE *file, plex Code[], arbre huff);
void init_codage(plex Code[], int n);
void decompression(arbre a,Bin_file*input);
#endif