Lines Matching defs:get8
872 __forceinline static int get8(stbi *s)
900 return (uint8) get8(s);
942 int z = get8(s);
943 return (z << 8) + get8(s);
954 int z = get8(s);
955 return z + (get8(s) << 8);
1205 int b = j->nomore ? 0 : get8(&j->s);
1207 int c = get8(&j->s);
1603 int q = get8(&z->s);
1623 int q = get8(&z->s);
1628 sizes[i] = get8(&z->s);
1658 z->scan_n = get8(&z->s);
1662 int id = get8(&z->s), which;
1663 int q = get8(&z->s);
1672 if (get8(&z->s) != 0) return e("bad SOS","Corrupt JPEG");
1673 get8(&z->s); // should be 63, but might be 0
1674 if (get8(&z->s) != 0) return e("bad SOS","Corrupt JPEG");
1684 p = get8(s); if (p != 8) return e("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline
1687 c = get8(s);
1698 z->img_comp[i].id = get8(s);
1702 q = get8(s);
1705 z->img_comp[i].tq = get8(s); if (z->img_comp[i].tq > 3) return e("bad TQ","Corrupt JPEG");
1792 int x = get8(&j->s);
2675 if (get8(s) != png_sig[i]) return e("bad png sig","Not a PNG");
2982 depth = get8(s); if (depth != 8) return e("8bit only","PNG not supported: 8-bit only");
2983 color = get8(s); if (color > 6) return e("bad ctype","Corrupt PNG");
2985 comp = get8(s); if (comp) return e("bad comp method","Corrupt PNG");
2986 filter= get8(s); if (filter) return e("bad filter method","Corrupt PNG");
2987 interlace = get8(s); if (interlace>1) return e("bad interlace method","Corrupt PNG");
3221 if (get8(s) != 'B') return 0;
3222 if (get8(s) != 'M') return 0;
3298 if (get8(s) != 'B' || get8(s) != 'M') return epuc("not BMP", "Corrupt BMP");
3387 if (hsz != 12) get8(s);
3397 int v=get8(s),v2=0;
3407 v = (bpp == 8) ? get8(s) : v2;
3449 a = (easy == 2 ? get8(s) : 255);
3529 get8(s); // discard bits per palette color entry
3536 sz = get8(s); // bits per pixel
3576 get8(s); // discard bits per palette color entry
3581 sz = get8(s); // bits per pixel
3977 len = get8(s);
4076 if (get8(s) != (stbi_uc)str[i])
4090 get8(s);
4141 chained = get8(s);
4199 int count = get8(s), i;
4242 get8(s);
4341 if (get8(s) != 'G' || get8(s) != 'I' || get8(s) != 'F' || get8(s) != '8') return 0;
4342 sz = get8(s);
4344 if (get8(s) != 'a') return 0;
4381 if (get8(s) != 'G' || get8(s) != 'I' || get8(s) != 'F' || get8(s) != '8')
4386 if (get8(s) != 'a') return e("not GIF", "Corrupt GIF");
4391 g->flags = get8(s);
4392 g->bgindex = get8(s);
4393 g->ratio = get8(s);
4485 len = get8(s); // start new block
4490 bits |= (int32) get8(s) << valid_bits;
4505 while ((len = get8(s)) > 0)
4571 switch (get8(s)) {
4592 g->lflags = get8(s);
4625 if (get8(s) == 0xF9) { // Graphic Control Extension.
4626 len = get8(s);
4628 g->eflags = get8(s);
4630 g->transparent = get8(s);
4636 while ((len = get8(s)) != 0)
4752 if (get8(s) != signature[i])
4782 c = (char) get8(z);
4788 while (!at_eof(z) && get8(z) != '\n')
4792 c = (char) get8(z);
4890 c1 = get8(s);
4891 c2 = get8(s);
4892 len = get8(s);
4908 len |= get8(s);