Lines Matching defs:img_y
805 stbi__uint32 img_x, img_y;
3268 s->img_y = stbi__get16be(s); if (s->img_y == 0) return stbi__err("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG
3270 if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)");
3296 if (!stbi__mad3sizes_valid(s->img_x, s->img_y, s->img_n, 0)) return stbi__err("too large", "Image too large to decode");
3317 z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h;
3322 z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max;
3435 if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG");
3920 output = (stbi_uc *) stbi__malloc_mad3(n, z->s->img_x, z->s->img_y, 1);
3924 for (j=0; j < z->s->img_y; ++j) {
4020 *out_y = z->s->img_y;
4061 if (y) *y = j->s->img_y;
4869 return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color);
4872 final = (stbi_uc *) stbi__malloc_mad3(a->s->img_x, a->s->img_y, out_bytes, 0);
4882 y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p];
4910 stbi__uint32 i, pixel_count = s->img_x * s->img_y;
4935 stbi__uint32 i, pixel_count = s->img_x * s->img_y;
4959 stbi__uint32 i, pixel_count = a->s->img_x * a->s->img_y;
5037 stbi__uint32 i, pixel_count = s->img_x * s->img_y;
5109 s->img_y = stbi__get32be(s);
5110 if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)");
5119 if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG");
5122 if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode");
5127 if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG");
5205 raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */;
5277 result = stbi__convert_format((unsigned char *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y);
5279 result = stbi__convert_format16((stbi__uint16 *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y);
5284 *y = p->s->img_y;
5316 if (y) *y = p->s->img_y;
5464 s->img_y = stbi__get16le(s);
5467 s->img_y = stbi__get32le(s);
5544 flip_vertically = ((int) s->img_y) > 0;
5545 s->img_y = abs((int) s->img_y);
5547 if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)");
5593 if (!stbi__mad3sizes_valid(target, s->img_x, s->img_y, 0))
5596 out = (stbi_uc *) stbi__malloc_mad3(target, s->img_x, s->img_y, 0);
5615 for (j=0; j < (int) s->img_y; ++j) {
5632 for (j=0; j < (int) s->img_y; ++j) {
5677 for (j=0; j < (int) s->img_y; ++j) {
5708 for (i=4*s->img_x*s->img_y-1; i >= 0; i -= 4)
5713 for (j=0; j < (int) s->img_y>>1; ++j) {
5715 stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target;
5723 out = stbi__convert_format(out, target, req_comp, s->img_x, s->img_y);
5728 *y = s->img_y;
7352 if (y) *y = s->img_y;
7516 ri->bits_per_channel = stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n);
7520 if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)");
7524 *y = s->img_y;
7527 if (!stbi__mad4sizes_valid(s->img_n, s->img_x, s->img_y, ri->bits_per_channel / 8, 0))
7530 out = (stbi_uc *) stbi__malloc_mad4(s->img_n, s->img_x, s->img_y, ri->bits_per_channel / 8, 0);
7532 if (!stbi__getn(s, out, s->img_n * s->img_x * s->img_y * (ri->bits_per_channel / 8))) {
7539 out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, s->img_n, req_comp, s->img_x, s->img_y);
7541 out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y);