Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include "lpc10.h"
Go to the source code of this file.
Data Structures | |
struct | alist |
struct | cilist |
struct | cllist |
struct | complex |
struct | doublecomplex |
struct | icilist |
struct | inlist |
union | Multitype |
struct | Namelist |
struct | olist |
struct | Vardesc |
Macros | |
#define | abs(x) ((x) >= 0 ? (x) : -(x)) |
#define | dabs(x) (doublereal)abs(x) |
#define | dmax(a, b) (doublereal)max(a,b) |
#define | dmin(a, b) (doublereal)min(a,b) |
#define | Extern extern |
#define | F2C_proc_par_types 1 |
#define | FALSE_ (0) |
#define | max(a, b) ((a) >= (b) ? (a) : (b)) |
#define | min(a, b) ((a) <= (b) ? (a) : (b)) |
#define | TRUE_ (1) |
#define | VOID void |
Typedefs | |
typedef char * | address |
typedef VOID | C_f |
typedef VOID(* | C_fp) (VOID) |
typedef doublereal(* | D_fp) (VOID) |
typedef double | doublereal |
typedef doublereal | E_f |
typedef doublereal(*)(* | E_fp) (VOID) |
typedef long int | flag |
typedef long int | ftnint |
typedef long int | ftnlen |
typedef VOID | H_f |
typedef VOID(* | H_fp) (VOID) |
typedef integer(* | I_fp) (VOID) |
typedef char | integer1 |
typedef shortint(* | J_fp) (VOID) |
typedef shortlogical(* | K_fp) (VOID) |
typedef logical(* | L_fp) (VOID) |
typedef char | logical1 |
typedef union Multitype | Multitype |
typedef struct Namelist | Namelist |
typedef real(* | R_fp) (VOID) |
typedef int(* | S_fp) (VOID) |
typedef short int | shortlogical |
typedef int(* | U_fp) (VOID) |
typedef struct Vardesc | Vardesc |
typedef VOID | Z_f |
typedef VOID(* | Z_fp) (VOID) |
Functions | |
int | bsynz_ (real *coef, integer *ip, integer *iv, real *sout, real *rms, real *ratio, real *g2pass, struct lpc10_decoder_state *st) |
int | chanrd_ (integer *order, integer *ipitv, integer *irms, integer *irc, integer *ibits) |
int | chanwr_ (integer *order, integer *ipitv, integer *irms, integer *irc, integer *ibits, struct lpc10_encoder_state *st) |
int | chanwr_0_ (int n__, integer *order, integer *ipitv, integer *irms, integer *irc, integer *ibits, struct lpc10_encoder_state *st) |
int | dcbias_ (integer *len, real *speech, real *sigout) |
int | decode_ (integer *ipitv, integer *irms, integer *irc, integer *voice, integer *pitch, real *rms, real *rc, struct lpc10_decoder_state *st) |
int | deemp_ (real *x, integer *n, struct lpc10_decoder_state *st) |
int | difmag_ (real *speech, integer *lpita, integer *tau, integer *ltau, integer *maxlag, real *amdf, integer *minptr, integer *maxptr) |
int | dyptrk_ (real *amdf, integer *ltau, integer *minptr, integer *voice, integer *pitch, integer *midx, struct lpc10_encoder_state *st) |
int | encode_ (integer *voice, integer *pitch, real *rms, real *rc, integer *ipitch, integer *irms, integer *irc) |
int | energy_ (integer *len, real *speech, real *rms) |
int | ham84_ (integer *input, integer *output, integer *errcnt) |
int | hp100_ (real *speech, integer *start, integer *end, struct lpc10_encoder_state *st) |
integer | i_nint (real *x) |
int | inithp100_ (void) |
int | initlpcdec_ (void) |
int | initlpcenc_ (void) |
int | invert_ (integer *order, real *phi, real *psi, real *rc) |
int | irc2pc_ (real *rc, real *pc, integer *order, real *gprime, real *g2pass) |
int | ivfilt_ (real *lpbuf, real *ivbuf, integer *len, integer *nsamp, real *ivrc) |
int | lpcdec_ (integer *bits, real *speech) |
int | lpcenc_ (real *speech, integer *bits) |
int | lpfilt_ (real *inbuf, real *lpbuf, integer *len, integer *nsamp) |
integer | median_ (integer *d1, integer *d2, integer *d3) |
int | mload_ (integer *order, integer *awins, integer *awinf, real *speech, real *phi, real *psi) |
int | onset_ (real *pebuf, integer *osbuf, integer *osptr, integer *oslen, integer *sbufl, integer *sbufh, integer *lframe, struct lpc10_encoder_state *st) |
int | pitsyn_ (integer *order, integer *voice, integer *pitch, real *rms, real *rc, integer *lframe, integer *ivuv, integer *ipiti, real *rmsi, real *rci, integer *nout, real *ratio, struct lpc10_decoder_state *st) |
int | placea_ (integer *ipitch, integer *voibuf, integer *obound, integer *af, integer *vwin, integer *awin, integer *ewin, integer *lframe, integer *maxwin) |
int | placev_ (integer *osbuf, integer *osptr, integer *oslen, integer *obound, integer *vwin, integer *af, integer *lframe, integer *minwin, integer *maxwin, integer *dvwinl, integer *dvwinh) |
integer | pow_ii (integer *ap, integer *bp) |
int | preemp_ (real *inbuf, real *pebuf, integer *nsamp, real *coef, real *z__) |
int | prepro_ (real *speech, integer *length, struct lpc10_encoder_state *st) |
double | r_sign (real *a, real *b) |
integer | random_ (struct lpc10_decoder_state *st) |
int | rcchk_ (integer *order, real *rc1f, real *rc2f) |
int | synths_ (integer *voice, integer *pitch, real *rms, real *rc, real *speech, integer *k, struct lpc10_decoder_state *st) |
int | tbdm_ (real *speech, integer *lpita, integer *tau, integer *ltau, real *amdf, integer *minptr, integer *maxptr, integer *mintau) |
int | voicin_ (integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *minamd, real *maxamd, integer *mintau, real *ivrc, integer *obound, integer *voibuf, integer *af, struct lpc10_encoder_state *st) |
int | vparms_ (integer *vwin, real *inbuf, real *lpbuf, integer *buflim, integer *half, real *dither, integer *mintau, integer *zc, integer *lbe, integer *fbe, real *qs, real *rc1, real *ar_b__, real *ar_f__) |
#define dabs | ( | x | ) | (doublereal)abs(x) |
typedef doublereal(* D_fp) (VOID) |
typedef double doublereal |
typedef doublereal E_f |
typedef doublereal(*)(* E_fp) (VOID) |
typedef shortlogical(* K_fp) (VOID) |
typedef short int shortlogical |
int bsynz_ | ( | real * | coef, |
integer * | ip, | ||
integer * | iv, | ||
real * | sout, | ||
real * | rms, | ||
real * | ratio, | ||
real * | g2pass, | ||
struct lpc10_decoder_state * | st | ||
) |
Definition at line 122 of file bsynz.c.
References contrl_1, lpc10_decoder_state::exc, lpc10_decoder_state::exc2, lpc10_decoder_state::hpi1, lpc10_decoder_state::hpi2, lpc10_decoder_state::hpi3, lpc10_decoder_state::ipo, lpc10_decoder_state::lpi1, lpc10_decoder_state::lpi2, lpc10_decoder_state::lpi3, min, random_(), and lpc10_decoder_state::rmso_bsynz.
Referenced by synths_().
Definition at line 229 of file chanwr.c.
References chanwr_0_(), NULL, and order.
Referenced by lpc10_decode().
int chanwr_ | ( | integer * | order, |
integer * | ipitv, | ||
integer * | irms, | ||
integer * | irc, | ||
integer * | ibits, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 223 of file chanwr.c.
References chanwr_0_(), and order.
Referenced by lpc10_encode().
int chanwr_0_ | ( | int | n__, |
integer * | order, | ||
integer * | ipitv, | ||
integer * | irms, | ||
integer * | irc, | ||
integer * | ibits, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 132 of file chanwr.c.
References lpc10_encoder_state::isync, and order.
Definition at line 79 of file dcbias.c.
References len().
Referenced by analys_().
int decode_ | ( | integer * | ipitv, |
integer * | irms, | ||
integer * | irc, | ||
integer * | voice, | ||
integer * | pitch, | ||
real * | rms, | ||
real * | rc, | ||
struct lpc10_decoder_state * | st | ||
) |
Definition at line 147 of file lpc10/decode.c.
References abs, c__2, contrl_1, lpc10_decoder_state::dpit, lpc10_decoder_state::drc, lpc10_decoder_state::drms, lpc10_decoder_state::erate, FALSE_, first, lpc10_decoder_state::first, ham84_(), lpc10_decoder_state::iavgp, lpc10_decoder_state::iovoic, lpc10_decoder_state::iptold, lpc10_decoder_state::ivp2h, median_(), and pow_ii().
Referenced by lpc10_decode().
int deemp_ | ( | real * | x, |
integer * | n, | ||
struct lpc10_decoder_state * | st | ||
) |
Definition at line 106 of file deemp.c.
References lpc10_decoder_state::dei1, lpc10_decoder_state::dei2, lpc10_decoder_state::deo1, lpc10_decoder_state::deo2, and lpc10_decoder_state::deo3.
Referenced by synths_().
int difmag_ | ( | real * | speech, |
integer * | lpita, | ||
integer * | tau, | ||
integer * | ltau, | ||
integer * | maxlag, | ||
real * | amdf, | ||
integer * | minptr, | ||
integer * | maxptr | ||
) |
Definition at line 90 of file difmag.c.
References abs.
Referenced by tbdm_().
int dyptrk_ | ( | real * | amdf, |
integer * | ltau, | ||
integer * | minptr, | ||
integer * | voice, | ||
integer * | pitch, | ||
integer * | midx, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 129 of file dyptrk.c.
References lpc10_encoder_state::alphax, lpc10_encoder_state::ipoint, lpc10_encoder_state::p, and lpc10_encoder_state::s.
Referenced by analys_().
int encode_ | ( | integer * | voice, |
integer * | pitch, | ||
real * | rms, | ||
real * | rc, | ||
integer * | ipitch, | ||
integer * | irms, | ||
integer * | irc | ||
) |
Definition at line 111 of file encode.c.
References c__2, contrl_1, max, min, and pow_ii().
Referenced by lpc10_encode().
Definition at line 78 of file energy.c.
References len().
Referenced by analys_().
Definition at line 85 of file ham84.c.
References input().
Referenced by decode_().
int hp100_ | ( | real * | speech, |
integer * | start, | ||
integer * | end, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 113 of file hp100.c.
References end, lpc10_encoder_state::z11, lpc10_encoder_state::z12, lpc10_encoder_state::z21, and lpc10_encoder_state::z22.
Referenced by prepro_().
int inithp100_ | ( | void | ) |
int initlpcdec_ | ( | void | ) |
int initlpcenc_ | ( | void | ) |
Definition at line 93 of file invert.c.
References abs, max, min, and order.
Referenced by analys_().
Definition at line 82 of file irc2pc.c.
References order.
Referenced by synths_().
Definition at line 89 of file ivfilt.c.
References len().
Referenced by analys_().
Definition at line 83 of file lpfilt.c.
References inbuf(), and len().
Referenced by analys_().
Definition at line 69 of file median.c.
Referenced by decode_().
int mload_ | ( | integer * | order, |
integer * | awins, | ||
integer * | awinf, | ||
real * | speech, | ||
real * | phi, | ||
real * | psi | ||
) |
Definition at line 99 of file mload.c.
References order.
Referenced by analys_().
int onset_ | ( | real * | pebuf, |
integer * | osbuf, | ||
integer * | osptr, | ||
integer * | oslen, | ||
integer * | sbufl, | ||
integer * | sbufh, | ||
integer * | lframe, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 129 of file onset.c.
References abs, c_b2, lpc10_encoder_state::d__, FALSE_, lpc10_encoder_state::fpc, lpc10_encoder_state::hyst, lpc10_encoder_state::l2buf, lpc10_encoder_state::l2ptr1, lpc10_encoder_state::l2ptr2, lpc10_encoder_state::l2sum1, lpc10_encoder_state::lasti, lframe, lpc10_encoder_state::n, r_sign(), and TRUE_.
Referenced by analys_().
int pitsyn_ | ( | integer * | order, |
integer * | voice, | ||
integer * | pitch, | ||
real * | rms, | ||
real * | rc, | ||
integer * | lframe, | ||
integer * | ivuv, | ||
integer * | ipiti, | ||
real * | rmsi, | ||
real * | rci, | ||
integer * | nout, | ||
real * | ratio, | ||
struct lpc10_decoder_state * | st | ||
) |
Definition at line 132 of file pitsyn.c.
References FALSE_, first, lpc10_decoder_state::first_pitsyn, lpc10_decoder_state::ipito, lpc10_decoder_state::ivoico, lpc10_decoder_state::jsamp, lframe, order, lpc10_decoder_state::rco, lpc10_decoder_state::rmso, and TRUE_.
Referenced by synths_().
int placea_ | ( | integer * | ipitch, |
integer * | voibuf, | ||
integer * | obound, | ||
integer * | af, | ||
integer * | vwin, | ||
integer * | awin, | ||
integer * | ewin, | ||
integer * | lframe, | ||
integer * | maxwin | ||
) |
Definition at line 116 of file placea.c.
References FALSE_, i_nint(), lframe, and TRUE_.
Referenced by analys_().
int placev_ | ( | integer * | osbuf, |
integer * | osptr, | ||
integer * | oslen, | ||
integer * | obound, | ||
integer * | vwin, | ||
integer * | af, | ||
integer * | lframe, | ||
integer * | minwin, | ||
integer * | maxwin, | ||
integer * | dvwinl, | ||
integer * | dvwinh | ||
) |
Definition at line 112 of file placev.c.
References FALSE_, lframe, max, min, and TRUE_.
Referenced by analys_().
Definition at line 30 of file f2clib.c.
Definition at line 82 of file preemp.c.
References inbuf().
Referenced by analys_().
int prepro_ | ( | real * | speech, |
integer * | length, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 101 of file prepro.c.
References c__1, and hp100_().
Referenced by lpc10_encode().
integer random_ | ( | struct lpc10_decoder_state * | st | ) |
Definition at line 93 of file random.c.
References lpc10_decoder_state::j, lpc10_decoder_state::k, and lpc10_decoder_state::y.
Referenced by bsynz_().
Definition at line 82 of file rcchk.c.
Referenced by analys_().
int synths_ | ( | integer * | voice, |
integer * | pitch, | ||
real * | rms, | ||
real * | rc, | ||
real * | speech, | ||
integer * | k, | ||
struct lpc10_decoder_state * | st | ||
) |
Definition at line 170 of file synths.c.
References bsynz_(), lpc10_decoder_state::buf, buf, lpc10_decoder_state::buflen, c_b2, contrl_1, deemp_(), irc2pc_(), max, min, and pitsyn_().
Referenced by lpc10_decode().
int tbdm_ | ( | real * | speech, |
integer * | lpita, | ||
integer * | tau, | ||
integer * | ltau, | ||
real * | amdf, | ||
integer * | minptr, | ||
integer * | maxptr, | ||
integer * | mintau | ||
) |
Definition at line 94 of file tbdm.c.
References difmag_(), max, and min.
Referenced by analys_().
int voicin_ | ( | integer * | vwin, |
real * | inbuf, | ||
real * | lpbuf, | ||
integer * | buflim, | ||
integer * | half, | ||
real * | minamd, | ||
real * | maxamd, | ||
integer * | mintau, | ||
real * | ivrc, | ||
integer * | obound, | ||
integer * | voibuf, | ||
integer * | af, | ||
struct lpc10_encoder_state * | st | ||
) |
Definition at line 258 of file voicin.c.
References lpc10_encoder_state::dither, lpc10_encoder_state::fbue, lpc10_encoder_state::fbve, i_nint(), inbuf(), lpc10_encoder_state::lbue, lpc10_encoder_state::lbve, max, lpc10_encoder_state::maxmin, min, lpc10_encoder_state::ofbue, lpc10_encoder_state::olbue, lpc10_encoder_state::sfbue, lpc10_encoder_state::slbue, lpc10_encoder_state::snr, value, lpc10_encoder_state::voice, and vparms_().
Referenced by analys_().
int vparms_ | ( | integer * | vwin, |
real * | inbuf, | ||
real * | lpbuf, | ||
integer * | buflim, | ||
integer * | half, | ||
real * | dither, | ||
integer * | mintau, | ||
integer * | zc, | ||
integer * | lbe, | ||
integer * | fbe, | ||
real * | qs, | ||
real * | rc1, | ||
real * | ar_b__, | ||
real * | ar_f__ | ||
) |
Definition at line 134 of file vparms.c.
References abs, c_b2, i_nint(), inbuf(), max, min, r_sign(), and stop.
Referenced by voicin_().