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

Function RGBA_to_RGB8

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

Source from the content-addressed store, hash-verified

27}
28
29static inline void RGBA_to_RGB8(const u8 *src, u8* r, u8* g, u8* b)
30{
31 u32 srcColor = *(u32*)src;
32 *b = Convert6To8((srcColor >> 6) & 0x3f);
33 *g = Convert6To8((srcColor >> 12)& 0x3f);
34 *r = Convert6To8((srcColor >> 18)& 0x3f);
35}
36
37static inline u8 RGB8_to_I(u8 r, u8 g, u8 b)
38{

Callers 1

EncodeRGBA6Function · 0.85

Calls 1

Convert6To8Function · 0.85

Tested by

no test coverage detected