Lines Matching defs:get16
940 static int get16(stbi *s)
948 uint32 z = get16(s);
949 return (z << 16) + get16(s);
1596 if (get16(&z->s) != 4) return e("bad DRI len","Corrupt JPEG");
1597 z->restart_interval = get16(&z->s);
1601 L = get16(&z->s)-2;
1619 L = get16(&z->s)-2;
1647 skip(&z->s, get16(&z->s)-2);
1657 int Ls = get16(&z->s);
1683 Lf = get16(s); if (Lf < 11) return e("bad SOF len","Corrupt JPEG"); // JPEG
1685 s->img_y = get16(s); if (s->img_y == 0) return e("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG
1686 s->img_x = get16(s); if (s->img_x == 0) return e("0 width","Corrupt JPEG"); // JPEG requires
3032 tc[k] = (uint8) get16(s); // non 8-bit images will be larger
3574 get16(s); // discard palette start
3575 get16(s); // discard palette length
3577 get16(s); // discard x origin
3578 get16(s); // discard y origin
3579 if ( get16(s) < 1 ) return 0; // test width
3580 if ( get16(s) < 1 ) return 0; // test height
3894 if (get16(s) != 1)
3901 channelCount = get16(s);
3910 if (get16(s) != 8)
3923 if (get16(s) != 3)
3939 compression = get16(s);
4206 count = get16(s);
4244 x = get16(s);
4245 y = get16(s);
4250 get16(s); //skip `fields'
4251 get16(s); //skip `pad'