Lines Matching defs:bytes
248 // through a small internal buffer (currently 128 bytes) to try to reduce
251 // The three functions you must define are "read" (reads some bytes of data),
252 // "skip" (skips some bytes of data), "eof" (reports if the stream is at the end).
411 int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read
412 void (*skip) (void *user,int n); // skip the next 'n' bytes, or 'unget' the last -n bytes if negative
888 // we only use it after doing 'test', which only ever looks at at most 92 bytes
1163 // bytes matching expectations; these are prone to false positives, so
1225 stbi_uc *bytes = (stbi_uc *)image;
1228 stbi_uc *row0 = bytes + row*bytes_per_row;
1229 stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row;
1250 stbi_uc *bytes = (stbi_uc *)image;
1252 stbi__vertical_flip(bytes, w, h, bytes_per_pixel);
1253 bytes += slice_size;
2079 while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes
2867 // 8 bytes to each scan line!
2924 x = stbi__get8(j->s); // consume repeated 0xff fill bytes
4259 static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes
4652 int bytes = (depth == 16? 2 : 1);
4654 stbi__uint32 i,j,stride = x*out_n*bytes;
4659 int output_bytes = out_n*bytes;
4660 int filter_bytes = img_n*bytes;
4664 a->out = (stbi_uc *) stbi__malloc_mad3(x, y, output_bytes, 0); // extra bytes to write off the end into
4686 cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
4864 int bytes = (depth == 16 ? 2 : 1);
4865 int out_bytes = out_n * bytes;
5181 if (c.length > (1u << 30)) return stbi__err("IDAT size limit", "IDAT section larger than 2^30 bytes");
5204 bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component
5564 // accept some number of extra bytes after the header, but if the offset points either to before
5567 int header_limit = 1024; // max we actually read is below 256 bytes currently.
5568 int extra_data_limit = 256*4; // what ordinarily goes here is a palette; 256 entries*4 bytes is its max size.
6097 // Copy next len+1 bytes literally.
6108 // Next -len+1 bytes in the dest are replicated from next source byte.
6143 // Skip 6 reserved bytes.
6214 // Loop until you get the number of unpacked bytes you are expecting:
6216 // If n is between 0 and 127 inclusive, copy the next n+1 bytes literally.