Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
inline int changeContrast(int value, int contrast)
33
{
34
return kClamp(((value - 127) * contrast / 100) + 127, 0, 255);
35
}
36
37
inline int changeGamma(int value, int gamma)
38
{
Callers
1
setFilter
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected