av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *avctx)

{

    FFPsyPreprocessContext *ctx;

    int i;

    float cutoff_coeff = 0;

    ctx        = av_mallocz(sizeof(FFPsyPreprocessContext));

    ctx->avctx = avctx;



    if (avctx->cutoff > 0)

        cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;



    if (cutoff_coeff)

    ctx->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,

                                             FILT_ORDER, cutoff_coeff, 0.0, 0.0);

    if (ctx->fcoeffs) {

        ctx->fstate = av_mallocz(sizeof(ctx->fstate[0]) * avctx->channels);

        for (i = 0; i < avctx->channels; i++)

            ctx->fstate[i] = ff_iir_filter_init_state(FILT_ORDER);

    }

    return ctx;

}

av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *avctx)

{

    FFPsyPreprocessContext *ctx;

    int i;

    float cutoff_coeff = 0;

    ctx        = av_mallocz(sizeof(FFPsyPreprocessContext));

    ctx->avctx = avctx;



    if (avctx->cutoff > 0)

        cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;



    if (cutoff_coeff)

    ctx->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,

                                             FILT_ORDER, cutoff_coeff, 0.0, 0.0);

    if (ctx->fcoeffs) {

        ctx->fstate = av_mallocz(sizeof(ctx->fstate[0]) * avctx->channels);

        for (i = 0; i < avctx->channels; i++)

            ctx->fstate[i] = ff_iir_filter_init_state(FILT_ORDER);

    }

    return ctx;

}

    ctx->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,
av_cold struct FFPsyPreprocessContext* FUNC_0(AVCodecContext *avctx)

{

    FFPsyPreprocessContext *VAR_0;

    int VAR_1;

    float VAR_2 = 0;

    VAR_0        = av_mallocz(sizeof(FFPsyPreprocessContext));

    VAR_0->avctx = avctx;



    if (avctx->cutoff > 0)

        VAR_2 = 2.0 * avctx->cutoff / avctx->sample_rate;



    if (VAR_2)

    VAR_0->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,

                                             FILT_ORDER, VAR_2, 0.0, 0.0);

    if (VAR_0->fcoeffs) {

        VAR_0->fstate = av_mallocz(sizeof(VAR_0->fstate[0]) * avctx->channels);

        for (VAR_1 = 0; VAR_1 < avctx->channels; VAR_1++)

            VAR_0->fstate[VAR_1] = ff_iir_filter_init_state(FILT_ORDER);

    }

    return VAR_0;

}

av_cold struct FFPsyPreprocessContext* FUNC_0(AVCodecContext *avctx)
{ FFPsyPreprocessContext *VAR_0; int VAR_1; float VAR_2 = 0; VAR_0        = av_mallocz(sizeof(FFPsyPreprocessContext)); VAR_0->avctx = avctx; if (avctx->cutoff > 0)
VAR_2 = 2.0 * avctx->cutoff / avctx->sample_rate; if (VAR_2)
VAR_0->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,
FILT_ORDER, VAR_2, 0.0, 0.0); if (VAR_0->fcoeffs) { VAR_0->fstate = av_mallocz(sizeof(VAR_0->fstate[0]) * avctx->channels); for (VAR_1 = 0; VAR_1 < avctx->channels; VAR_1++) VAR_0->fstate[VAR_1] = ff_iir_filter_init_state(FILT_ORDER); } return VAR_0; }