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

Function rgba

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

Source from the content-addressed store, hash-verified

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{
59 return ((r << color_r_shift) | (g << color_g_shift) | (b << color_b_shift) |
60 (a << color_a_shift));
61}
62
63static inline uint8_t scale_5bits_to_8bits(uint8_t v)
64{

Callers 6

read16AsRgbFunction · 0.85
read24AsRgbFunction · 0.85
read32AsRgbFunction · 0.85
readColormapFunction · 0.85
readRunLengthColorFunction · 0.85
readImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected