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

Function read24AsRgb

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

Source from the content-addressed store, hash-verified

229}
230
231color_t read24AsRgb(std::ifstream &file)
232{
233 const uint8_t b = read8(file);
234 const uint8_t g = read8(file);
235 const uint8_t r = read8(file);
236 return rgba(r, g, b, 255);
237}
238
239color_t read32AsRgb(std::ifstream &file, bool hasAlpha)
240{

Callers 2

readRunLengthColorFunction · 0.85
readImageFunction · 0.85

Calls 2

read8Function · 0.85
rgbaFunction · 0.85

Tested by

no test coverage detected