break;
}
}
- q[i]=ClampToQuantum(pixel);
+ q[i]=ClampPixel(pixel);
}
p+=GetPixelChannels(composite_image);
channels=GetPixelChannels(composite_image);
#undef index
+static inline Quantum ClampPixel(const MagickRealType value)
+{
+#if !defined(MAGICKCORE_HDRI_SUPPORT)
+ return((Quantum) value);
+#else
+ if (value < 0.0)
+ return((Quantum) 0.0);
+ if (value >= (MagickRealType) QuantumRange)
+ return((Quantum) QuantumRange);
+ return((Quantum) value);
+#endif
+}
+
static inline Quantum GetPixela(const Image *restrict image,
const Quantum *restrict pixel)
{
%
*/
-static inline Quantum ClampPixel(const MagickRealType value)
-{
-#if !defined(MAGICKCORE_HDRI_SUPPORT)
- return((Quantum) value);
-#else
- if (value < 0.0f)
- return(0.0);
- if (value >= (MagickRealType) QuantumRange)
- return((Quantum) QuantumRange);
- return(value);
-#endif
-}
-
MagickExport MagickBooleanType ClampImage(Image *image,ExceptionInfo *exception)
{
#define ClampImageTag "Clamp/Image"
}
switch (sun_info.maptype)
{
+ case RMT_NONE:
+ break;
case RMT_EQUAL_RGB:
{
unsigned char