% 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)
{
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)
{