#include "MagickCore/attribute.h"
#include "MagickCore/cache.h"
#include "MagickCore/color.h"
+#include "MagickCore/colorspace-private.h"
#include "MagickCore/configure.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
ThrowBinaryException(severity,tag,context); \
}
+ ExceptionInfo
+ *exception;
+
MagickBooleanType
status;
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(name != (const char *) NULL);
+ exception=(&image->exception);
if ((datum == (const void *) NULL) || (length == 0))
{
char
}
#if !defined(MAGICKCORE_LCMS_DELEGATE)
(void) ThrowMagickException(&image->exception,GetMagickModule(),
- MissingDelegateWarning,"DelegateLibrarySupportNotBuiltIn","`%s' (LCMS)",
- image->filename);
+ MissingDelegateWarning,"DelegateLibrarySupportNotBuiltIn",
+ "`%s' (LCMS)",image->filename);
#else
{
cmsHPROFILE
source_type,
target_type;
- ExceptionInfo
- *exception;
-
int
intent;
**restrict source_pixels,
**restrict target_pixels;
- exception=(&image->exception);
target_profile=(cmsHPROFILE) NULL;
if (icc_profile != (StringInfo *) NULL)
{
(source_colorspace != LabColorspace) &&
(source_colorspace != XYZColorspace) &&
(source_colorspace != YCbCrColorspace) &&
- (image->colorspace != RGBColorspace))
+ (IsRGBColorspace(image->colorspace) == MagickFalse))
ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch",
name);
switch (image->rendering_intent)
ThrowProfileException(ResourceLimitError,
"MemoryAllocationFailed",image->filename);
}
- if (SetImageStorageClass(image,DirectClass) == MagickFalse)
+ if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
{
target_pixels=DestroyPixelThreadSet(target_pixels);
source_pixels=DestroyPixelThreadSet(source_pixels);
return(MagickFalse);
}
if (target_colorspace == CMYKColorspace)
- (void) SetImageColorspace(image,target_colorspace);
+ (void) SetImageColorspace(image,target_colorspace,exception);
status=MagickTrue;
progress=0;
image_view=AcquireCacheView(image);
}
}
image_view=DestroyCacheView(image_view);
- (void) SetImageColorspace(image,target_colorspace);
+ (void) SetImageColorspace(image,target_colorspace,exception);
switch (signature)
{
case cmsSigRgbData: