mirror of
https://github.com/intel/isa-l.git
synced 2025-10-28 11:31:51 +01:00
igzip: Add reset functions for both deflate and inflate.
Change-Id: I8677a4365ac5c2343751660176f3b2eb4746ddfe Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
committed by
Xiaodong Liu
parent
7137c4a5be
commit
34c341db35
@@ -294,6 +294,7 @@ struct isal_zstate {
|
||||
uint8_t tmp_out_buff[16]; //!< temporary array
|
||||
uint32_t tmp_out_start; //!< temporary variable
|
||||
uint32_t tmp_out_end; //!< temporary variable
|
||||
uint32_t has_wrap_hdr; //!< keeps track of wrapper header
|
||||
uint32_t has_eob; //!< keeps track of eob on the last deflate block
|
||||
uint32_t has_eob_hdr; //!< keeps track of eob hdr (with BFINAL set)
|
||||
uint32_t has_hist; //!< flag to track if there is match history
|
||||
@@ -479,6 +480,17 @@ int isal_create_hufftables_subset(struct isal_hufftables * hufftables,
|
||||
*/
|
||||
void isal_deflate_init(struct isal_zstream *stream);
|
||||
|
||||
/**
|
||||
* @brief Reinitialize compression stream data structure. Performs the same
|
||||
* action as isal_deflate_init, but does not change user supplied input such as
|
||||
* the level, flush type, compression wrapper (like gzip), hufftables, and
|
||||
* end_of_stream_flag.
|
||||
*
|
||||
* @param stream Structure holding state information on the compression streams.
|
||||
* @returns none
|
||||
*/
|
||||
void isal_deflate_reset(struct isal_zstream *stream);
|
||||
|
||||
/**
|
||||
* @brief Set stream to use a new Huffman code
|
||||
*
|
||||
@@ -622,6 +634,14 @@ int isal_deflate_stateless(struct isal_zstream *stream);
|
||||
*/
|
||||
void isal_inflate_init(struct inflate_state *state);
|
||||
|
||||
/**
|
||||
* @brief Reinitialize decompression state data structure
|
||||
*
|
||||
* @param state Structure holding state information on the compression streams.
|
||||
* @returns none
|
||||
*/
|
||||
void isal_inflate_reset(struct inflate_state *state);
|
||||
|
||||
/**
|
||||
* @brief Set decompression dictionary to use
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user