MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / RGBA16

Function RGBA16

Source/HLEGraphics/ConvertTile.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96
97u32 RGBA16(u16 v)
98{
99 u32 r {FiveToEight[(v>>11)&0x1f]};
100 u32 g {FiveToEight[(v>> 6)&0x1f]};
101 u32 b {FiveToEight[(v>> 1)&0x1f]};
102 u32 a {((v )&0x01)? 255 : 0};
103
104 return (a<<24) | (b<<16) | (g<<8) | r;
105}
106
107u32 IA16(u16 v)
108{

Callers 1

ConvertRGBA16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected