[xiph-commits] r13785 - trunk/ghost/libghost
jm at svn.xiph.org
jm at svn.xiph.org
Wed Sep 12 01:02:17 PDT 2007
Author: jm
Date: 2007-09-12 01:02:16 -0700 (Wed, 12 Sep 2007)
New Revision: 13785
Modified:
trunk/ghost/libghost/ceft.c
Log:
bits of tuning
Modified: trunk/ghost/libghost/ceft.c
===================================================================
--- trunk/ghost/libghost/ceft.c 2007-09-12 05:54:00 UTC (rev 13784)
+++ trunk/ghost/libghost/ceft.c 2007-09-12 08:02:16 UTC (rev 13785)
@@ -36,12 +36,14 @@
number of pulses is equal to (1 + nb_pulses * log2 (2 * width_of_band) ) */
//32 kbps
#define WAVEFORM_END 44
-int qpulses[] = {3, 4, 4, 3, 3, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0}; //85 bits
+int qpulses[] = {4, 4, 4, 3, 3, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0}; //86 bits
+//int qpulses[] = {3, 4, 4, 3, 4, 3, 2, 2, 2, 3, 0, 0, 0, 0, 0}; //86 bits
//44 kbps
//int qpulses[] = {4, 7, 6, 4, 4, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0}; //134 bits
+//int qpulses[] = {4, 5, 5, 4, 4, 3, 4, 3, 3, 3, 2, 2, 2, 0, 0}; //134 bits
+//#define WAVEFORM_END 52
-
/* Number of bands only for the pitch prediction */
#define PBANDS 5
/* Start frequency of each band */
@@ -463,10 +465,12 @@
//rotate_vect(X+qbank[i]*2-1, 2*(qbank[i+1]-qbank[i]), R+i, dir);
float theta;
- if (qbank[i+1]-qbank[i] < 12)
+ /*if (qbank[i+1]-qbank[i] < 12)
theta = .25;
else
- theta = .5;
+ theta = .5;*/
+ //theta = 0*asin(pow(.0001,1.f/(qbank[i+1]-qbank[i])));
+ theta = .25;
exp_rotation(X+qbank[i]*2-1, 2*(qbank[i+1]-qbank[i]), theta, dir);
}
//printf ("\n");
More information about the commits
mailing list