diff options
author | Lynne <dev@lynne.ee> | 2022-10-30 11:14:15 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-11-06 14:39:36 +0100 |
commit | e0661fc805a30b7c5cef682f179d113ac1934f9f (patch) | |
tree | 84a40cd5b4f47825a12744a0505404656de377e5 /libavcodec/synth_filter.c | |
parent | 2689038f08f5c4d0f1c7ae467feafda6704cfe54 (diff) | |
download | ffmpeg-e0661fc805a30b7c5cef682f179d113ac1934f9f.tar.gz |
dca_core: convert to lavu/tx
Thanks to Martin Storsjö <martin@martin.st> for fixing and testing the
arm32 and aarch64 changes.
Diffstat (limited to 'libavcodec/synth_filter.c')
-rw-r--r-- | libavcodec/synth_filter.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libavcodec/synth_filter.c b/libavcodec/synth_filter.c index f30cf360df..d6c4d1bf10 100644 --- a/libavcodec/synth_filter.c +++ b/libavcodec/synth_filter.c @@ -24,15 +24,16 @@ #include "dcamath.h" #include "synth_filter.h" -static void synth_filter_float(FFTContext *imdct, +static void synth_filter_float(AVTXContext *imdct, float *synth_buf_ptr, int *synth_buf_offset, float synth_buf2[32], const float window[512], - float out[32], const float in[32], float scale) + float out[32], float in[32], float scale, + av_tx_fn imdct_fn) { float *synth_buf = synth_buf_ptr + *synth_buf_offset; int i, j; - imdct->imdct_half(imdct, synth_buf, in); + imdct_fn(imdct, synth_buf, in, sizeof(float)); for (i = 0; i < 16; i++) { float a = synth_buf2[i ]; @@ -60,15 +61,16 @@ static void synth_filter_float(FFTContext *imdct, *synth_buf_offset = (*synth_buf_offset - 32) & 511; } -static void synth_filter_float_64(FFTContext *imdct, +static void synth_filter_float_64(AVTXContext *imdct, float *synth_buf_ptr, int *synth_buf_offset, float synth_buf2[64], const float window[1024], - float out[64], const float in[64], float scale) + float out[64], float in[64], float scale, + av_tx_fn imdct_fn) { float *synth_buf = synth_buf_ptr + *synth_buf_offset; int i, j; - imdct->imdct_half(imdct, synth_buf, in); + imdct_fn(imdct, synth_buf, in, sizeof(float)); for (i = 0; i < 32; i++) { float a = synth_buf2[i ]; |