MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / ImgUtl_ConvertTGA

Function ImgUtl_ConvertTGA

src/common/imageutils.cpp:1004–1134  ·  view source on GitHub ↗

resizes the file specified by tgaPath so that it has dimensions that are powers-of-two and is equal to or smaller than (nMaxWidth)x(nMaxHeight). also converts from 24-bit RGB to 32-bit RGB (with 8-bit alpha)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 7

ImgUtl_ReadTGAAsRGBAFunction · 0.85
freeFunction · 0.85
IsPowerOfTwoFunction · 0.85
mallocFunction · 0.85
ImgUtl_StretchRGBAImageFunction · 0.85
ImgUtl_PadRGBAImageFunction · 0.85
WriteTGAHeaderFunction · 0.85

Tested by

no test coverage detected