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