Searched refs:colour (Results 1 – 2 of 2) sorted by relevance
45 static int FloatTo565( Vec3::Arg colour ) in FloatTo565() argument48 int r = FloatToInt( 31.0f*colour.X(), 31 ); in FloatTo565()49 int g = FloatToInt( 63.0f*colour.Y(), 63 ); in FloatTo565()50 int b = FloatToInt( 31.0f*colour.Z(), 31 ); in FloatTo565()140 static int Unpack565( u8 const* packed, u8* colour ) in Unpack565() argument151 colour[0] = ( red << 3 ) | ( red >> 2 ); in Unpack565()152 colour[1] = ( green << 2 ) | ( green >> 4 ); in Unpack565()153 colour[2] = ( blue << 3 ) | ( blue >> 2 ); in Unpack565()154 colour[3] = 255; in Unpack565()
5 * The single colour lookup table has been halved by exploiting symmetry19 * The range fit implementation now uses the correct colour metric38 * Added provably optimal single colour compressor39 * Added extra/squishgen.cpp that generates single colour lookup tables42 * Fixed a DXT1 colour output bug