[xiph-cvs] cvs commit: speex/libspeex nb_celp.c
Jean-Marc Valin
jm at xiph.org
Tue Oct 22 12:14:34 PDT 2002
jm 02/10/22 15:14:34
Modified: libspeex nb_celp.c
Log:
Don't compute open-loop pitch when mode has a per-subframe pitch and VBR
is not used. This gains a bit of CPU.
Revision Changes Path
1.63 +4 -1 speex/libspeex/nb_celp.c
Index: nb_celp.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/nb_celp.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- nb_celp.c 21 Oct 2002 20:39:38 -0000 1.62
+++ nb_celp.c 22 Oct 2002 19:14:34 -0000 1.63
@@ -305,7 +305,7 @@
filter_mem2(st->frame, st->bw_lpc1, st->bw_lpc2, st->sw, st->frameSize, st->lpcSize, st->mem_sw_whole);
/*Open-loop pitch*/
- {
+ if (SUBMODE(lbr_pitch) != -1 || st->vbr_enabled || SUBMODE(forced_pitch_gain)) {
int nol_pitch[4];
float nol_pitch_coef[4];
open_loop_nbest_pitch(st->sw, st->min_pitch, st->max_pitch, st->frameSize,
@@ -325,6 +325,9 @@
}
/*ol_pitch_coef = sqrt(ol_pitch_coef);*/
/*printf ("ol_pitch: %d %f\n", ol_pitch, ol_pitch_coef);*/
+ } else {
+ ol_pitch=0;
+ ol_pitch_coef=0;
}
/*Compute "real" excitation*/
fir_mem2(st->frame, st->interp_lpc, st->exc, st->frameSize, st->lpcSize, st->mem_exc);
<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