Home | History | Annotate | Download | only in etc1tool

Lines Matching refs:FILE

4 // you may not use this file except in compliance with the License.
47 "\t\t--encode create an ETC1 file from a PNG file.\n");
50 "\t\t--encodeNoHeader create a raw ETC1 data file (without a header) from a PNG file.\n");
52 "\t\t--decode create a PNG file from an ETC1 file.\n");
109 int fwrite_big_endian_uint16(png_uint_32 data, FILE* pOut) {
120 int fread_big_endian_uint16(png_uint_32* data, FILE* pIn) {
132 // Read a PNG file into a contiguous buffer.
138 FILE* pIn = NULL;
150 fprintf(stderr, "Could not open input file %s for reading: %d\n",
164 fprintf(stderr, "%s is not a PNG file.\n", pInput);
231 // Read a PNG file into a contiguous buffer.
237 FILE* pIn = NULL;
248 fprintf(stderr, "Could not open input file %s for reading: %d\n",
254 fprintf(stderr, "Could not read header from input file %s: %d\n",
260 fprintf(stderr, "Bad header PKM header for input file %s\n", pInput);
275 fprintf(stderr, "Could not read encoded data from input file %s: %d\n",
310 // Encode the file.
314 FILE* pOut = NULL;
338 fprintf(stderr, "Could not open output file %s: %d\n", pOutput, errno);
347 "Could not write header output file %s: %d\n",
355 "Could not write encoded data to output file %s: %d\n",
370 fprintf(stderr, "Output file has incorrect bounds: %u, %u != %u, %u\n",
408 FILE* pOut = NULL;
424 fprintf(stderr, "Could not open output file %s: %d\n", pOutput, errno);
544 "Only one input file allowed. Already have %s, now see %s",
560 usage("Expected an input file.");
569 usage("Could not change extension of input file name: %s\n", pInput);