| 2409 | } |
| 2410 | |
| 2411 | av_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 | |
| 2437 | av_cold void ff_dca_core_close(DCACoreDecoder *s) |
| 2438 | { |
no test coverage detected