Lines Matching defs:img_len
1191 int img_len = w * h * channels;
1194 reduced = (stbi_uc *) stbi__malloc(img_len);
1197 for (i = 0; i < img_len; ++i)
1207 int img_len = w * h * channels;
1210 enlarged = (stbi__uint16 *) stbi__malloc(img_len*2);
1213 for (i = 0; i < img_len; ++i)
4655 stbi__uint32 img_len, img_width_bytes;
4669 img_len = (img_width_bytes + 1) * y;
4671 // we used to check for exact match between raw_len and img_len on non-interlaced PNGs,
4673 // so just check for raw_len < img_len always.
4674 if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG");
4686 cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
4884 stbi__uint32 img_len = ((((a->s->img_n * x * depth) + 7) >> 3) + 1) * y;
4898 image_data += img_len;
4899 image_data_len -= img_len;