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/texturedspenc.c | |
parent | 80e997b0818a36b1b28e39d745c466d01038aa1f (diff) | |
download | ffmpeg-541d3755e92da34b69df8c3c08d0d66cc4b05afd.tar.gz |
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/texturedspenc.c')
-rw-r--r-- | libavcodec/texturedspenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/texturedspenc.c b/libavcodec/texturedspenc.c index 3d68e0cf39..381be16f75 100644 --- a/libavcodec/texturedspenc.c +++ b/libavcodec/texturedspenc.c @@ -670,3 +670,7 @@ av_cold void ff_texturedspenc_init(TextureDSPContext *c) c->dxt5ys_block = dxt5ys_block; c->rgtc1u_alpha_block = rgtc1u_alpha_block; } + +#define TEXTUREDSP_FUNC_NAME ff_texturedsp_compress_thread +#define TEXTUREDSP_TEX_FUNC(a, b, c) tex_funct(c, b, a) +#include "texturedsp_template.c" |