MCPcopy Create free account
hub / github.com/Atarity/Lightpack / gammaCorrection

Function gammaCorrection

Software/math/PrismatikMath.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 void gammaCorrection(double gamma, StructRgb & eRgb)
51 {
52 eRgb.r = 4095 * pow(eRgb.r / 4095.0, gamma);
53 eRgb.g = 4095 * pow(eRgb.g / 4095.0, gamma);
54 eRgb.b = 4095 * pow(eRgb.b / 4095.0, gamma);
55 }
56
57 void brightnessCorrection(unsigned int brightness, StructRgb & eRgb) {
58

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected