MCPcopy Create free account
hub / github.com/carbonengine/trinity / ColorTo565

Function ColorTo565

trinity/Tr2DxtCompressor.cpp:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174word ColorTo565( const uint8_t* color )
175{
176 // BGR
177 return ( ( color[2] >> 3 ) << 11 ) | ( ( color[1] >> 2 ) << 5 ) | ( color[0] >> 3 );
178}
179
180word NormalYTo565( uint8_t y )
181{

Callers 4

CompressYCoCgDXT5Function · 0.85
CompressImageDXT5Function · 0.85
CompressNormalMapDXT5Function · 0.85
CompressImageDXT1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected