png_set_compression_strategy

Name

png_set_compression_strategy -- set PNG compression strategy

Synopsis

#include <png.h>

void png_set_compression_strategy(png_structp png_ptr, int strategy);

Description

This interface shall set the PNG compression strategy.

The parameter png_ptr shall specify the PNG file to compress.

The parameter strategy corresponds directly to the strategy parameter of the libz deflateInit2_() interface. This parameter shall specify the PNG compression strategy to use: one of Z_DEFAULT_STRATEGY, Z_FILTERED, and Z_HUFFMAN_ONLY.