diff options
author | Lynne <dev@lynne.ee> | 2022-11-06 17:37:21 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-11-06 17:37:21 +0100 |
commit | a07c8781ce7cbb9b28d788e9a8b7f79d5b975ebb (patch) | |
tree | 9ee3bdcbc809c82fce5f31a65edee2e3b5dd8896 | |
parent | 26cb36f35746fe6ef53688b119852bfa6d555f62 (diff) | |
download | ffmpeg-a07c8781ce7cbb9b28d788e9a8b7f79d5b975ebb.tar.gz |
mips/aacsbr: port to lavu/tx
Fixes compilation after the recent commit which ported the C code to lavu/tx.
-rw-r--r-- | libavcodec/mips/aacsbr_mips.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/mips/aacsbr_mips.h b/libavcodec/mips/aacsbr_mips.h index 4461e763ed..4750c94024 100644 --- a/libavcodec/mips/aacsbr_mips.h +++ b/libavcodec/mips/aacsbr_mips.h @@ -59,7 +59,7 @@ #include "libavutil/mips/asmdefs.h" #if HAVE_INLINE_ASM -static void sbr_qmf_analysis_mips(AVFloatDSPContext *fdsp, FFTContext *mdct, +static void sbr_qmf_analysis_mips(AVFloatDSPContext *fdsp, AVTXContext *mdct, av_tx_fn mdct_fn, SBRDSPContext *sbrdsp, const float *in, float *x, float z[320], float W[2][32][32][2], int buf_idx) { @@ -143,7 +143,7 @@ static void sbr_qmf_analysis_mips(AVFloatDSPContext *fdsp, FFTContext *mdct, fdsp->vector_fmul_reverse(z, sbr_qmf_window_ds, x, 320); sbrdsp->sum64x5(z); sbrdsp->qmf_pre_shuffle(z); - mdct->imdct_half(mdct, z, z+64); + mdct_fn(mdct, z, z+64, sizeof(float)); sbrdsp->qmf_post_shuffle(W[buf_idx][i], z); x += 32; } @@ -151,7 +151,7 @@ static void sbr_qmf_analysis_mips(AVFloatDSPContext *fdsp, FFTContext *mdct, #if HAVE_MIPSFPU #if !HAVE_MIPS32R6 && !HAVE_MIPS64R6 -static void sbr_qmf_synthesis_mips(FFTContext *mdct, +static void sbr_qmf_synthesis_mips(AVTXContext *mdct, av_tx_fn mdct_fn, SBRDSPContext *sbrdsp, AVFloatDSPContext *fdsp, float *out, float X[2][38][64], float mdct_buf[2][64], @@ -180,12 +180,12 @@ static void sbr_qmf_synthesis_mips(FFTContext *mdct, X[0][i][ n] = -X[0][i][n]; X[0][i][32+n] = X[1][i][31-n]; } - mdct->imdct_half(mdct, mdct_buf[0], X[0][i]); + mdct_fn(mdct, mdct_buf[0], X[0][i], sizeof(float)); sbrdsp->qmf_deint_neg(v, mdct_buf[0]); } else { sbrdsp->neg_odd_64(X[1][i]); - mdct->imdct_half(mdct, mdct_buf[0], X[0][i]); - mdct->imdct_half(mdct, mdct_buf[1], X[1][i]); + mdct_fn(mdct, mdct_buf[0], X[0][i], sizeof(float)); + mdct_fn(mdct, mdct_buf[1], X[1][i], sizeof(float)); sbrdsp->qmf_deint_bfly(v, mdct_buf[1], mdct_buf[0]); } |