Lines Matching defs:raw_len
3981 static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)
3996 if (raw_len != img_len) return stbi__err("not enough pixels","Corrupt PNG");
3998 if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG");
4424 stbi__uint32 raw_len, bpl;
4430 raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */;
4431 z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone);
4438 if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, depth, color, interlace)) return 0;