Lines Matching defs:data
69 * The total_length is the sum of the lengths of all the data you will be
107 /* Inform the I/O callback that chunk data will (possibly) be written.
121 /* Write the data of a PNG chunk started with png_write_chunk_header().
127 png_write_chunk_data(png_structrp png_ptr, png_const_bytep data, size_t length)
129 /* Write the data, and run the CRC over it */
133 if (data != NULL && length > 0)
135 png_write_data(png_ptr, data, length);
137 /* Update the CRC after writing the data,
140 png_calculate_crc(png_ptr, data, length);
169 * where the others are defined. The length is the length of the data.
170 * All the data must be present. If that is not possible, use the
176 png_const_bytep data, size_t length)
186 png_write_chunk_data(png_ptr, data, length);
193 png_const_bytep data, size_t length)
195 png_write_complete_chunk(png_ptr, PNG_CHUNK_FROM_STRING(chunk_string), data,
244 * deflate header) to correct the windowBits value to match the actual data
246 * first argument is the *compressed* data (and it must be deflate
250 optimize_cmf(png_bytep data, png_alloc_size_t data_size)
257 unsigned int z_cmf = data[0]; /* zlib compression method and flags */
280 data[0] = (png_byte)z_cmf;
281 tmp = data[1] & 0xe0;
283 data[1] = (png_byte)tmp;
366 * requires an extra 262 bytes in the window in addition to the data to be
367 * able to see the whole of the data, so if data_size+262 takes us to the
460 * text string, and (b) issuing it later as a series of chunk data writes.
471 png_const_bytep input; /* The uncompressed input data */
486 /* Compress the data in the compression state input */
542 /* Chunk data is limited to 2^31 bytes in length, so the prefix
579 /* Compress the data */
583 /* Claw back input data that was not consumed (because avail_in is
604 png_ptr->zstream.msg = PNGZ_MSG_CAST("compressed data too long");
611 /* Reset zlib for another zTXt/iTXt or image data */
663 png_error(png_ptr, "error writing ancillary chunked compressed data");
681 /* Check that we have valid input data from the application info */
914 * all of the data at once and, instead of buffering the compressed result,
918 * just call png_error. The input data length may exceed 32-bits. The 'flush'
922 * Z_NO_FLUSH: normal incremental output of compressed data
972 /* INPUT: from the row data */
993 png_bytep data = png_ptr->zbuffer_list->output;
996 /* Write an IDAT containing the data then reset the buffer. The
1002 optimize_cmf(data, png_image_size(png_ptr));
1006 png_write_complete_chunk(png_ptr, png_IDAT, data, size);
1009 png_ptr->zstream.next_out = data;
1040 /* This is the end of the IDAT data; any pending output must be
1043 png_bytep data = png_ptr->zbuffer_list->output;
1049 optimize_cmf(data, png_image_size(png_ptr));
1053 png_write_complete_chunk(png_ptr, png_IDAT, data, size);
1475 /* Write the Exif data */
1600 /* Compute the compressed data; do it now for the length */
1613 /* Write the compressed data */
2003 /* Internal use only. Called when finished processing a row of data. */
2579 * (series of) filter(s) that give minimum compressed data size (VERY
2597 * that has been chosen, as it doesn't actually do anything to the data.
2738 /* Do the actual writing of the filtered row data from the chosen filter. */