15 Commits

Author SHA1 Message Date
heckflosse
8b44ed0fd8 Speedup for microcontrast, issue #3867 2017-05-08 18:42:13 +02:00
Flössie
61b913f7f9 Fix rtengine::min() for NaNs (#3742)
Also fix `LuminanceToneCurve::Apply()`. Kudos to @heckflosse!
2017-03-08 20:23:57 +01:00
Flössie
6e7712831a Break min() and max() parameter dependencies
Also convert most functions in `rt_math.h` to `constexpr` by
implementing `min()` and `max()` natively. `constexpr` indeed has a
positive impact on the generated assembly.
2017-03-01 18:13:16 +01:00
Flössie
d72d931c9e Variadic template version of rtengine::(min|max)()
This change allows for an arbitrary number of arguments to `min()` and
`max()` by using recursion on variadic template functions. The
disassembly of GCC 6.3 was carefully checked for regressions, but
nothing was found other than the flipping of arguments (recursion is
now `(((a,b),c),d)` and was `(d,(c,(a,b)))` before).

I also unified the common type `_Tp` to to the even more common `T`.
2017-02-28 20:57:19 +01:00
Flössie
88336cb897 Make RT build without __USE_MISC and __USE_XOPEN 2017-02-14 21:02:39 +01:00
Flössie
759676788b Use BABL method for 16-to-8 bit conversion (#3429) 2016-09-22 21:52:07 +02:00
heckflosse
ab2be87333 Simplified float2uint16range(..), removed StopWatches 2016-09-21 14:05:30 +02:00
heckflosse
c67b986744 add faster implementation to clip float to [0;65535] and round 2016-09-21 00:22:42 +02:00
Flössie
787a892737 Make further use of median() and replace ULIM and ULIMV (#3346) 2016-06-26 15:14:45 +02:00
Flössie
2fa1ad138e Start median rework (#3346)
- Added basic algorithms to `rtengine/median.h`
- Converted first occurrences
2016-06-14 22:08:03 +02:00
Hombre
de7c6d773a Updated code taking into account Adam's comments + bugfix 2016-02-13 17:54:47 +01:00
heckflosse
ee665d6790 Amaze Demosaic: Speedup, cleaned code, changed nyquist code 2016-01-26 13:10:38 +01:00
heckflosse
2017a0e592 Code review and speedup for Amaze Demosaic 2016-01-24 01:44:35 +01:00
DrSlony
0e0cfb9b25 Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle 2015-08-11 11:55:03 +02:00
torger
d5ca351c20 Issue 2134: removed obsolete raw highlight preservation setting from GUI (still left in procparams for backwards compatilibility) 2015-07-10 12:00:36 +02:00