Colortoning Lab regions: some vectorized precalculations in first loop, #4914

This commit is contained in:
heckflosse
2018-11-01 22:30:26 +01:00
parent dd635de72c
commit 906cf63ecd
4 changed files with 1354 additions and 5 deletions

View File

@@ -651,7 +651,9 @@ public:
* @param h 'h' channel return value, in [-PI ; +PI] (return value)
*/
static void Lab2Lch(float a, float b, float &c, float &h);
#ifdef __SSE2__
static void Lab2Lch(float *a, float *b, float *c, float *h, int w);
#endif
/**
* @brief Convert 'c' and 'h' channels of the Lch color space to the 'a' and 'b' channels of the L*a*b color space (channel 'L' is identical [0 ; 32768])