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

Function ff_dca_core_init

libavcodec/dca_core.c:2411–2435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2409}
2410
2411av_cold int ff_dca_core_init(DCACoreDecoder *s)
2412{
2413 int ret;
2414 float scale = 1.0f;
2415
2416 if (!(s->float_dsp = avpriv_float_dsp_alloc(0)))
2417 return -1;
2418 if (!(s->fixed_dsp = avpriv_alloc_fixed_dsp(0)))
2419 return -1;
2420
2421 ff_dcadct_init(&s->dcadct);
2422
2423 if ((ret = av_tx_init(&s->imdct[0], &s->imdct_fn[0], AV_TX_FLOAT_MDCT,
2424 1, 32, &scale, 0)) < 0)
2425 return ret;
2426
2427 if ((ret = av_tx_init(&s->imdct[1], &s->imdct_fn[1], AV_TX_FLOAT_MDCT,
2428 1, 64, &scale, 0)) < 0)
2429 return ret;
2430
2431 ff_synth_filter_init(&s->synth);
2432
2433 s->x96_rand = 1;
2434 return 0;
2435}
2436
2437av_cold void ff_dca_core_close(DCACoreDecoder *s)
2438{

Callers 1

dcadec_initFunction · 0.85

Calls 5

avpriv_float_dsp_allocFunction · 0.85
avpriv_alloc_fixed_dspFunction · 0.85
ff_dcadct_initFunction · 0.85
av_tx_initFunction · 0.85
ff_synth_filter_initFunction · 0.85

Tested by

no test coverage detected