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

Function ff_lpc_init

libavcodec/lpc.c:340–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340av_cold int ff_lpc_init(LPCContext *s, int blocksize, int max_order,
341 enum FFLPCType lpc_type)
342{
343 s->blocksize = blocksize;
344 s->max_order = max_order;
345 s->lpc_type = lpc_type;
346
347 s->windowed_buffer = av_mallocz((blocksize + 2 + FFALIGN(max_order, 4)) *
348 sizeof(*s->windowed_samples));
349 if (!s->windowed_buffer)
350 return AVERROR(ENOMEM);
351 s->windowed_samples = s->windowed_buffer + FFALIGN(max_order, 4);
352
353 s->lpc_apply_welch_window = lpc_apply_welch_window_c;
354 s->lpc_compute_autocorr = lpc_compute_autocorr_c;
355
356#if ARCH_RISCV
357 ff_lpc_init_riscv(s);
358#elif ARCH_X86
359 ff_lpc_init_x86(s);
360#endif
361
362 return 0;
363}
364
365av_cold void ff_lpc_end(LPCContext *s)
366{

Callers 8

ra144_encode_initFunction · 0.85
aac_encode_initFunction · 0.85
ff_lpc_calc_coefsFunction · 0.85
cng_encode_initFunction · 0.85
flac_encode_initFunction · 0.85
alac_encode_initFunction · 0.85
mlp_encode_initFunction · 0.85
checkasm_check_lpcFunction · 0.85

Calls 3

ff_lpc_init_riscvFunction · 0.85
ff_lpc_init_x86Function · 0.85
av_malloczFunction · 0.50

Tested by

no test coverage detected