Thanks Steve,

Looks good:

1/ Can you send me the change in patch format please?  

2/ Have you tested the change to ensure the output decoded speech is
identical (e.g. using diff)?

Thanks,

David

On Thu, 2014-06-19 at 09:52 -0500, Steve Sampson wrote:
> 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 
> Freetel-codec2@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2



------------------------------------------------------------------------------
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
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to