[Digikam-devel] extragear/graphics/digikam/libs/dimg

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Feb 23 16:27:03 GMT 2006


SVN commit 512791 by mwiesweg:

digikam from trunk: HSL modifier
- DColor, getHSL and setRGB
    - remove hardcoded 255.0 values
    - fix wrong assignment of variable in setRGB
      (use double value hue in 0..360, not int h in 0..255)
- HSLMOdifier
    - use mathematically simplified version of algorithm in setLightness and setSaturation,
      old version had integer overflows with 16 bit and rounding errors
    - in setLightness, the value range was -200..200, while it is -100..100 in setSaturation
      and in the widget. Changed this to use range -100..100.
- use lround instead of truncating to int in BCGModifier, HSLModifier

Please test if the HSL filter now has the desired effect for both 8 bit and 16 bit.
CCMAIL:digikam-devel at kde.org



 M  +90 -77    dcolor.cpp  
 M  +11 -9     filters/bcgmodifier.cpp  
 M  +74 -22    filters/hslmodifier.cpp  





More information about the Digikam-devel mailing list