#include "lz_optional.hpp"
template < int MAX_MATCH_LEN, int BOOSTER_OFFSET_WINDOW = 16 * 1024, int LEFT_BYTES = 64 > void lzBooster ( hls::stream <compressd_dt>& inStream, hls::stream <compressd_dt>& outStream, uint32_t input_size )
This module helps in improving the compression ratio. Finds a better match length by performing more character matches with supported max match, while maintaining an offset window. Booster offset Window template argument (default value is 16K) internally consume BRAM memory to implement history window. Higher the booster value can give better compression ratio but will consume more BRAM resources.
Parameters:
MAX_MATCH_LEN | maximum length allowed for character match |
BOOSTER_OFFSET_WINDOW | offset window to store/match the character |
inStream | input stream 32bit per read |
outStream | output stream 32bit per write |
input_size | input size |
left_bytes | last 64 left over bytes |