Home
last modified time | relevance | path

Searched refs:icc_file (Results 1 – 3 of 3) sorted by relevance

/external/libjpeg-turbo/
Dcjpeg.c565 FILE *icc_file; in cjpeg() local
656 if ((icc_file = fopen(icc_filename, READ_BINARY)) == NULL) { in cjpeg()
660 if (fseek(icc_file, 0, SEEK_END) < 0 || in cjpeg()
661 (icc_len = ftell(icc_file)) < 1 || in cjpeg()
662 fseek(icc_file, 0, SEEK_SET) < 0) { in cjpeg()
669 fclose(icc_file); in cjpeg()
672 if (fread(icc_profile, icc_len, 1, icc_file) < 1) { in cjpeg()
676 fclose(icc_file); in cjpeg()
679 fclose(icc_file); in cjpeg()
Djpegtran.c479 FILE *icc_file; in jpegtran() local
551 if ((icc_file = fopen(icc_filename, READ_BINARY)) == NULL) { in jpegtran()
555 if (fseek(icc_file, 0, SEEK_END) < 0 || in jpegtran()
556 (icc_len = ftell(icc_file)) < 1 || in jpegtran()
557 fseek(icc_file, 0, SEEK_SET) < 0) { in jpegtran()
564 fclose(icc_file); in jpegtran()
567 if (fread(icc_profile, icc_len, 1, icc_file) < 1) { in jpegtran()
571 fclose(icc_file); in jpegtran()
574 fclose(icc_file); in jpegtran()
Ddjpeg.c827 FILE *icc_file; in djpeg() local
831 if ((icc_file = fopen(icc_filename, WRITE_BINARY)) == NULL) { in djpeg()
836 if (fwrite(icc_profile, icc_len, 1, icc_file) < 1) { in djpeg()
840 fclose(icc_file); in djpeg()
844 fclose(icc_file); in djpeg()