z=(CIEK*Z/D50Z+16.0)/116.0;
*L=((116.0*y)-16.0)/100.0;
*a=(500.0*(x-y))/255.0;
+ *b=(200.0*(y-z))/255.0;
+#if !defined(MAGICKCORE_HDRI_SUPPORT)
if (*a < 0.0)
*a+=1.0;
- *b=(200.0*(y-z))/255.0;
if (*b < 0.0)
*b+=1.0;
+#endif
}
static MagickBooleanType sRGBTransformImage(Image *image,
assert(Y != (double *) NULL);
assert(Z != (double *) NULL);
y=(100.0*L+16.0)/116.0;
+#if !defined(MAGICKCORE_HDRI_SUPPORT)
x=y+255.0*(a > 0.5 ? a-1.0 : a)/500.0;
z=y-255.0*(b > 0.5 ? b-1.0 : b)/200.0;
+#else
+ x=y+255.0*a/500.0;
+ z=y-255.0*b/200.0;
+#endif
if (pow(x,3.0) > CIEEpsilon)
x=pow(x,3.0);
else
}
if (LocaleCompare("swirl",option+1) == 0)
{
- flags=ParseGeometry(arg2,&geometry_info);
+ flags=ParseGeometry(arg1,&geometry_info);
if ((flags & RhoValue) == 0)
- CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg2);
+ CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
new_image=SwirlImage(_image,geometry_info.rho,
_image->interpolate,_exception);
break;