Fix non-SSE2 build
This commit is contained in:
parent
851a12e165
commit
5a19632475
@ -210,10 +210,12 @@ public:
|
|||||||
return r * workingspace[1][0] + g * workingspace[1][1] + b * workingspace[1][2];
|
return r * workingspace[1][0] + g * workingspace[1][1] + b * workingspace[1][2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __SSE2__
|
||||||
static vfloat rgbLuminance(vfloat r, vfloat g, vfloat b, const vfloat workingspace[3])
|
static vfloat rgbLuminance(vfloat r, vfloat g, vfloat b, const vfloat workingspace[3])
|
||||||
{
|
{
|
||||||
return r * workingspace[0] + g * workingspace[1] + b * workingspace[2];
|
return r * workingspace[0] + g * workingspace[1] + b * workingspace[2];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Convert red/green/blue to L*a*b
|
* @brief Convert red/green/blue to L*a*b
|
||||||
|
Loading…
x
Reference in New Issue
Block a user