/src/sys/dev/stbi/ |
stb_image.c | 2708 static int create_png_image_raw(png *a, uint8 *raw, uint32 raw_len, int out_n, uint32 x, uint32 y) 2720 if (raw_len != (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); 2722 if (raw_len < (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); 2799 static int create_png_image(png *a, uint8 *raw, uint32 raw_len, int out_n, int interlaced) 2805 return create_png_image_raw(a, raw, raw_len, out_n, a->s.img_x, a->s.img_y); 2821 if (!create_png_image_raw(a, raw, raw_len, out_n, x, y)) { 2831 raw_len -= (x*out_n+1)*y; 3055 uint32 raw_len; local in function:parse_png_file 3059 z->expanded = (uint8 *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, 16384, (int *) &raw_len, !iphone); 3066 if (!create_png_image(z, z->expanded, raw_len, s->img_out_n, interlace)) return 0 [all...] |
stb_image.c | 2708 static int create_png_image_raw(png *a, uint8 *raw, uint32 raw_len, int out_n, uint32 x, uint32 y) 2720 if (raw_len != (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); 2722 if (raw_len < (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); 2799 static int create_png_image(png *a, uint8 *raw, uint32 raw_len, int out_n, int interlaced) 2805 return create_png_image_raw(a, raw, raw_len, out_n, a->s.img_x, a->s.img_y); 2821 if (!create_png_image_raw(a, raw, raw_len, out_n, x, y)) { 2831 raw_len -= (x*out_n+1)*y; 3055 uint32 raw_len; local in function:parse_png_file 3059 z->expanded = (uint8 *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, 16384, (int *) &raw_len, !iphone); 3066 if (!create_png_image(z, z->expanded, raw_len, s->img_out_n, interlace)) return 0 [all...] |
stb_image.c | 2708 static int create_png_image_raw(png *a, uint8 *raw, uint32 raw_len, int out_n, uint32 x, uint32 y) 2720 if (raw_len != (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); 2722 if (raw_len < (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); 2799 static int create_png_image(png *a, uint8 *raw, uint32 raw_len, int out_n, int interlaced) 2805 return create_png_image_raw(a, raw, raw_len, out_n, a->s.img_x, a->s.img_y); 2821 if (!create_png_image_raw(a, raw, raw_len, out_n, x, y)) { 2831 raw_len -= (x*out_n+1)*y; 3055 uint32 raw_len; local in function:parse_png_file 3059 z->expanded = (uint8 *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, 16384, (int *) &raw_len, !iphone); 3066 if (!create_png_image(z, z->expanded, raw_len, s->img_out_n, interlace)) return 0 [all...] |