See header for documentation. */
| 860 | |
| 861 | /* See header for documentation. */ |
| 862 | void 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 |
no outgoing calls