Lines Matching defs:read
246 // I/O callbacks allow you to read from arbitrary sources, like packaged
247 // files or some other source. Data read from callbacks are processed
251 // The three functions you must define are "read" (reads some bytes of data),
411 int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read
717 // So default to no SSE2 on 32-bit MinGW. If you've read this far and added
826 s->io.read = NULL;
857 ch = fgetc((FILE*) user); /* have to read a byte to reset feof()'s flag */
1597 int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen);
1628 if (s->io.read) {
1649 if (s->io.read) {
1666 if (s->io.read) {
1673 count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen);
3403 // repeated 0xff keeps trying to read the next byte of the marker.
4172 // we require PNG read all the IDATs and combine them into a single
4408 if (a->zbuffer + len > a->zbuffer_end) return stbi__err("read past buffer","Corrupt PNG");
5235 // end of PNG chunk, read and skip CRC
5257 // end of PNG chunk, read and skip CRC
5567 int header_limit = 1024; // max we actually read is below 256 bytes currently.
5850 // read 16bit value and convert to 24bit RGB
5872 // read in the TGA header stuff
5989 // OK, if I need to read a pixel, do it now
5995 // read in index, then perform the lookup
6009 // read in the data raw
6445 if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)");
6463 if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)");
7610 *x = stbi__pnm_getinteger(s, &c); // read width
7615 *y = stbi__pnm_getinteger(s, &c); // read height
7620 maxv = stbi__pnm_getinteger(s, &c); // read max value
7797 read 16-bit PNGs (only as 8-bit)
7933 0.92 read 4,8,16,24,32-bit BMP files of several formats