Name

deflateTune   - Fine tune deflate's internal compression parameters
 

Synopsis

int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain);

Detailed Description

Fine tune deflate's internal compression parameters. This should only be used by someone who understands the algorithm used by zlib's deflate for searching for the best matching string, and even then only by the most fanatic optimizer trying to squeeze out the last compressed bit for their specific input data. Read the deflate.c source code for the meaning of the max_lazy, good_length, nice_length, and max_chain parameters.

deflateTune() can be called after deflateInit() or deflateInit2()


Parameters

z_streamp strm stream of data
int good_length reduce lazy search above this match length
int max_lazy do not perform lazy search above this match length
int nice_length quit search above this match length
int max_chain  
 

Return value

int ZEXPORT deflateTune returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream

 

 

Feedback

For additional information or queries on this page send feedback

© 2008-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.

Top