]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 9 Jan 2015 22:19:01 +0000 (22:19 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 9 Jan 2015 22:19:01 +0000 (22:19 +0000)
MagickCore/attribute.c
MagickCore/quantize.c

index e21276cc2f231c5f65413f88fec12b5aaa22a369..906e2dc776b660d1409730c6b1ef4b5f51c05e1c 100644 (file)
@@ -890,20 +890,6 @@ MagickExport MagickBooleanType IsImageOpaque(const Image *image,
 %    o exception: return any errors or warnings in this structure.
 %
 */
-
-static inline Quantum ClampPixel(const MagickRealType value)
-{
-#if !defined(MAGICKCORE_HDRI_SUPPORT)
-  return((Quantum) value);
-#else
-  if (value < 0.0f)
-    return(0.0f);
-  if (value >= (MagickRealType) QuantumRange)
-    return((Quantum) QuantumRange);
-  return(value);
-#endif
-}
-
 MagickExport MagickBooleanType SetImageDepth(Image *image,
   const size_t depth,ExceptionInfo *exception)
 {
index ab62ee3d244a09442abe00625f4ca1a2d3bd9867..58fdff66d9834087e4f1f47685285379d9a93f5a 100644 (file)
@@ -478,19 +478,6 @@ static inline void AssociateAlphaPixelInfo(const CubeInfo *cube_info,
   alpha_pixel->alpha=(double) pixel->alpha;
 }
 
-static inline Quantum ClampPixel(const MagickRealType value)
-{
-  if (value < 0.0f)
-    return(0);
-  if (value >= (MagickRealType) QuantumRange)
-    return((Quantum) QuantumRange);
-#if !defined(MAGICKCORE_HDRI_SUPPORT)
-  return((Quantum) (value+0.5f));
-#else
-  return(value);
-#endif
-}
-
 static inline size_t ColorToNodeId(const CubeInfo *cube_info,
   const RealPixelInfo *pixel,size_t index)
 {