Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axmolengine/axmol
/ clamp
Function
clamp
core/platform/Image.cpp:2818–2821 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2816
}
2817
2818
static inline uint8_t clamp(int x)
2819
{
2820
return (uint8_t)(x >= 0 ? (x < 255 ? x : 255) : 0);
2821
}
2822
2823
void Image::reversePremultipliedAlpha()
2824
{
Callers
9
reversePremultipliedAlpha
Method · 0.70
setPitch
Method · 0.50
decompress_parallel_sync
Method · 0.50
clampByte
Method · 0.50
clampSByte
Method · 0.50
renormalizeEAC
Method · 0.50
decompressGZ
Method · 0.50
Color
Function · 0.50
Color.h
File · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected