Lines Matching refs:stbi__errpuc

539 #define stbi__errpuc(x,y)  ((unsigned char *) (stbi__err(x,y)?NULL:NULL))  macro
570 return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt"); in stbi_load_main()
578 if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); in stbi_load()
865 return stbi__errpuc("outofmem", "Out of memory"); in stbi__convert_format()
921 if (output == NULL) { free(data); return stbi__errpuc("outofmem", "Out of memory"); } in stbi__hdr_to_ldr()
1832 if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); in load_jpeg_image()
1861 …if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memo… in load_jpeg_image()
1879 if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } in load_jpeg_image()
2846 if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); in stbi__do_png()
2971 if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') return stbi__errpuc("not BMP", "Corrupt BMP"); in stbi__bmp_load()
2977 …if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown … in stbi__bmp_load()
2985 if (stbi__get16le(s) != 1) return stbi__errpuc("bad BMP", "bad BMP"); in stbi__bmp_load()
2987 if (bpp == 1) return stbi__errpuc("monochrome", "BMP type not supported: 1-bit"); in stbi__bmp_load()
2995 … if (compress == 1 || compress == 2) return stbi__errpuc("BMP RLE", "BMP type not supported: RLE"); in stbi__bmp_load()
3030 return stbi__errpuc("bad BMP", "bad BMP"); in stbi__bmp_load()
3033 return stbi__errpuc("bad BMP", "bad BMP"); in stbi__bmp_load()
3060 if (!out) return stbi__errpuc("outofmem", "Out of memory"); in stbi__bmp_load()
3063 if (psize == 0 || psize > 256) { free(out); return stbi__errpuc("invalid", "Corrupt BMP"); } in stbi__bmp_load()
3074 else { free(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); } in stbi__bmp_load()
3112 if (!mr || !mg || !mb) { free(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } in stbi__bmp_load()
3289 if (!tga_data) return stbi__errpuc("outofmem", "Out of memory"); in stbi__tga_load()
3310 return stbi__errpuc("outofmem", "Out of memory"); in stbi__tga_load()
3315 return stbi__errpuc("bad palette", "Corrupt TGA"); in stbi__tga_load()
3445 return stbi__errpuc("not PSD", "Corrupt PSD image"); in stbi__psd_load()
3449 return stbi__errpuc("wrong version", "Unsupported version of PSD image"); in stbi__psd_load()
3457 return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image"); in stbi__psd_load()
3465 return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 bit"); in stbi__psd_load()
3478 return stbi__errpuc("wrong color format", "PSD is not in RGB color format"); in stbi__psd_load()
3495 return stbi__errpuc("bad compression", "PSD has an unknown compression format"); in stbi__psd_load()
3499 if (!out) return stbi__errpuc("outofmem", "Out of memory"); in stbi__psd_load()
3637 if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short"); in stbi__readval()
3665 return stbi__errpuc("bad format","too many packets"); in stbi__pic_load_core()
3676 … if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (reading packets)"); in stbi__pic_load_core()
3677 if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp"); in stbi__pic_load_core()
3691 return stbi__errpuc("bad format","packet has bad compression type"); in stbi__pic_load_core()
3710 … if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)"); in stbi__pic_load_core()
3728 … if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)"); in stbi__pic_load_core()
3739 return stbi__errpuc("bad file","scanline overrun"); in stbi__pic_load_core()
3748 if (count>left) return stbi__errpuc("bad file","scanline overrun"); in stbi__pic_load_core()
3775 if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)"); in stbi__pic_load()
3776 …if ((1 << 28) / x < y) return stbi__errpuc("too large", "Image too large to stbi__jpeg_huff_decode… in stbi__pic_load()
3986 if (first) return stbi__errpuc("no clear code", "Corrupt GIF"); in stbi__process_gif_raster()
3990 if (avail > 4096) return stbi__errpuc("too many codes", "Corrupt GIF"); in stbi__process_gif_raster()
3995 return stbi__errpuc("illegal code in raster", "Corrupt GIF"); in stbi__process_gif_raster()
4006 return stbi__errpuc("illegal code in raster", "Corrupt GIF"); in stbi__process_gif_raster()
4035 if (g->out == 0) return stbi__errpuc("outofmem", "Out of memory"); in stbi__gif_load_next()
4042 if (g->out == 0) return stbi__errpuc("outofmem", "Out of memory"); in stbi__gif_load_next()
4059 return stbi__errpuc("bad Image Descriptor", "Corrupt GIF"); in stbi__gif_load_next()
4089 return stbi__errpuc("missing color table", "Corrupt GIF"); in stbi__gif_load_next()
4122 return stbi__errpuc("unknown code", "Corrupt GIF"); in stbi__gif_load_next()