MCPcopy Create free account
hub / github.com/DentonW/DevIL / As16Bit

Function As16Bit

DevIL/src-IL/src/il_dds-save.cpp:376–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376ILushort As16Bit(ILint r, ILint g, ILint b)
377{
378 return (Mul8Bit(r,31) << 11) + (Mul8Bit(g,63) << 5) + Mul8Bit(b,31);
379}
380
381
382ILushort *CompressTo565(ILimage *Image)

Callers 1

CompressTo565Function · 0.85

Calls 1

Mul8BitFunction · 0.85

Tested by

no test coverage detected