Home | History | Annotate | Download | only in libpng

Lines Matching refs:compression

258       unsigned int z_cmf = data[0];  /* zlib compression method and flags */
293 /* Initialize the compressor for the appropriate type of compression. */
438 /* Clean up (or trim) a linked list of compression buffers. */
487 /* Compress the data in the compression state input */
509 compression buffers, we need a loop here to avoid overflowing a
833 png_warning(png_ptr, "Invalid compression type specified");
1010 /* First time. Ensure we have a temporary buffer for compression and
1194 png_byte new_name[81]; /* 1 byte for the compression byte */
1227 /* Make sure we include the NULL after the name and the compression type */
1232 /* Allow for keyword terminator and compression byte */
1622 png_size_t text_len, int compression)
1631 if (compression == PNG_TEXT_COMPRESSION_NONE)
1637 if (compression != PNG_TEXT_COMPRESSION_zTXt)
1638 png_error(png_ptr, "zTXt: invalid compression type");
1645 /* Add the compression method and 1 for the keyword separator. */
1673 png_write_iTXt(png_structrp png_ptr, int compression, png_const_charp key,
1688 /* Set the compression flag */
1689 switch (compression)
1693 compression = new_key[++key_len] = 0; /* no compression */
1698 compression = new_key[++key_len] = 1; /* compressed */
1702 png_error(png_ptr, "iTXt: invalid compression");
1737 if (compression)
1760 if (compression)
2358 * (experimental and can in theory improve compression), and the "zlib