aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/ac3dsp_init.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-11-22 16:25:54 -0300
committerJames Almer <jamrial@gmail.com>2023-11-25 21:50:56 -0300
commite40ea9f34b196176d80f68c0925de7dc785a5df6 (patch)
tree785954d4a6a36e87e19f4283277c0aabd467b429 /libavcodec/x86/ac3dsp_init.c
parentd8b1a34433ecf0c2c9fb50754e98954f5ab67d4a (diff)
downloadffmpeg-e40ea9f34b196176d80f68c0925de7dc785a5df6.tar.gz
x86/ac3dsp: add ff_float_to_fixed24_avx()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/x86/ac3dsp_init.c')
-rw-r--r--libavcodec/x86/ac3dsp_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/x86/ac3dsp_init.c b/libavcodec/x86/ac3dsp_init.c
index 472d39fa5e..353cf38f86 100644
--- a/libavcodec/x86/ac3dsp_init.c
+++ b/libavcodec/x86/ac3dsp_init.c
@@ -27,6 +27,7 @@
void ff_ac3_exponent_min_sse2 (uint8_t *exp, int num_reuse_blocks, int nb_coefs);
void ff_float_to_fixed24_sse2 (int32_t *dst, const float *src, size_t len);
+void ff_float_to_fixed24_avx (int32_t *dst, const float *src, size_t len);
int ff_ac3_compute_mantissa_size_sse2(uint16_t mant_cnt[6][16]);
@@ -48,6 +49,9 @@ av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c)
if (!(cpu_flags & AV_CPU_FLAG_ATOM))
c->extract_exponents = ff_ac3_extract_exponents_ssse3;
}
+ if (EXTERNAL_AVX_FAST(cpu_flags)) {
+ c->float_to_fixed24 = ff_float_to_fixed24_avx;
+ }
}
#define DOWNMIX_FUNC_OPT(ch, opt) \