Lines Matching refs:jpegFile
169 FILE *jpegFile = NULL; in main() local
268 if ((jpegFile = fopen(argv[1], "rb")) == NULL) in main()
270 if (fseek(jpegFile, 0, SEEK_END) < 0 || ((size = ftell(jpegFile)) < 0) || in main()
271 fseek(jpegFile, 0, SEEK_SET) < 0) in main()
278 if (fread(jpegBuf, jpegSize, 1, jpegFile) < 1) in main()
280 fclose(jpegFile); jpegFile = NULL; in main()
314 if ((jpegFile = fopen(argv[2], "wb")) == NULL) in main()
316 if (fwrite(jpegBuf, jpegSize, 1, jpegFile) < 1) in main()
318 fclose(jpegFile); jpegFile = NULL; in main()
374 if ((jpegFile = fopen(argv[2], "wb")) == NULL) in main()
376 if (fwrite(jpegBuf, jpegSize, 1, jpegFile) < 1) in main()
379 fclose(jpegFile); jpegFile = NULL; in main()
393 if (jpegFile) fclose(jpegFile); in main()