static int add_tonal_components(float *spectrum, int num_components,

                                TonalComponent *components)

{

    int i, j, last_pos = -1;

    float *input, *output;



    for (i = 0; i < num_components; i++) {

        last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos);

        input    = components[i].coef;

        output   = &spectrum[components[i].pos];



        for (j = 0; j < components[i].num_coefs; j++)

            output[i] += input[i];

    }



    return last_pos;

}

static int add_tonal_components(float *spectrum, int num_components,

                                TonalComponent *components)

{

    int i, j, last_pos = -1;

    float *input, *output;



    for (i = 0; i < num_components; i++) {

        last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos);

        input    = components[i].coef;

        output   = &spectrum[components[i].pos];



        for (j = 0; j < components[i].num_coefs; j++)

            output[i] += input[i];

    }



    return last_pos;

}

static int FUNC_0(float *VAR_0, int VAR_1,

                                TonalComponent *VAR_2)

{

    int VAR_3, VAR_4, VAR_5 = -1;

    float *VAR_6, *VAR_7;



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

        VAR_5 = FFMAX(VAR_2[VAR_3].pos + VAR_2[VAR_3].num_coefs, VAR_5);

        VAR_6    = VAR_2[VAR_3].coef;

        VAR_7   = &VAR_0[VAR_2[VAR_3].pos];



        for (VAR_4 = 0; VAR_4 < VAR_2[VAR_3].num_coefs; VAR_4++)

            VAR_7[VAR_3] += VAR_6[VAR_3];

    }



    return VAR_5;

}

static int FUNC_0(float *VAR_0, int VAR_1,
TonalComponent *VAR_2)
{ int VAR_3, VAR_4, VAR_5 = -1; float *VAR_6, *VAR_7; for (VAR_3 = 0; VAR_3 < VAR_1; VAR_3++) { VAR_5 = FFMAX(VAR_2[VAR_3].pos + VAR_2[VAR_3].num_coefs, VAR_5); VAR_6    = VAR_2[VAR_3].coef; VAR_7   = &VAR_0[VAR_2[VAR_3].pos]; for (VAR_4 = 0; VAR_4 < VAR_2[VAR_3].num_coefs; VAR_4++) VAR_7[VAR_3] += VAR_6[VAR_3]; } return VAR_5; }