Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #ifndef HUFFMAN_CODE_H
  2. #define HUFFMAN_CODE_H
  3. #include "Structs.h"
  4. #include "tree.h"
  5.  
  6. Code* new_code(unsigned char* s, int size);
  7. void countFreq(int* freqTable, FILE* in);
  8. void base(Stack**stack, int* freqTable);
  9. void Resize(Code* buffer);
  10. unsigned char* copyCode(Code* buffer);
  11. void addBit(Code* buffer, int bit);
  12. void CodeTable(Code** codeTable, Tree* codeTree, Code* buffer);
  13. void writeBits(unsigned char bits, int count, BitStream* bitStream, FILE* out);
  14. void t_code(FILE* in, FILE* out, Code** codeTable, BitStream* bitStream);
  15. void writeSize(unsigned int size, FILE* out);
  16. void freeCodeTable(Code** codeTable);
  17. void code(FILE* in, FILE* out);
  18. unsigned char getBit(BitStream* bitStream, FILE* in);
  19. int readSize(FILE* in, unsigned int* size);
  20. void decodeText(Tree* codeTree, FILE* in, FILE* out, unsigned int size, BitStream* bitStream);
  21. void decode(FILE* in, FILE* out);
  22.  
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement