MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / decompress

Function decompress

Engine/source/gfx/bitmap/imageUtils.cpp:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 bool decompress(const U8 *src, U8 *dstRGBA,const S32 width,const S32 height, const GFXFormat srcFormat)
208 {
209 if (!isCompressedFormat(srcFormat))
210 return false;
211
212 S32 squishFlag = _getSquishFormat(srcFormat);
213 squish::DecompressImage(dstRGBA, width, height, src, squishFlag);
214
215 return true;
216 }
217
218 void swizzleDDS(DDSFile *srcDDS, const Swizzle<U8, 4> &swizzle)
219 {

Callers 2

_loadTextureMethod · 0.85
decompressToGBitmapMethod · 0.85

Calls 3

isCompressedFormatFunction · 0.85
_getSquishFormatFunction · 0.85
DecompressImageFunction · 0.85

Tested by

no test coverage detected