MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / avpriv_alloc_fixed_dsp

Function avpriv_alloc_fixed_dsp

libavutil/fixed_dsp.c:151–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151AVFixedDSPContext * avpriv_alloc_fixed_dsp(int bit_exact)
152{
153 AVFixedDSPContext * fdsp = av_malloc(sizeof(AVFixedDSPContext));
154
155 if (!fdsp)
156 return NULL;
157
158 fdsp->vector_fmul_window_scaled = vector_fmul_window_scaled_c;
159 fdsp->vector_fmul_window = vector_fmul_window_c;
160 fdsp->vector_fmul = vector_fmul_c;
161 fdsp->vector_fmul_add = vector_fmul_add_c;
162 fdsp->vector_fmul_reverse = vector_fmul_reverse_c;
163 fdsp->butterflies_fixed = butterflies_fixed_c;
164 fdsp->scalarproduct_fixed = scalarproduct_fixed_c;
165
166#if ARCH_RISCV
167 ff_fixed_dsp_init_riscv(fdsp);
168#elif ARCH_X86 && HAVE_X86ASM
169 ff_fixed_dsp_init_x86(fdsp);
170#endif
171
172 return fdsp;
173}

Callers 5

ac3_fixed_mdct_initFunction · 0.85
ac3_decode_initFunction · 0.85
ff_dca_core_initFunction · 0.85
ff_aac_decode_init_fixedFunction · 0.85
checkasm_check_fixed_dspFunction · 0.85

Calls 3

ff_fixed_dsp_init_riscvFunction · 0.85
ff_fixed_dsp_init_x86Function · 0.85
av_mallocFunction · 0.70

Tested by

no test coverage detected