mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 18:49:50 +00:00
fix
This commit is contained in:
@@ -10,6 +10,7 @@ using namespace butteraugli;
|
||||
static double SrgbToLinear[256];
|
||||
|
||||
inline void gammaLookupTable() {
|
||||
SrgbToLinear[0] = 0;
|
||||
for (int i = 1; i < 256; ++i) {
|
||||
SrgbToLinear[i] = pow(i / 255.0, GAMMA);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user