mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 04:49:05 +00:00
update ilbc and lpc10 codecs from openh323 sources.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
27dd35f064
commit
fb85339762
87 files changed
+17943
-8326
No files matched your search
+40
-60
@@ -1,20 +1,14 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2004/06/26 03:50:14 markster
|
||||
Merge source cleanups (bug #1911)
|
||||
$Log: analys.c,v $
|
||||
Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
Initial version
|
||||
|
||||
Revision 1.15 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
|
||||
Revision 1.2 2003/09/19 01:20:22 markster
|
||||
Code cleanups (bug #66)
|
||||
|
||||
Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
mer feb 12 14:56:57 CET 2003
|
||||
|
||||
Revision 1.2 2000/01/05 08:20:39 markster
|
||||
Some OSS fixes and a few lpc changes to make it actually work
|
||||
Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
Added LPC-10 2400bps codec
|
||||
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@@ -30,8 +24,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
||||
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||
extern int analys_(real *speech, integer *voice, integer *pitch, real *rms, real *rc, struct lpc10_encoder_state *st);
|
||||
/* comlen contrl_ 12 */
|
||||
@@ -60,6 +52,8 @@ extern int analys_(real *speech, integer *voice, integer *pitch, real *rms, real
|
||||
-lf2c -lm (in that order)
|
||||
*/
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
extern struct {
|
||||
@@ -87,21 +81,15 @@ static integer c__1 = 1;
|
||||
|
||||
/* ANALYS Version 55 */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: analys.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@@ -240,7 +228,11 @@ static integer c__1 = 1;
|
||||
extern /* Subroutine */ int onset_(real *, integer *, integer *, integer *
|
||||
, integer *, integer *, integer *, struct lpc10_encoder_state *);
|
||||
integer *osptr;
|
||||
extern int dcbias_(integer *, real *, real *);
|
||||
extern /* Subroutine */ placea_(integer *, integer *
|
||||
, integer *, integer *, integer *, integer *, integer *, integer *
|
||||
, integer *), dcbias_(integer *, real *, real *), placev_(integer
|
||||
*, integer *, integer *, integer *, integer *, integer *, integer
|
||||
*, integer *, integer *, integer *, integer *);
|
||||
integer ipitch;
|
||||
integer *obound;
|
||||
extern /* Subroutine */ int preemp_(real *, real *, integer *, real *,
|
||||
@@ -259,21 +251,15 @@ static integer c__1 = 1;
|
||||
*, integer *, integer *, struct lpc10_encoder_state *);
|
||||
real phi[100] /* was [10][10] */, psi[10];
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: analys.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@@ -299,21 +285,15 @@ static integer c__1 = 1;
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* Arguments to ANALYS */
|
||||
/* $Log$
|
||||
* Revision 1.16 2004/06/26 03:50:14 markster
|
||||
* Merge source cleanups (bug #1911)
|
||||
*
|
||||
/* Revision 1.15 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* $Log: analys.c,v $
|
||||
/* Revision 1.1 2004/05/04 11:16:42 csoutheren
|
||||
/* Initial version
|
||||
/*
|
||||
/* Revision 1.2 2003/09/19 01:20:22 markster
|
||||
/* Code cleanups (bug #66)
|
||||
/* Revision 1.2 2002/02/15 03:57:55 yurik
|
||||
/* Warnings removed during compilation, patch courtesy of Jehan Bing, jehan@bravobrava.com
|
||||
/*
|
||||
/* Revision 1.1.1.1 2003/02/12 13:59:14 matteo
|
||||
/* mer feb 12 14:56:57 CET 2003
|
||||
/*
|
||||
/* Revision 1.2 2000/01/05 08:20:39 markster
|
||||
/* Some OSS fixes and a few lpc changes to make it actually work
|
||||
/* Revision 1.1 2000/06/05 04:45:12 robertj
|
||||
/* Added LPC-10 2400bps codec
|
||||
/*
|
||||
* Revision 1.2 1996/08/20 20:16:01 jaf
|
||||
* Removed all static local variables that were SAVE'd in the Fortran
|
||||
@@ -508,10 +488,10 @@ static integer c__1 = 1;
|
||||
voibuf[0] = voibuf[2];
|
||||
voibuf[1] = voibuf[3];
|
||||
for (i__ = 1; i__ <= 2; ++i__) {
|
||||
vwin[(i__ << 1) - 2] = vwin[((i__ + 1) << 1) - 2] - contrl_1.lframe;
|
||||
vwin[(i__ << 1) - 1] = vwin[((i__ + 1) << 1) - 1] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 2] = awin[((i__ + 1) << 1) - 2] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 1] = awin[((i__ + 1) << 1) - 1] - contrl_1.lframe;
|
||||
vwin[(i__ << 1) - 2] = vwin[(i__ + (1 << 1)) - 2] - contrl_1.lframe;
|
||||
vwin[(i__ << 1) - 1] = vwin[(i__ + (1 << 1)) - 1] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 2] = awin[(i__ + (1 << 1)) - 2] - contrl_1.lframe;
|
||||
awin[(i__ << 1) - 1] = awin[(i__ + (1 << 1)) - 1] - contrl_1.lframe;
|
||||
/* EWIN(*,J) is unused for J .NE. AF, so the following shift is
|
||||
*/
|
||||
/* unnecessary. It also causes error messages when the C versio
|
||||
@@ -524,7 +504,7 @@ n */
|
||||
/* EWIN(2,I) = EWIN(2,I+1) - LFRAME */
|
||||
obound[i__ - 1] = obound[i__];
|
||||
voibuf[i__ * 2] = voibuf[(i__ + 1) * 2];
|
||||
voibuf[(i__ << 1) + 1] = voibuf[((i__ + 1) << 1) + 1];
|
||||
voibuf[(i__ << 1) + 1] = voibuf[(i__ + (1 << 1)) + 1];
|
||||
rmsbuf[i__ - 1] = rmsbuf[i__];
|
||||
i__1 = contrl_1.order;
|
||||
for (j = 1; j <= i__1; ++j) {
|
||||
|
||||
Reference in new issue
Block a user