MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / EncodeTexture

Function EncodeTexture

Source/SysOSX/HLEGraphics/DisplayListDebugger.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131
132static void EncodeTexture(const CNativeTexture * texture, DataSink * sink)
133{
134 u32 width = texture->GetWidth();
135 u32 height = texture->GetHeight();
136 size_t num_bytes = width * 4 * height;
137 u8 * bytes = static_cast<u8 * >(malloc(num_bytes));
138
139 FlattenTexture(texture, bytes, num_bytes);
140
141 Base64Encode(bytes, num_bytes, sink);
142 free(bytes);
143}
144
145void DLDebugger_ProcessDebugTask()
146{

Callers 1

Calls 4

FlattenTextureFunction · 0.85
Base64EncodeFunction · 0.85
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected