png_set_compression_window_bits

Name

png_set_compression_window_bits -- set PNG compression window size

Synopsis

#include <png.h>

void png_set_compression_window_bits(png_structp png_ptr, int window_bits);

Description

This interface shall set the PNG compression window size.

The parameter window_bits corresponds directly to the windowBits parameter of the libz deflateInit2_() interface. The value of this parameter equals the base 2 logarithm of the window size to use, and must be a value between 8 and 15.