This commit is contained in:
Ingo Weyrich 2019-09-25 15:18:40 +02:00
commit 6026c110fa
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Version=1.1 Version=1.0
Name=RawTherapee Name=RawTherapee
GenericName=Raw Photo Editor GenericName=Raw Photo Editor
GenericName[cs]=Editor raw obrázků GenericName[cs]=Editor raw obrázků

View File

@ -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