if (!rast)
{
- ERROR("Evas Tiff loader: out of memory");
+ ERR("Evas Tiff loader: out of memory");
TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
TIFFClose(tif);
if (rgba_image.rgba.put.any == NULL)
{
- ERROR("Evas Tiff loader: no put function");
+ ERR("Evas Tiff loader: no put function");
_TIFFfree(rast);
TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
}
else
{
- INFO("channel bits == %i", (int)rgba_image.rgba.samplesperpixel);
+ INF("channel bits == %i", (int)rgba_image.rgba.samplesperpixel);
}
_TIFFfree(rast);
/* Header */
if (sscanf(line, "%i %i %i %i", &w, &h, &ncolors, &cpp) != 4)
{
- ERROR("XPM ERROR: XPM file malformed header");
+ ERR("XPM ERROR: XPM file malformed header");
free(line);
fclose(f);
xpm_parse_done();
}
if ((ncolors > 32766) || (ncolors < 1))
{
- ERROR("XPM ERROR: XPM files with colors > 32766 or < 1 not supported");
+ ERR("XPM ERROR: XPM files with colors > 32766 or < 1 not supported");
free(line);
fclose(f);
xpm_parse_done();
}
if ((cpp > 5) || (cpp < 1))
{
- ERROR("XPM ERROR: XPM files with characters per pixel > 5 or < 1not supported");
+ ERR("XPM ERROR: XPM files with characters per pixel > 5 or < 1not supported");
free(line);
fclose(f);
xpm_parse_done();
}
if ((w > IMG_MAX_SIZE) || (w < 1))
{
- ERROR("XPM ERROR: Image width > IMG_MAX_SIZE or < 1 pixels for file");
+ ERR("XPM ERROR: Image width > IMG_MAX_SIZE or < 1 pixels for file");
free(line);
fclose(f);
xpm_parse_done();
}
if ((h > IMG_MAX_SIZE) || (h < 1))
{
- ERROR("XPM ERROR: Image height > IMG_MAX_SIZE or < 1 pixels for file");
+ ERR("XPM ERROR: Image height > IMG_MAX_SIZE or < 1 pixels for file");
free(line);
fclose(f);
xpm_parse_done();
}
if (IMG_TOO_BIG(w, h))
{
- fprintf(stderr,
- "XPM ERROR: Image just too big to ever allocate");
+ ERR("XPM ERROR: Image just too big to ever allocate");
free(line);
fclose(f);
xpm_parse_done();