Lines Matching refs:stbi__errpuc

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