Lines Matching refs:stream
109 FILE * stream;
172 stream = fopen(file, "r");
173 if (!stream) {
183 if ( ! fread((void *) &hdr_off, sizeof(long), 1, stream) ) goto errQTimage;
184 if ( ! fread((void *) &hdr_type, sizeof(long), 1, stream) ) goto errQTimage;
188 if ( fseek(stream, hdr_off, SEEK_SET) ) goto errQTimage;
189 if ( ! fread((void *) &hdr_off, sizeof(long), 1, stream) ) goto errQTimage;
190 if ( ! fread((void *) &hdr_type, sizeof(long), 1, stream) ) goto errQTimage;
194 rc = fread((void *) &image_header, sizeof(image_header), 1, stream);
195 if ( !rc && !feof(stream) ) goto errQTimage;
218 if ( fseek(stream, 8, SEEK_SET) ) goto errQTimage;
219 if ( ! fread((void *) data, image_header.dataSize, 1, stream) ) goto errQTimage;
220 fclose( stream );
875 FILE * stream;
879 if ( (stream = fopen(iname, "rb")) == NULL ) {
885 fread(raw_clut, 256, 3, stream);
886 fclose(stream);