diff --git a/codecs/visdif/visdif.cpp b/codecs/visdif/visdif.cpp index c48729ad..0fcb1d16 100644 --- a/codecs/visdif/visdif.cpp +++ b/codecs/visdif/visdif.cpp @@ -12,15 +12,12 @@ static float SrgbToLinear[256]; inline void gammaLookupTable() { SrgbToLinear[0] = 0; for (int i = 1; i < 256; ++i) { - SrgbToLinear[i] = static_cast(255.0 * pow(i / 255.0, GAMMA)); - } + SrgbToLinear[i] = static_cast(255.0 * pow(i / 255.0, GAMMA)); + } } // Turns an interleaved RGBA buffer into 4 planes for each color channel -void planarize(std::vector& img, - const uint8_t* rgba, - int width, - int height) { +void planarize(std::vector& img, const uint8_t* rgba, int width, int height) { assert(img.size() == 0); img.push_back(ImageF(width, height)); img.push_back(ImageF(width, height)); diff --git a/codecs/visdif/visdif.wasm b/codecs/visdif/visdif.wasm index ebb11eab..96cbccb7 100755 Binary files a/codecs/visdif/visdif.wasm and b/codecs/visdif/visdif.wasm differ