MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / astcenc_context_free

Function astcenc_context_free

Source/astcenc_entry.cpp:862–878  ·  view source on GitHub ↗

See header for documentation. */

Source from the content-addressed store, hash-verified

860
861/* See header for documentation. */
862void astcenc_context_free(
863 astcenc_context* ctxo
864) {
865 if (ctxo)
866 {
867 astcenc_contexti* ctx = &ctxo->context;
868 aligned_free<compression_working_buffers>(ctx->working_buffers);
869 if (ctx->owns_bsd)
870 {
871 aligned_free<const block_size_descriptor>(ctx->bsd);
872 }
873#if defined(ASTCENC_DIAGNOSTICS)
874 delete ctx->trace_log;
875#endif
876 delete ctxo;
877 }
878}
879
880#if !defined(ASTCENC_DECOMPRESS_ONLY)
881

Callers 8

mainFunction · 0.85
operator()Method · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
TESTFunction · 0.85
test_decode.cppFile · 0.85
TESTFunction · 0.85
run_positive_testFunction · 0.85

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.68
TESTFunction · 0.68
run_positive_testFunction · 0.68