Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::LibPNGParameters Struct Reference

Parameters that Kanzi passes to libpng to use when loading png image files. More...

#include <kanzi/core.ui/bitmap/bitmap_image.hpp>

Public Attributes

optional< uint32_t > chunkCacheMax
 Sets the maximum number of ancillary chunks in libpng. More...
 
optional< uint32_t > chunkMallocMax
 Sets the maximum amount of memory in bytes to allocate for a chunk in libpng. More...
 

Detailed Description

Parameters that Kanzi passes to libpng to use when loading png image files.

Since
Kanzi 3.9.3

Member Data Documentation

optional<uint32_t> kanzi::LibPNGParameters::chunkCacheMax

Sets the maximum number of ancillary chunks in libpng.

This parameter corresponds to the libpng function png_set_chunk_cache_max(). The PNG specification does not limit the number of ancillary chunks allowed in a PNG datastream. By default libpng imposes a limit of a total of 1000 sPLT, tEXt, iTXt, zTXt, and unknown chunks to be stored. If you do not set this optional parameter, Kanzi keeps the libpng defaults. To not limit the number of ancillary chunks, set this parameter to 0x7fffffffL.

optional<uint32_t> kanzi::LibPNGParameters::chunkMallocMax

Sets the maximum amount of memory in bytes to allocate for a chunk in libpng.

This parameter corresponds to the libpng function png_set_chunk_malloc_max(). By default libpng imposes a limit of 8 MB (8,000,000 bytes) on the amount of memory that a chunk other than IDAT can occupy, originally or when decompressed.

If you do not set this optional parameter, Kanzi keeps the libpng defaults.


The documentation for this struct was generated from the following file: