ScaleQuantumToMap used with ClampToQuantum in IM7 not IM6

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

ScaleQuantumToMap used with ClampToQuantum in IM7 not IM6

Post by NicolasRobidoux »

In IM7 enhance.c, ScaleQuantumToMap is generally (but not always: I would guess that exceptions have to do with values known to be in range ahead of time) used with ClampToQuantum (meaning that values are first clamped, then scaled), but never in IM6 enhance.c (no clamping ever precedes the scaling).
Just making sure that this is the way it's supposed to be.
Post Reply