As a translater I usually have to at least look at the algorithms, so I
thought I'd find another 512 floats and replace it with 1 float.

in module quantise.c

In function lpc_post_filter()

The Pfw array is not used after being created. Making it a variable saves
2k bytes.

Change:

float Pfw[FFT_ENC]; /* Post filter mag spectrum     */

To:

float Pfw;

Change:

    /* apply post filter and measure energy  */

    e_after = 1E-4;
    for (i = 0; i < FFT_SIZE / 2; i++) {
        Pfw[i] = powf(Rw[i], beta);
        Pw[i].real *= Pfw[i] * Pfw[i];
        e_after += Pw[i].real;
    }

To:

    /* apply post filter and measure energy  */

    e_after = 1E-4;
    for (i = 0; i < FFT_SIZE / 2; i++) {
        Pfw = powf(Rw[i], beta);
        Pw[i].real *= Pfw * Pfw;
        e_after += Pw[i].real;
    }

eof
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to