Home | History | Annotate | Download | only in stbi

Lines Matching defs:img_y

822    uint32 img_x, img_y;
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
1710 if ((1 << 30) / s->img_x / s->img_n < s->img_y) return e("too large", "Image too large to decode");
1723 z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h;
1728 z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max;
2016 output = MALLOC(n * z->s.img_x * z->s.img_y + 1);
2020 for (j=0; j < z->s.img_y; ++j) {
2060 *out_y = z->s.img_y;
2106 if (y) *y = j->s.img_y;
2719 if (s->img_x == x && s->img_y == y) {
2805 return create_png_image_raw(a, raw, raw_len, out_n, a->s.img_x, a->s.img_y);
2810 final = MALLOC(a->s.img_x * a->s.img_y * out_n);
2819 y = (a->s.img_y - yorig[p] + yspc[p]-1) / yspc[p];
2843 uint32 i, pixel_count = s->img_x * s->img_y;
2867 uint32 i, pixel_count = a->s.img_x * a->s.img_y;
2917 uint32 i, pixel_count = s->img_x * s->img_y;
2981 s->img_y = get32(s); if (s->img_y > (1 << 24)) return e("too large","Very large image (corrupt?)");
2988 if (!s->img_x || !s->img_y) return e("0-pixel image","Corrupt PNG");
2991 if ((1 << 30) / s->img_x / s->img_n < s->img_y) return e("too large", "Image too large to decode");
2997 if ((1 << 30) / s->img_x / 4 < s->img_y) return e("too large","Corrupt PNG");
3116 result = convert_format(result, p->s.img_out_n, req_comp, p->s.img_x, p->s.img_y);
3121 *y = p->s.img_y;
3181 if (y) *y = p->s.img_y;
3307 s->img_y = get16le(s);
3310 s->img_y = get32le(s);
3315 flip_vertically = ((int) s->img_y) > 0;
3316 s->img_y = abs((int) s->img_y);
3378 out = MALLOC(target * s->img_x * s->img_y);
3395 for (j=0; j < (int) s->img_y; ++j) {
3441 for (j=0; j < (int) s->img_y; ++j) {
3468 for (j=0; j < (int) s->img_y>>1; ++j) {
3470 stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target;
3478 out = convert_format(out, target, req_comp, s->img_x, s->img_y);
3483 *y = s->img_y;