[xiph-cvs] cvs commit: speex/libspeex nb_celp.c

Jean-Marc Valin jm at xiph.org
Tue Nov 11 23:09:39 PST 2003



jm          03/11/12 02:09:39

  Modified:    libspeex Tag: rel-1-0-branch nb_celp.c
  Log:
  Round the log of ol_gain instead of truncating. Produces slightly better
  results (should have done that originally)

Revision  Changes    Path
No                   revision

<p>No                   revision

<p>1.114.2.3 +1 -1      speex/libspeex/nb_celp.c

Index: nb_celp.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/nb_celp.c,v
retrieving revision 1.114.2.2
retrieving revision 1.114.2.3
diff -u -r1.114.2.2 -r1.114.2.3
--- nb_celp.c	12 Nov 2003 02:47:38 -0000	1.114.2.2
+++ nb_celp.c	12 Nov 2003 07:09:39 -0000	1.114.2.3
@@ -495,7 +495,7 @@
    
    /*Quantize and transmit open-loop excitation gain*/
    {
-      int qe = (int)(floor(3.5*log(ol_gain)));
+      int qe = (int)(floor(.5+3.5*log(ol_gain)));
       if (qe<0)
          qe=0;
       if (qe>31)

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list