summaryrefslogtreecommitdiff
path: root/libavcodec/texturedsp.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2022-03-19 20:51:24 +0100
committerMarton Balint <cus@passwd.hu>2022-04-10 20:12:23 +0200
commit541d3755e92da34b69df8c3c08d0d66cc4b05afd (patch)
tree8c7ef4098affff00b3663a5b5131248b9aa93696 /libavcodec/texturedsp.c
parent80e997b0818a36b1b28e39d745c466d01038aa1f (diff)
avcodec/texturedsp: add TextureDSPThreadContext for common decode/encode function
This will allow using a common threaded decode or encode function from most codecs using texture DSP functions. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/texturedsp.c')
-rw-r--r--libavcodec/texturedsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/texturedsp.c b/libavcodec/texturedsp.c
index b7dd8baa12..b8938213ef 100644
--- a/libavcodec/texturedsp.c
+++ b/libavcodec/texturedsp.c
@@ -652,3 +652,7 @@ av_cold void ff_texturedsp_init(TextureDSPContext *c)
c->rgtc2u_block = rgtc2u_block;
c->dxn3dc_block = dxn3dc_block;
}
+
+#define TEXTUREDSP_FUNC_NAME ff_texturedsp_decompress_thread
+#define TEXTUREDSP_TEX_FUNC(a, b, c) tex_funct(a, b, c)
+#include "texturedsp_template.c"