diff options
author | Marton Balint <cus@passwd.hu> | 2022-03-19 20:51:24 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-04-10 20:12:23 +0200 |
commit | 541d3755e92da34b69df8c3c08d0d66cc4b05afd (patch) | |
tree | 8c7ef4098affff00b3663a5b5131248b9aa93696 /libavcodec/texturedsp.c | |
parent | 80e997b0818a36b1b28e39d745c466d01038aa1f (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.c | 4 |
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" |