summaryrefslogtreecommitdiff
path: root/libavutil/tx_priv.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-10-01 12:20:10 +0200
committerLynne <dev@lynne.ee>2022-11-24 15:58:32 +0100
commitdd77e61182865e396195a19b1e6ec697717cef56 (patch)
tree2d670d835bb46e46831116241a5b7c77aa66485b /libavutil/tx_priv.h
parentfab97faf02118240c28695c1a6401e7bcc4b21a8 (diff)
lavu/tx: add ff_tx_clear_ctx()
This function allows implementations to clean up a context after successfully initializing subcontexts.
Diffstat (limited to 'libavutil/tx_priv.h')
-rw-r--r--libavutil/tx_priv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/tx_priv.h b/libavutil/tx_priv.h
index 56e78631ba..d9e38ba19b 100644
--- a/libavutil/tx_priv.h
+++ b/libavutil/tx_priv.h
@@ -240,6 +240,9 @@ int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
uint64_t flags, FFTXCodeletOptions *opts,
int len, int inv, const void *scale);
+/* Clear the context by freeing all tables, maps and subtransforms. */
+void ff_tx_clear_ctx(AVTXContext *s);
+
/*
* Generates the PFA permutation table into AVTXContext->pfatab. The end table
* is appended to the start table.