MCPcopy Create free account
hub / github.com/dolphin-emu/dolphin / RGBA_to_RGBA8

Function RGBA_to_RGBA8

Source/Core/VideoBackends/Software/TextureEncoder.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19
20static inline void RGBA_to_RGBA8(const u8 *src, u8* r, u8* g, u8* b, u8* a)
21{
22 u32 srcColor = *(u32*)src;
23 *a = Convert6To8(srcColor & 0x3f);
24 *b = Convert6To8((srcColor >> 6) & 0x3f);
25 *g = Convert6To8((srcColor >> 12)& 0x3f);
26 *r = Convert6To8((srcColor >> 18)& 0x3f);
27}
28
29static inline void RGBA_to_RGB8(const u8 *src, u8* r, u8* g, u8* b)
30{

Callers 1

TextureEncoder.cppFile · 0.85

Calls 1

Convert6To8Function · 0.85

Tested by

no test coverage detected