Lines Matching refs:pInput
136 int read_PNG_File(const char* pInput, etc1_byte** ppImageData,
149 if ((pIn = fopen(pInput, "rb")) == NULL) {
151 pInput, errno);
158 fprintf(stderr, "Could not read PNG header from %s: %d\n", pInput,
164 fprintf(stderr, "%s is not a PNG file.\n", pInput);
234 int readPKMFile(const char* pInput, etc1_byte** ppImageData,
247 if ((pIn = fopen(pInput, "rb")) == NULL) {
249 pInput, errno);
255 pInput, errno);
260 fprintf(stderr, "Bad header PKM header for input file %s\n", pInput);
276 pInput, errno);
313 int encode(const char* pInput, const char* pOutput, bool bEmitHeader, const char* pDiffFile) {
323 if (read_PNG_File(pInput, &pSourceImage, &width, &height)) {
453 int decode(const char* pInput, const char* pOutput) {
459 if (readPKMFile(pInput, &pImageData, &width, &height)) {
484 const char* pInput = NULL;
542 if (pInput != NULL) {
545 pInput, pArg);
547 pInput = pArg;
559 if (!pInput) {
565 size_t buffSize = strlen(pInput) + strlen(kDefaultExtension) + 1;
567 strcpy(pOutputFileBuff, pInput);
569 usage("Could not change extension of input file name: %s\n", pInput);
575 encode(pInput, pOutput, bEncodeHeader, pDiffFile);
577 decode(pInput, pOutput);