Lines Matching refs:png
9 * and license in png.h
43 # include <png.h>
45 # include "../../png.h"
55 * data in PNG files.
156 /* 80-bit number handling - a PNG image can be up to (2^31-1)x(2^31-1) 8 byte
706 # define STREAM_ERROR 0x04 /* damaged PNG stream (may be fixable) */
836 /* PUBLIC PER-FILE VARIABLES: SET BY PNG READ CODE */
855 FILE * file; /* Original PNG file */
857 jmp_buf jmpbuf; /* Set while reading a PNG */
904 #define INVALID_ERROR_CODE 4 /* detected an invalid PNG */
1125 /* Return control when a PNG file cannot be read. This outputs an 'ERR'
1338 * fails and the read of this PNG file immediately terminates. Just
1915 * have extent over the whole read of the IDAT stream. For a PNG this means
1916 * the whole PNG read, for MNG it could have lesser extent.
2592 * the PNG chunk (although clearly this is not necessary.) zlib_advance
2749 /* The strategy here is to run a regular libpng PNG file read but examine the
2877 * PNG.
2930 * be used to halt parsing of the PNG.
3072 stop(file, READ_ERROR_CODE, "damaged PNG stream");
3154 * the PNG file.
3210 stop(file, READ_ERROR_CODE, "not a PNG (too short)");
3216 stop(file, LIBPNG_ERROR_CODE, "not a PNG (signature)");
3232 stop(file, LIBPNG_ERROR_CODE, "not a PNG (IHDR)");
3571 /* Read a PNG, return 0 on success else an error (status) code; a bit mask as
3676 " Tests, optimizes and optionally fixes the zlib header in PNG files.",
3715 " that have ever been formally proposed as PNG extensions.",
3728 " Write the optimized/corrected version of the next PNG to <file>. This",
3768 " checks each PNG file on the command line for errors. By default errors are",
3773 " Various known problems in PNG files are fixed while the file is being read",
3780 " PNG stream caused by a bug in libpng which wrote an incorrect chunk length",
3786 " Notice that some PNG files with the zlib optimization problem can still be",
3840 fprintf(stderr, "Usage: %s {[options] png-file}\n", prog);