Lines Matching defs:epuc

619 #define epuc(x,y)  ((unsigned char *) (e(x,y)?NULL:NULL))
658 if (!f) return epuc("can't fopen", "Unable to open file");
687 return epuc("unknown image type", "Image not of any known type, or corrupt");
714 return epuc("unknown image type", "Image not of any known type, or corrupt");
991 return epuc("outofmem", "Out of memory");
1059 if (output == NULL) { FREE(data); return epuc("outofmem", "Out of memory"); }
1970 if (req_comp < 0 || req_comp > 4) return epuc("bad req_comp", "Internal error");
1999 if (!z->img_comp[k].linebuf) { cleanup_jpeg(z); return epuc("outofmem", "Out of memory"); }
2017 if (!output) { cleanup_jpeg(z); return epuc("outofmem", "Out of memory"); }
3111 if (req_comp < 0 || req_comp > 4) return epuc("bad req_comp", "Internal error");
3298 if (get8(s) != 'B' || get8(s) != 'M') return epuc("not BMP", "Corrupt BMP");
3304 if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108) return epuc("unknown BMP", "BMP type not supported: unknown");
3312 if (get16le(s) != 1) return epuc("bad BMP", "bad BMP");
3314 if (bpp == 1) return epuc("monochrome", "BMP type not supported: 1-bit");
3322 if (compress == 1 || compress == 2) return epuc("BMP RLE", "BMP type not supported: RLE");
3355 return epuc("bad BMP", "bad BMP");
3358 return epuc("bad BMP", "bad BMP");
3379 if (!out) return epuc("outofmem", "Out of memory");
3382 if (psize == 0 || psize > 256) { FREE(out); return epuc("invalid", "Corrupt BMP"); }
3393 else { FREE(out); return epuc("bad bpp", "Corrupt BMP"); }
3433 return epuc("bad masks", "Corrupt BMP");
3891 return epuc("not PSD", "Corrupt PSD image");
3895 return epuc("wrong version", "Unsupported version of PSD image");
3903 return epuc("wrong channel count", "Unsupported number of channels in PSD image");
3911 return epuc("unsupported bit depth", "PSD bit depth is not 8 bit");
3924 return epuc("wrong color format", "PSD is not in RGB color format");
3941 return epuc("bad compression", "PSD has an unknown compression format");
3945 if (!out) return epuc("outofmem", "Out of memory");
4109 if (at_eof(s)) return epuc("bad file","PIC file too short");
4137 return epuc("bad format","too many packets");
4148 if (at_eof(s)) return epuc("bad file","file too short (reading packets)");
4149 if (packet->size != 8) return epuc("bad format","packet isn't 8bpp");
4163 return epuc("bad format","packet has bad compression type");
4182 if (at_eof(s)) return epuc("bad file","file too short (pure read count)");
4200 if (at_eof(s)) return epuc("bad file","file too short (mixed read count)");
4210 return epuc("bad file","scanline overrun");
4219 if (count>left) return epuc("bad file","scanline overrun");
4246 if (at_eof(s)) return epuc("bad file","file too short (pic header)");
4247 if ((1 << 28) / x < y) return epuc("too large", "Image too large to decode");
4509 if (first) return epuc("no clear code", "Corrupt GIF");
4513 if (avail > 4096) return epuc("too many codes", "Corrupt GIF");
4518 return epuc("illegal code in raster", "Corrupt GIF");
4529 return epuc("illegal code in raster", "Corrupt GIF");
4558 if (g->out == 0) return epuc("outofmem", "Out of memory");
4565 if (g->out == 0) return epuc("outofmem", "Out of memory");
4582 return epuc("bad Image Descriptor", "Corrupt GIF");
4612 return epuc("missing color table", "Corrupt GIF");
4645 return epuc("unknown code", "Corrupt GIF");