Lines Matching refs:FILE
6 * This file has been placed in the public domain by the authors.
13 * The file libpng.txt is much more verbose then this. If you have not
18 * This file does not currently compile, because it is missing certain
37 /* Check to see if a file is a PNG file using png_sig_cmp(). png_sig_cmp()
41 * if the file can be opened and is a PNG, 0 (false) otherwise.
43 * If this call is successful, and you are going to keep the file open,
46 * has read that many bytes from the start of the file. Make sure you
53 * of the image to determine the file type, so it would be easiest just
55 * you have a PNG file, and call png_set_sig_bytes().
58 int check_if_png(char *file_name, FILE **fp)
62 /* Open the prospective PNG file. */
76 /* Read a PNG file. You may want to return an error code if the read
79 * file, and the other where we are given an open file (possibly with
83 void read_png(char *file_name) /* We need to open the file */
90 FILE *fp;
96 void read_png(FILE *fp, unsigned int sig_read) /* File is already open */
107 * the compiler header file version, so that we know if the application
138 /* If we get here, we had a problem reading the file */
143 #ifdef streams /* PNG file I/O method 1 */
147 #else no_streams /* PNG file I/O method 2 */
173 * PNG file before the first IDAT (image data chunk). REQUIRED
220 * even if the PNG file supplies a background, you are not required to
291 /* This reduces the image to the palette supplied in the file */
388 /* Read rest of file, and get additional chunks in info_ptr - REQUIRED */
397 /* Close the file */
404 /* Progressively read a file */
560 /* Write a png file */
563 FILE *fp;
568 /* Open the file */
602 /* If we get here, we had a problem writing the file */
696 /* Write the file header information. REQUIRED */
797 /* It is REQUIRED to call this to finish writing the rest of the file */
825 /* Close the file */