Home | History | Annotate | Download | only in libpng-1.2.19

Lines Matching refs:compression

162         png_charp text, png_size_t text_len, int compression,
174 if (compression == PNG_TEXT_COMPRESSION_NONE)
181 if (compression >= PNG_TEXT_COMPRESSION_LAST)
185 png_snprintf(msg, 50, "Unknown compression type %d", compression);
188 png_warning(png_ptr, "Unknown compression type");
207 /* set up the compression buffers */
213 /* this is the same compression loop as in png_write_row() */
268 /* finish the compression */
341 /* handle the no-compression case */
431 png_warning(png_ptr, "Invalid compression type specified");
619 unsigned int z_cmf = data[0]; /* zlib compression method and flags */
650 "Invalid zlib compression method or flags in IDAT");
755 png_warning(png_ptr, "Unknown compression type in iCCP chunk");
785 /* make sure we include the NULL after the name and the compression type */
1369 png_size_t text_len, int compression)
1393 if (text == NULL || *text == '\0' || compression==PNG_TEXT_COMPRESSION_NONE)
1403 text_len = png_text_compress(png_ptr, text, text_len, compression,
1413 buf[0] = (png_byte)compression;
1414 /* write compression */
1427 png_write_iTXt(png_structp png_ptr, int compression, png_charp key,
1468 text_len = png_text_compress(png_ptr, text, text_len, compression-2,
1472 /* make sure we include the compression flag, the compression byte,
1491 /* set the compression flag */
1492 if (compression == PNG_ITXT_COMPRESSION_NONE || \
1493 compression == PNG_TEXT_COMPRESSION_NONE)
1495 else /* compression == PNG_ITXT_COMPRESSION_zTXt */
1497 /* set the compression method */
2135 * (experimental and can in theory improve compression), and the "zlib
2739 /* check for compression errors */