Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
inline int changeGamma(int value, int gamma)
38
{
39
return kClamp(int(pow(value / 255.0, 100.0 / gamma) * 255), 0, 255);
40
}
41
42
inline int changeUsingTable(int value, const int table[])
43
{
Callers
1
setFilter
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected