X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=coders%2Fotb.c;h=9ae2195040686dc1d81935bbf6269fb276166818;hb=77b33baacfae08c3794dd19df1862fb645ebe265;hp=5f16098fb6c87f9ad36bfc47f32aaa553dfe797e;hpb=501c5597e8d10b6102a4566f2740f4166bdd545f;p=imagemagick diff --git a/coders/otb.c b/coders/otb.c index 5f16098fb..9ae219504 100644 --- a/coders/otb.c +++ b/coders/otb.c @@ -17,7 +17,7 @@ % January 2000 % % % % % -% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization % +% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization % % dedicated to making software imaging solutions freely available. % % % % You may not use this file except in compliance with the License. You may % @@ -39,6 +39,7 @@ Include declarations. */ #include "MagickCore/studio.h" +#include "MagickCore/attribute.h" #include "MagickCore/blob.h" #include "MagickCore/blob-private.h" #include "MagickCore/cache.h" @@ -333,7 +334,7 @@ static MagickBooleanType WriteOTBImage(const ImageInfo *image_info,Image *image, status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); if (status == MagickFalse) return(status); - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) (void) TransformImageColorspace(image,sRGBColorspace,exception); /* Convert image to a bi-level image. @@ -363,7 +364,7 @@ static MagickBooleanType WriteOTBImage(const ImageInfo *image_info,Image *image, byte=0; for (x=0; x < (ssize_t) image->columns; x++) { - if (GetPixelIntensity(image,p) < ((Quantum) QuantumRange/2.0)) + if (GetPixelIntensity(image,p) < (QuantumRange/2.0)) byte|=0x1 << (7-bit); bit++; if (bit == 8)