Lines Matching refs:ifp
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()
168 format = getc(ifp); /* image type */ in readtga()
169 getc(ifp); /* color map origin */ in readtga()
170 getc(ifp); /* color map origin */ in readtga()
171 getc(ifp); /* color map length */ in readtga()
172 getc(ifp); /* color map length */ in readtga()
173 getc(ifp); /* color map entry size */ 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()
178 w1 = getc(ifp); /* width (low) */ in readtga()
179 w2 = getc(ifp); /* width (hi) */ in readtga()
180 h1 = getc(ifp); /* height (low) */ in readtga()
181 h2 = getc(ifp); /* height (hi) */ in readtga()
182 depth = getc(ifp); /* image pixel size */ in readtga()
183 flags = getc(ifp); /* image descriptor byte */ in readtga()
186 fclose(ifp); in readtga()
195 bytesread = fread(*imgdata, 1, imgsize, ifp); in readtga()
196 fclose(ifp); in readtga()