static void calc_scales(DCAEncContext *c)

{

    int band, ch;



    for (band = 0; band < 32; band++)

        for (ch = 0; ch < c->fullband_channels; ch++)

            c->scale_factor[band][ch] = calc_one_scale(c->peak_cb[band][ch],

                                                       c->abits[band][ch],

                                                       &c->quant[band][ch]);



    if (c->lfe_channel)

        c->lfe_scale_factor = calc_one_scale(c->lfe_peak_cb, 11, &c->lfe_quant);

}

static void calc_scales(DCAEncContext *c)

{

    int band, ch;



    for (band = 0; band < 32; band++)

        for (ch = 0; ch < c->fullband_channels; ch++)

            c->scale_factor[band][ch] = calc_one_scale(c->peak_cb[band][ch],

                                                       c->abits[band][ch],

                                                       &c->quant[band][ch]);



    if (c->lfe_channel)

        c->lfe_scale_factor = calc_one_scale(c->lfe_peak_cb, 11, &c->lfe_quant);

}

static void FUNC_0(DCAEncContext *VAR_0)

{

    int VAR_1, VAR_2;



    for (VAR_1 = 0; VAR_1 < 32; VAR_1++)

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

            VAR_0->scale_factor[VAR_1][VAR_2] = calc_one_scale(VAR_0->peak_cb[VAR_1][VAR_2],

                                                       VAR_0->abits[VAR_1][VAR_2],

                                                       &VAR_0->quant[VAR_1][VAR_2]);



    if (VAR_0->lfe_channel)

        VAR_0->lfe_scale_factor = calc_one_scale(VAR_0->lfe_peak_cb, 11, &VAR_0->lfe_quant);

}

static void FUNC_0(DCAEncContext *VAR_0)
{ int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < 32; VAR_1++) for (VAR_2 = 0; VAR_2 < VAR_0->fullband_channels; VAR_2++) VAR_0->scale_factor[VAR_1][VAR_2] = calc_one_scale(VAR_0->peak_cb[VAR_1][VAR_2],
VAR_0->abits[VAR_1][VAR_2],
&VAR_0->quant[VAR_1][VAR_2]); if (VAR_0->lfe_channel)
VAR_0->lfe_scale_factor = calc_one_scale(VAR_0->lfe_peak_cb, 11, &VAR_0->lfe_quant); }