Searched refs:ifp (Results 1 – 4 of 4) sorted by relevance
| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | tgafile.cpp | 158 FILE *ifp; in readtga() local 160 ifp = fopen(name, "r"); in readtga() 161 if (ifp == nullptr) { in readtga() 166 getc(ifp); /* ID length */ in readtga() 167 getc(ifp); /* colormap type */ in readtga() 174 getc(ifp); /* x origin */ in readtga() 175 getc(ifp); /* x origin */ in readtga() 176 getc(ifp); /* y origin */ in readtga() 177 getc(ifp); /* y origin */ in readtga() 186 fclose(ifp); in readtga() [all …]
|
| H A D | ppm.cpp | 85 FILE *ifp; in readppm() local 90 ifp = fopen(name, "r"); in readppm() 91 if (ifp == nullptr) { in readppm() 94 fscanf(ifp, "%s", data); in readppm() 97 fclose(ifp); in readppm() 101 *xres = getint(ifp); in readppm() 102 *yres = getint(ifp); in readppm() 103 i = getint(ifp); /* eat the maxval number */ in readppm() 104 fread(&i, 1, 1, ifp); /* eat the newline */ in readppm() 109 bytesread = fread(*imgdata, 1, datasize, ifp); in readppm() [all …]
|
| H A D | jpeg.cpp | 75 FILE *ifp; in readjpeg() local 82 if ((ifp = fopen(name, "rb")) == nullptr) in readjpeg() 99 jpeg_stdio_src(&cinfo, ifp); /* Set input mechanism to stdio type */ in readjpeg() 121 fclose(ifp); /* Close the input file */ in readjpeg()
|
| H A D | parse.cpp | 788 FILE *ifp; in GetTPolyFile() local 812 if ((ifp = fopen(ifname, "r")) == nullptr) { in GetTPolyFile() 817 while (!feof(ifp)) { in GetTPolyFile() 818 fscanf(ifp, "%d", &v); in GetTPolyFile() 826 rc |= GetVector(ifp, &v0); in GetTPolyFile() 827 rc |= GetVector(ifp, &v1); in GetTPolyFile() 828 rc |= GetVector(ifp, &v2); in GetTPolyFile() 845 fclose(ifp); in GetTPolyFile()
|