From: cristy Date: Sat, 4 Aug 2012 23:28:27 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d22cf02803a6353976b3da1f56c6d5b931862110;p=imagemagick --- diff --git a/MagickCore/gem.c b/MagickCore/gem.c index 8d0e25870..8b0ba2158 100644 --- a/MagickCore/gem.c +++ b/MagickCore/gem.c @@ -436,6 +436,21 @@ MagickPrivate void ConvertHWBToRGB(const double hue,const double whiteness, % component of the HCL color space. % */ + +static inline double MagickMax(const double x,const double y) +{ + if (x > y) + return(x); + return(y); +} + +static inline double MagickMin(const double x,const double y) +{ + if (x < y) + return(x); + return(y); +} + MagickPrivate void ConvertRGBToHCL(const double red,const double green, const double blue,double *hue,double *chroma,double *luma) { @@ -579,21 +594,6 @@ MagickPrivate void ConvertRGBToHSB(const double red,const double green, % component of the HSL color space. % */ - -static inline double MagickMax(const double x,const double y) -{ - if (x > y) - return(x); - return(y); -} - -static inline double MagickMin(const double x,const double y) -{ - if (x < y) - return(x); - return(y); -} - MagickExport void ConvertRGBToHSL(const double red,const double green, const double blue,double *hue,double *saturation,double *lightness) {