Lines Matching refs:compression
176 png_charp text, png_size_t text_len, int compression,
188 if (compression == PNG_TEXT_COMPRESSION_NONE)
195 if (compression >= PNG_TEXT_COMPRESSION_LAST)
199 png_snprintf(msg, 50, "Unknown compression type %d", compression);
202 png_warning(png_ptr, "Unknown compression type");
221 /* Set up the compression buffers */
227 /* This is the same compression loop as in png_write_row() */
283 /* Finish the compression */
357 /* Handle the no-compression case */
451 png_warning(png_ptr, "Invalid compression type specified");
653 unsigned int z_cmf = data[0]; /* zlib compression method and flags */
686 "Invalid zlib compression method or flags in IDAT");
793 png_warning(png_ptr, "Unknown compression type in iCCP chunk");
832 /* Make sure we include the NULL after the name and the compression type */
1393 png_size_t text_len, int compression)
1417 if (text == NULL || *text == '\0' || compression==PNG_TEXT_COMPRESSION_NONE)
1427 text_len = png_text_compress(png_ptr, text, text_len, compression,
1438 buf[0] = (png_byte)compression;
1439 /* Write compression */
1452 png_write_iTXt(png_structp png_ptr, int compression, png_charp key,
1492 text_len = png_text_compress(png_ptr, text, text_len, compression-2,
1496 /* Make sure we include the compression flag, the compression byte,
1515 /* Set the compression flag */
1516 if (compression == PNG_ITXT_COMPRESSION_NONE || \
1517 compression == PNG_TEXT_COMPRESSION_NONE)
1519 else /* compression == PNG_ITXT_COMPRESSION_zTXt */
1521 /* Set the compression method */
2182 * (experimental and can in theory improve compression), and the "zlib
2789 /* Check for compression errors */