static void find_peaks(DCAEncContext *c)

{

    int band, ch;



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

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

            int sample;

            int32_t m = 0;



            for (sample = 0; sample < SUBBAND_SAMPLES; sample++) {

                int32_t s = abs(c->subband[sample][band][ch]);

                if (m < s)

                    m = s;

            }

            c->peak_cb[band][ch] = get_cb(m);

        }



    if (c->lfe_channel) {

        int sample;

        int32_t m = 0;



        for (sample = 0; sample < DCA_LFE_SAMPLES; sample++)

            if (m < abs(c->downsampled_lfe[sample]))

                m = abs(c->downsampled_lfe[sample]);

        c->lfe_peak_cb = get_cb(m);

    }

}

static void find_peaks(DCAEncContext *c)

{

    int band, ch;



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

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

            int sample;

            int32_t m = 0;



            for (sample = 0; sample < SUBBAND_SAMPLES; sample++) {

                int32_t s = abs(c->subband[sample][band][ch]);

                if (m < s)

                    m = s;

            }

            c->peak_cb[band][ch] = get_cb(m);

        }



    if (c->lfe_channel) {

        int sample;

        int32_t m = 0;



        for (sample = 0; sample < DCA_LFE_SAMPLES; sample++)

            if (m < abs(c->downsampled_lfe[sample]))

                m = abs(c->downsampled_lfe[sample]);

        c->lfe_peak_cb = get_cb(m);

    }

}

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++) {

            int VAR_3;

            int32_t m = 0;



            for (VAR_3 = 0; VAR_3 < SUBBAND_SAMPLES; VAR_3++) {

                int32_t s = abs(VAR_0->subband[VAR_3][VAR_1][VAR_2]);

                if (m < s)

                    m = s;

            }

            VAR_0->peak_cb[VAR_1][VAR_2] = get_cb(m);

        }



    if (VAR_0->lfe_channel) {

        int VAR_3;

        int32_t m = 0;



        for (VAR_3 = 0; VAR_3 < DCA_LFE_SAMPLES; VAR_3++)

            if (m < abs(VAR_0->downsampled_lfe[VAR_3]))

                m = abs(VAR_0->downsampled_lfe[VAR_3]);

        VAR_0->lfe_peak_cb = get_cb(m);

    }

}

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++) { int VAR_3; int32_t m = 0; for (VAR_3 = 0; VAR_3 < SUBBAND_SAMPLES; VAR_3++) { int32_t s = abs(VAR_0->subband[VAR_3][VAR_1][VAR_2]); if (m < s)
m = s; } VAR_0->peak_cb[VAR_1][VAR_2] = get_cb(m); } if (VAR_0->lfe_channel) { int VAR_3; int32_t m = 0; for (VAR_3 = 0; VAR_3 < DCA_LFE_SAMPLES; VAR_3++) if (m < abs(VAR_0->downsampled_lfe[VAR_3]))
m = abs(VAR_0->downsampled_lfe[VAR_3]); VAR_0->lfe_peak_cb = get_cb(m); } }