MCPcopy Create free account
hub / github.com/YACReader/yacreader / changeGamma

Function changeGamma

YACReader/render.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37inline int changeGamma(int value, int gamma)
38{
39 return kClamp(int(pow(value / 255.0, 100.0 / gamma) * 255), 0, 255);
40}
41
42inline int changeUsingTable(int value, const int table[])
43{

Callers 1

setFilterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected