#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
#include "images/images.h"
#include "images/error.h"
#include "images/color.h"
pixel_size = channels = flags_to_pixel_size(flags);
if (!channels || channels > 4)
{
- IMAGE_ERROR(ctx, IMAGE_ERROR_INVALID_PIXEL_FORMAT, "Invalid number of color channels");
+ IMAGE_ERROR(ctx, IMAGE_ERROR_INVALID_PIXEL_FORMAT, "Invalid number of color channels (%u)", channels);
return NULL;
}
switch (channels)