Lines Matching refs:frm
523 CeltFrame *frm = *f; in ff_celt_free() local
526 if (!frm) in ff_celt_free()
529 for (i = 0; i < FF_ARRAY_ELEMS(frm->imdct); i++) in ff_celt_free()
530 ff_mdct15_uninit(&frm->imdct[i]); in ff_celt_free()
532 ff_celt_pvq_uninit(&frm->pvq); in ff_celt_free()
534 av_freep(&frm->dsp); in ff_celt_free()
541 CeltFrame *frm; in ff_celt_init() local
550 frm = av_mallocz(sizeof(*frm)); in ff_celt_init()
551 if (!frm) in ff_celt_init()
554 frm->avctx = avctx; in ff_celt_init()
555 frm->output_channels = output_channels; in ff_celt_init()
556 frm->apply_phase_inv = apply_phase_inv; in ff_celt_init()
558 for (i = 0; i < FF_ARRAY_ELEMS(frm->imdct); i++) in ff_celt_init()
559 if ((ret = ff_mdct15_init(&frm->imdct[i], 1, i + 3, -1.0f/32768)) < 0) in ff_celt_init()
562 if ((ret = ff_celt_pvq_init(&frm->pvq, 0)) < 0) in ff_celt_init()
565 frm->dsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT); in ff_celt_init()
566 if (!frm->dsp) { in ff_celt_init()
571 ff_opus_dsp_init(&frm->opusdsp); in ff_celt_init()
572 ff_celt_flush(frm); in ff_celt_init()
574 *f = frm; in ff_celt_init()
578 ff_celt_free(&frm); in ff_celt_init()