#include "huffman_encoder.hpp"
void huffmanEncoderStream ( hls::stream <IntVectorStream_dt <32, 1>>& inStream, hls::stream <DSVectorStream_dt <HuffmanCode_dt <c_maxBits>, 1>>& hufCodeInStream, hls::stream <DSVectorStream_dt <HuffmanCode_dt <c_maxBits>, 1>>& hufCodeOutStream )
This module does zlib/gzip dynamic huffman encoding.
Parameters:
inStream | input packet of 32bit size which contains either literal or match length and distance information. Example: [Literal (1 Byte) | ML (1 Byte) | DIST (2 Bytes)] |
hufCodeInStream | Huffman Codes input |
hufCodeOutStream | HuffmanCodes output |