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

Function changeContrast

YACReader/render.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32inline int changeContrast(int value, int contrast)
33{
34 return kClamp(((value - 127) * contrast / 100) + 127, 0, 255);
35}
36
37inline int changeGamma(int value, int gamma)
38{

Callers 1

setFilterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected