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

Function getb

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

Source from the content-addressed store, hash-verified

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; }
57inline color_t rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255)
58{

Callers 1

setColorInImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected