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

Function ff_aac_decode_init_float

libavcodec/aac/aacdec_float.c:164–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162#include "aacdec_proc_template.c"
163
164av_cold int ff_aac_decode_init_float(AVCodecContext *avctx)
165{
166 static AVOnce init_float_once = AV_ONCE_INIT;
167 AACDecContext *ac = avctx->priv_data;
168
169 ac->is_fixed = 0;
170 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
171
172 aac_dsp_init(&ac->dsp);
173 aac_proc_init(&ac->proc);
174
175 ac->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
176 if (!ac->fdsp)
177 return AVERROR(ENOMEM);
178
179 ff_thread_once(&init_float_once, init_tables_float_fn);
180
181 return ff_aac_decode_init(avctx);
182}

Callers 1

latm_decode_initFunction · 0.85

Calls 3

avpriv_float_dsp_allocFunction · 0.85
ff_thread_onceFunction · 0.85
ff_aac_decode_initFunction · 0.85

Tested by

no test coverage detected