Lines Matching refs:png
2 /* pngvalid.c - validate libpng by constructing then reading png files.
10 * and license in png.h
14 * generates bitmaps internally, stores them as PNG files (using the
41 # include <png.h>
43 # include "../../png.h"
70 /* This is copied from 1.5.1 png.h: */
277 /* A numeric ID based on PNG file characteristics. The 'do_interlace' field
542 * after the end (the low order bits in PNG.)
567 /*************************** BASIC PNG FILE WRITING ***************************/
569 * to the sequential reader. It can also store the result of a PNG
666 png_store_buffer new; /* The end of the new PNG file being written. */
811 /* Main interface to file storeage, after writing a new PNG file (see the API
923 /* Functions to use as PNG callbacks. */
1437 /* NOTE: the PNG user malloc function cannot use the png_ptr it is passed
1522 * optionally, a png_info suitable for writiing a new PNG file. Use
1562 png_error(ps->pwrite, "png option invalid");
1691 png_error(ps->pread, "png option invalid");
1716 /*********************** PNG FILE MODIFICATION ON READ ************************/
2487 png_error(pm->this.pread, "invalid PNG file signature");
2967 /***************************** STANDARD PNG FILES *****************************/
2994 * Because the PNG filter code is typically the largest CPU consumer within
3600 /* The following two routines use the PNG interlace support macros from
3601 * png.h to interlace or deinterlace rows.
4140 /* This is just to validate the internal PNG formatting code - if this fails
4340 /* Utility to read the palette from the PNG file and convert it into
4712 /* Use this opportunity to validate the png 'current' APIs: */
4960 sprintf(msg, "PNG image row[%lu][%d] changed from %.2x to %.2x",
5077 * unless the PNG file values have been checked against the expected
5272 /* A local (pngvalid) representation of a PNG pixel, in all its
5516 /* Then a transform that takes an input pixel in one PNG format or another
5639 * PNG specification actually permits any error within the range (-1..+1),
5738 * out of libpng; the semantics of something not in the PNG spec are, at
6828 PNG_CONST int error_action = 1; /* no error, no defines in png.h */
6923 * from the cHRm chunk. PNG uses fixed point in the cHRM chunk, so
7782 * non-inverted, represenation. It provides a default for the PNG file
7871 * sample values as unscaled PNG component values along with a cache of all the
8010 /* Standard PNG background processing. */
8668 * (sample depth scaling) of the PNG spec. That section forces the
8669 * decoder to assume that the PNG values have been scaled if sBIT is
8672 * png-sample = floor( input-sample * (max-out/max-in) + .5);
8674 * This means that only a subset of the possible PNG values should
8680 * value stored in a PNG file be the original sample bits.
8878 /* Make an appropriate modifier to set the PNG file gamma to the
9246 base = " alpha(PNG)";
9595 /* This routine validates all the interlace support macros in png.h for
9596 * a variety of valid PNG widths and heights. It uses a number of similarly
10548 fprintf(fsuccess, "PNG validation succeeded\n");