static void apply_mdct(AC3EncodeContext *s)

{

    int blk, ch;



    for (ch = 0; ch < s->channels; ch++) {

        for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {

            AC3Block *block = &s->blocks[blk];

            const SampleType *input_samples = &s->planar_samples[ch][blk * AC3_BLOCK_SIZE];



            apply_window(&s->dsp, s->windowed_samples, input_samples, s->mdct.window, AC3_WINDOW_SIZE);



            block->coeff_shift[ch] = normalize_samples(s);



            mdct512(&s->mdct, block->mdct_coef[ch], s->windowed_samples);

        }

    }

}

static void apply_mdct(AC3EncodeContext *s)

{

    int blk, ch;



    for (ch = 0; ch < s->channels; ch++) {

        for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {

            AC3Block *block = &s->blocks[blk];

            const SampleType *input_samples = &s->planar_samples[ch][blk * AC3_BLOCK_SIZE];



            apply_window(&s->dsp, s->windowed_samples, input_samples, s->mdct.window, AC3_WINDOW_SIZE);



            block->coeff_shift[ch] = normalize_samples(s);



            mdct512(&s->mdct, block->mdct_coef[ch], s->windowed_samples);

        }

    }

}

static void FUNC_0(AC3EncodeContext *VAR_0)

{

    int VAR_1, VAR_2;



    for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) {

        for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {

            AC3Block *block = &VAR_0->blocks[VAR_1];

            const SampleType *input_samples = &VAR_0->planar_samples[VAR_2][VAR_1 * AC3_BLOCK_SIZE];



            apply_window(&VAR_0->dsp, VAR_0->windowed_samples, input_samples, VAR_0->mdct.window, AC3_WINDOW_SIZE);



            block->coeff_shift[VAR_2] = normalize_samples(VAR_0);



            mdct512(&VAR_0->mdct, block->mdct_coef[VAR_2], VAR_0->windowed_samples);

        }

    }

}

static void FUNC_0(AC3EncodeContext *VAR_0)
{ int VAR_1, VAR_2; for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) { for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) { AC3Block *block = &VAR_0->blocks[VAR_1]; const SampleType *input_samples = &VAR_0->planar_samples[VAR_2][VAR_1 * AC3_BLOCK_SIZE]; apply_window(&VAR_0->dsp, VAR_0->windowed_samples, input_samples, VAR_0->mdct.window, AC3_WINDOW_SIZE); block->coeff_shift[VAR_2] = normalize_samples(VAR_0); mdct512(&VAR_0->mdct, block->mdct_coef[VAR_2], VAR_0->windowed_samples); } } }