MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / free_image

Function free_image

external/astc-encoder/Source/astcenccli_image.cpp:72–86  ·  view source on GitHub ↗

See header for documentation. */

Source from the content-addressed store, hash-verified

70
71/* See header for documentation. */
72void free_image(astcenc_image * img)
73{
74 if (img == nullptr)
75 {
76 return;
77 }
78
79 for (unsigned int z = 0; z < img->dim_z; z++)
80 {
81 delete[] reinterpret_cast<char*>(img->data[z]);
82 }
83
84 delete[] img->data;
85 delete img;
86}
87
88/* See header for documentation. */
89int determine_image_components(const astcenc_image * img)

Callers 3

load_uncomp_fileFunction · 0.85
print_diagnostic_imagesFunction · 0.85
astcenc_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected