GetMagickOpenCLEnvParam(clEnv, MAGICK_OPENCL_ENV_PARAM_OPENCL_DISABLED
, sizeof(MagickBooleanType), &flag, exception);
- if (flag == MagickTrue)
+ if (flag != MagickFalse)
return MagickFalse;
GetMagickOpenCLEnvParam(clEnv, MAGICK_OPENCL_ENV_PARAM_OPENCL_INITIALIZED
GetMagickOpenCLEnvParam(clEnv, MAGICK_OPENCL_ENV_PARAM_OPENCL_DISABLED
, sizeof(MagickBooleanType), &flag, exception);
- if (flag == MagickTrue)
+ if (flag != MagickFalse)
return MagickFalse;
}
assert(exception != (ExceptionInfo *) NULL);
status = checkOpenCLEnvironment(exception);
- if (status == MagickTrue)
+ if (status != MagickFalse)
{
status = checkAccelerateCondition(image, channel);
- if (status == MagickTrue)
+ if (status != MagickFalse)
{
status = ComputeFunctionImage(image, channel, function, number_parameters, parameters, exception);
}
#endif
status=GetPathAttributes(filename,&image->blob->properties);
#if defined(S_ISFIFO)
- if ((status == MagickTrue) && S_ISFIFO(image->blob->properties.st_mode))
+ if ((status != MagickFalse) && S_ISFIFO(image->blob->properties.st_mode))
{
image->blob->file_info.file=(FILE *) fopen_utf8(filename,type);
if (image->blob->file_info.file == (FILE *) NULL)
if (GetBlobError(image) != MagickFalse)
ThrowFileException(exception,FileOpenError,
"AnErrorHasOccurredWritingToFile",image->filename);
- if (temporary == MagickTrue)
+ if (temporary != MagickFalse)
{
/*
Copy temporary image file to permanent.
RestoreMSCWarning
clone = CloneKernelInfo(last);
RotateKernelInfo(clone, angle);
- if ( SameKernelInfo(kernel, clone) == MagickTrue )
+ if ( SameKernelInfo(kernel, clone) != MagickFalse )
break;
LastKernelInfo(last)->next = clone;
last = clone;
/* Apply special methods with special requirments
** For example, single run only, or post-processing requirements
*/
- if ( special == MagickTrue )
+ if ( special != MagickFalse )
{
rslt_image=CloneImage(image,0,0,MagickTrue,exception);
if (rslt_image == (Image *) NULL)
}
static MagickBooleanType EnableOpenCLInternal(MagickCLEnv clEnv) {
- if (clEnv->OpenCLInitialized == MagickTrue
+ if (clEnv->OpenCLInitialized != MagickFalse
&& clEnv->platform != NULL
&& clEnv->device != NULL) {
clEnv->OpenCLDisabled = MagickFalse;
clEnv->OpenCLInitialized = MagickTrue;
- if (clEnv->OpenCLDisabled == MagickTrue)
+ if (clEnv->OpenCLDisabled != MagickFalse)
goto cleanup;
clEnv->OpenCLDisabled = MagickTrue;
,GetOpenCLCachedFilesDirectory()
,DirectorySeparator,IMAGEMAGICK_PROFILE_FILE);
- if (clEnv->regenerateProfile == MagickTrue) {
+ if (clEnv->regenerateProfile != MagickFalse) {
profileType = DS_EVALUATE_ALL;
}
else {
continue;
}
- if (sequence == MagickTrue)
+ if (sequence != MagickFalse)
continue;
switch (group)
tag=(ReadBlobLSBShort(image) << 16) | ReadBlobLSBShort(image);
stream_info->remaining=(size_t) ReadBlobLSBLong(image);
if ((tag != 0xFFFEE000) || (stream_info->remaining <= 64) ||
- (EOFBlob(image) == MagickTrue))
+ (EOFBlob(image) != MagickFalse))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
stream_info->count=0;
stream_info->segment_count=ReadBlobLSBLong(image);
c->g[1] = (unsigned char) C565_green(c1);
c->b[1] = (unsigned char) C565_blue(c1);
- if (ignoreAlpha == MagickTrue || c0 > c1)
+ if (ignoreAlpha != MagickFalse || c0 > c1)
{
c->r[2] = (unsigned char) ((2 * c->r[0] + c->r[1]) / 3);
c->g[2] = (unsigned char) ((2 * c->g[0] + c->g[1]) / 3);
}
}
- if (same == MagickTrue)
+ if (same != MagickFalse)
return MagickFalse;
}
}
}
- if (match == MagickTrue)
+ if (match != MagickFalse)
continue;
points[count].x = point.x;
break;
}
}
- if (next_pixel == MagickTrue)
+ if (next_pixel != MagickFalse)
continue;
}
GIFOutputCode((size_t) waiting_code);
if (profile == (StringInfo *) NULL)
ThrowReaderException(ResourceLimitError,
"MemoryAllocationFailed");
- if (i8bim == MagickTrue)
+ if (i8bim != MagickFalse)
(void) CopyMagickString(name,"8bim",sizeof(name));
- else if (icc == MagickTrue)
+ else if (icc != MagickFalse)
(void) CopyMagickString(name,"icc",sizeof(name));
- else if (iptc == MagickTrue)
+ else if (iptc != MagickFalse)
(void) CopyMagickString(name,"iptc",sizeof(name));
- else if (magick == MagickTrue)
+ else if (magick != MagickFalse)
{
(void) CopyMagickString(name,"magick",sizeof(name));
image->gamma=StringToDouble((char *) info+6,(char **) NULL);
if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)
(void) TransformImageColorspace(image,sRGBColorspace,exception);
- if(IssRGBCompatibleColorspace(image->colorspace) == MagickTrue) { ipl_info.colors = 3; }
+ if(IssRGBCompatibleColorspace(image->colorspace) != MagickFalse) { ipl_info.colors = 3; }
else{ ipl_info.colors = 1; }
ipl_info.size = (unsigned int) (28 +
bits_per_pixel=ReadBlobMSBShort(image);
status=(width != 0UL) && (height == 0UL) && ((bits_per_pixel == 8) ||
(bits_per_pixel == 24)) ? MagickTrue : MagickFalse;
- if (status == MagickTrue)
+ if (status != MagickFalse)
{
/*
Allocate next image structure.
if (status == MagickFalse)
break;
}
- } while (status == MagickTrue);
+ } while (status != MagickFalse);
(void) CloseBlob(image);
return(GetFirstImageInList(image));
}
(ping_found_gAMA != MagickTrue ||
(image->gamma > .45 && image->gamma < .46)) &&
(ping_found_cHRM != MagickTrue ||
- ping_found_sRGB_cHRM == MagickTrue) &&
+ ping_found_sRGB_cHRM != MagickFalse) &&
ping_found_iCCP != MagickTrue)
{
png_set_sRGB(ping,ping_info,
layer_info[i].page.width=(ssize_t) (x-layer_info[i].page.x);
layer_info[i].page.height=(ssize_t) (y-layer_info[i].page.y);
layer_info[i].channels=ReadBlobMSBShort(image);
- if (check_background == MagickTrue)
+ if (check_background != MagickFalse)
{
size_t
quantum;
if (image->scene >= (image_info->scene+image_info->number_scenes-1))
break;
status=TIFFReadDirectory(tiff) != 0 ? MagickTrue : MagickFalse;
- if (status == MagickTrue)
+ if (status != MagickFalse)
{
/*
Allocate next image structure.
if (status == MagickFalse)
break;
}
- } while (status == MagickTrue);
+ } while (status != MagickFalse);
(void) TIFFSetWarningHandler(warning_handler);
(void) TIFFSetErrorHandler(error_handler);
TIFFClose(tiff);
DecodeLabImage(image,exception);
DestroyTIFFInfo(&tiff_info);
DisableMSCWarning(4127)
- if (0 && (image_info->verbose == MagickTrue))
+ if (0 && (image_info->verbose != MagickFalse))
RestoreMSCWarning
TIFFPrintDirectory(tiff,stdout,MagickFalse);
(void) TIFFWriteDirectory(tiff);
assert(image->signature == MagickSignature);
status=SetImageProgress(image,LoadImagesTag,TellBlob(image),
GetBlobSize(image));
- return(status == MagickTrue ? 0 : 1);
+ return(status != MagickFalse ? 0 : 1);
}
/* Set fill color */