char *targetfile; /* Nombre del archivo comprimido */
long volsize; /* Tamanio de volumen para multivol */
char bychunk; /* 0 works byfile, 1 works bychunk */
- char preloadfreq; /* 1 Freqtable has been preloaded (bychunk | canonic) */
+ char canonic; /* 1 Huffman Canonico con preloaded freqtable */
t_freq *freqtable; /* Tabla de frecuencias */
t_freq sumfreq; /* Frecuencia total acumulada */
SHUFFNODE *codetree; /* Puntero al arbol de codigos prefijos */
void shuff_deinit_decoder(HUFF_STATE *shuff);
int shuff_encode_file(HUFF_STATE *shuff);
int shuff_decode_file(HUFF_STATE *shuff);
+int shuff_scanfreq_chunk(HUFF_STATE *chunkshuff, char* chunk, int chunksize);
+int shuff_decode_chunk(HUFF_STATE *shuff, char *chunk, int chunksize, int *decodedbytes);
+int shuff_savemodel(HUFF_STATE *shuff);
+int shuff_loadmodel(HUFF_STATE *shuff, char *modelfile);
#endif /* _STATICHUFF_H_ */