Lines Matching refs:infile
129 int ReadJpegSections (FILE * infile, ReadMode_t ReadMode) in ReadJpegSections() argument
134 a = fgetc(infile); in ReadJpegSections()
136 if (a != 0xff || fgetc(infile) != M_SOI){ in ReadJpegSections()
148 marker = fgetc(infile); in ReadJpegSections()
159 Sections[SectionsRead].Offset = ftell(infile); in ReadJpegSections()
162 lh = fgetc(infile); in ReadJpegSections()
163 ll = fgetc(infile); in ReadJpegSections()
187 got = fread(Data+2, 1, itemlen-2, infile); // Read the whole section. in ReadJpegSections()
203 cp = ftell(infile); in ReadJpegSections()
204 fseek(infile, 0, SEEK_END); in ReadJpegSections()
205 ep = ftell(infile); in ReadJpegSections()
206 fseek(infile, cp, SEEK_SET); in ReadJpegSections()
216 got = fread(Data, 1, size, infile); in ReadJpegSections()
526 FILE * infile; in ReadJpegFile() local
529 infile = fopen(FileName, "rb"); // Unix ignores 'b', windows needs it. in ReadJpegFile()
531 if (infile == NULL) { in ReadJpegFile()
539 ret = ReadJpegSections(infile, ReadMode); in ReadJpegFile()
545 fclose(infile); in ReadJpegFile()