
15 Oct
2012
15 Oct
'12
8:15 a.m.
On Sun, Oct 14, 2012 at 1:33 PM, Fabien Castan <fabcastan@gmail.com> wrote:
+ const bits32f clampedValue = std::min( + (bits32f)channel_traits<DstChannelV>::max_value(), + std::max( (bits32f)channel_traits<DstChannelV>::min_value(), convertedValue ) ); + + return DstChannelV( static_cast< dst_integer_t >(clampedValue) ); } };
Is a clamp function not available? boost::algorithm has one -- Olaf