MCPcopy Create free account
hub / github.com/IENT/YUView / getr

Function getr

YUViewLib/src/decoder/decoderTarga.cpp:53–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51const color_t color_a_shift = 24;
52
53inline uint8_t getr(color_t c) { return (c >> color_r_shift) & 0xff; }
54inline uint8_t getg(color_t c) { return (c >> color_g_shift) & 0xff; }
55inline uint8_t getb(color_t c) { return (c >> color_b_shift) & 0xff; }
56inline uint8_t geta(color_t c) { return (c >> color_a_shift) & 0xff; }

Callers 1

setColorInImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected