Code

Fixes some wrong uses of CLAMP_D_TO_U8 in filtering code (mostly based on my misunder...
authorjaspervdg <jaspervdg@users.sourceforge.net>
Sun, 5 Apr 2009 19:45:12 +0000 (19:45 +0000)
committerjaspervdg <jaspervdg@users.sourceforge.net>
Sun, 5 Apr 2009 19:45:12 +0000 (19:45 +0000)
commit423740a942b7c6ce5313bfd4d09fe02c4feabbe7
tree8a657772c23f54842f47c4453a25b270a9b7e2fa
parent50beb2f2d201ea5d5fcaf5e38b202d1e677f1a85
Fixes some wrong uses of CLAMP_D_TO_U8 in filtering code (mostly based on my misunderstanding of this clamp function that actually does round+clamp). Plus some extra comments to warn of this behaviour.
src/display/nr-filter-colormatrix.cpp
src/display/nr-filter-component-transfer.cpp
src/display/nr-filter-composite.cpp
src/display/nr-filter-convolve-matrix.cpp
src/display/nr-filter-diffuselighting.cpp
src/display/nr-filter-specularlighting.cpp
src/display/nr-filter-turbulence.cpp
src/display/nr-filter-utils.h