Lines Matching defs:avctx
31 av_cold int ff_psy_init(FFPsyContext *ctx, AVCodecContext *avctx, int num_lens,
37 ctx->avctx = avctx;
38 ctx->ch = av_calloc(avctx->ch_layout.nb_channels, 2 * sizeof(ctx->ch[0]));
42 ctx->cutoff = avctx->cutoff;
63 switch (ctx->avctx->codec_id) {
94 AVCodecContext *avctx;
103 av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *avctx)
111 ctx->avctx = avctx;
114 if (avctx->codec_id != AV_CODEC_ID_AAC) {
115 if (avctx->cutoff > 0)
116 cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;
119 ctx->fcoeffs = ff_iir_filter_init_coeffs(avctx, FF_FILTER_TYPE_BUTTERWORTH,
123 ctx->fstate = av_calloc(avctx->ch_layout.nb_channels, sizeof(ctx->fstate[0]));
129 for (i = 0; i < avctx->ch_layout.nb_channels; i++)
142 int frame_size = ctx->avctx->frame_size;
157 for (i = 0; i < ctx->avctx->ch_layout.nb_channels; i++)