哈夫曼编/译码器
2017-01-04 13:10:48 5 举报
AI智能生成
哈夫曼编译码器的函数分层
作者其他创作
大纲/内容
界面层
UI_Entrance.c
void UI_Entrance(void);
UI_ShowMenu.c
void UI_ShowMenu(void);
操作层
Handle_Huff.c
int Handle_GetHuffStringLen(HUFFMAN_TABLE *Huf, int alphaaccount);
void Handle_ShowHuffTree(HUFFMAN_TABLE*Huf, int alphaaccount);
Handle_Freq.c
int Handle_GetFreq(FILE *fp, FREQ **freq, int *alphaIndex);
int Handle_SelectMinFreq(HUFFMAN_TABLE *Huf, int account);
Handle_Enci.c
void Handle_CodeFile(HUFFMAN_TABLE *Huf, int *alphaHuffindex, char *sourceFilename, char *enciName);
void Handle_DecodeFile(HUFFMAN_TABLE*Huf, char* enciName, int alphaaccount);
void Handle_CompareFile(char *File1, char *File2);
Handle_Comp
int Handle_CodingString(HUFFMAN_TABLE *Huf, int alphaaccount,FREQ *freq, int *alphaIndex, char *sourceFilename, char *enciName);
void Handle_DecodingString(HUFFMAN_TABLE*Huf, char* enciName, char* sourceFileName, int alphaaccount, int bit);
构建层
BuildHuffman.c
HUFFMAN_TABLE *Build_InitHuffTree(FREQ *freq, int alphaaccount);
HUFFMAN_TABLE *Build_CreateHuffTree(FREQ *freq, int alphaaccount);
void Build_MakeHuffmanCode(HUFFMAN_TABLE *Huf,int root, int codeIndex, char *code);
0 条评论
下一页