zstdCompressCore - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#include "zstd_compress.hpp"
template <
    int BLOCK_SIZE,
    int LZWINDOW_SIZE,
    int MIN_BLCK_SIZE,
    int PARALLEL_HUFFMAN = 8,
    int PARALLEL_LIT_STREAMS = 4,
    int MIN_MATCH = 3
    >
void zstdCompressCore (
    hls::stream <IntVectorStream_dt <8, 1>>& inStream,
    hls::stream <IntVectorStream_dt <8, 4>>& outStream
    )

This module compresses the input file read from input stream. It produces the ZSTD compressed data at the output stream.

Parameters:

BLOCK_SIZE ZStd block size
LZWINDOW_SIZE LZ77 history size or Window size
MIN_BLCK_SIZE Minimum block size, less than that will be considered stored block
PARALLEL_HUFFMAN Number of Huffman encoding units used
PARALLEL_LIT_STREAMS Number of parallel literal streams encoded using huffman
MIN_MATCH Minimum match in LZ77
inStream input stream
outStream output stream