MCPcopy Create free account
hub / github.com/defold/defold / expand_565

Function expand_565

engine/dlib/src/basis/encoder/basisu_gpu_texture.cpp:831–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829 };
830
831 static color_rgba expand_565(const color_rgba& c)
832 {
833 return color_rgba((c.r << 3) | (c.r >> 2), (c.g << 2) | (c.g >> 4), (c.b << 3) | (c.b >> 2), 255);
834 }
835
836 // We only support CC_MIXED non-alpha blocks here because that's the only mode the transcoder uses at the moment.
837 bool unpack_fxt1(const void *p, color_rgba *pPixels)

Callers 1

unpack_fxt1Function · 0.85

Calls 1

color_rgbaClass · 0.85

Tested by

no test coverage detected