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

Function ExtractBlock

trinity/Tr2DxtCompressor.cpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void ExtractBlock( const uint8_t* inPtr, const int width, uint8_t* colorBlock )
208{
209 for( int j = 0; j < 4; j++ )
210 {
211 memcpy( &colorBlock[j * 4 * 4], inPtr, 4 * 4 );
212 inPtr += width * 4;
213 }
214}
215
216// Extract a block, but blank out blue, and swap red and alpha, on the fly.
217void ExtractBlockDXT5N( const uint8_t* inPtr, const int width, uint8_t* colorBlock )

Callers 6

CompressYCoCgDXT5Function · 0.85
CompressImageSquishFunction · 0.85
CompressImageDXT5Function · 0.85
CompressImageDXT1Function · 0.85
CompressNormalMap3DcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected