Asterisk - The Open Source Telephony Project
18.5.0
|
#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 abs | ( | x | ) | ((x) >= 0 ? (x) : -(x)) |
Definition at line 195 of file f2c.h.
Referenced by __ast_dsp_silence_noise(), addr_range_hash_cb(), amdf_pitch(), ast_dsp_busydetect(), ast_frame_adjust_volume(), audiohook_read_frame_both(), calc_energy(), calc_timestamp(), decode_(), difmag_(), do_alignment_detection(), goertzel_sample(), hash_ao2_destroy(), hash_ao2_find_first(), hash_ao2_new_node(), invert_(), jitterbuffer_frame_get_ntp_timestamp(), manager_add_queue_member(), manager_pause_queue_member(), measurenoise(), onset_(), parse_config(), quantize(), rcchk_(), rtp_raw_write(), sms_process(), update(), and vparms_().
#define dabs | ( | x | ) | (doublereal)abs(x) |
#define FALSE_ (0) |
Definition at line 198 of file f2c.h.
Referenced by __get_page(), __put_page(), acf_rand_exec(), action_waitevent(), ast_base64encode_full(), ast_base64url_encode_full(), ast_dsp_prog_reset(), ast_el_read_char(), ast_waitfor_nandfds(), au_seek(), background_detect_exec(), drc_sample(), dundi_lookup_thread(), encode_(), g719seek(), g726_seek(), g729_seek(), gsm_seek(), handle_clear_profile(), handle_getdata(), handle_show_profile(), hash_test_lookup(), history_get(), ilbc_seek(), invert_(), max_heapify(), misdn_lib_maxports_get(), misdn_write(), mp3_seek(), osp_report_qos(), pcm_seek(), placev_(), precache_trans(), process_opcode(), siren14seek(), siren7seek(), slinear_seek(), synths_(), tbdm_(), voicin_(), vox_seek(), vparms_(), wait_result(), and wav_seek().
Definition at line 197 of file f2c.h.
Referenced by acf_rand_exec(), action_meetmelistrooms(), au_seek(), background_detect_exec(), bsynz_(), encode_(), g719seek(), g726_seek(), g729_seek(), gsm_seek(), handle_clear_profile(), handle_show_profile(), handle_showchan(), history_get(), ilbc_seek(), invert_(), limits_interval_playback(), main(), meetme_show_cmd(), mp3_seek(), osp_report_qos(), placev_(), serialize_showchan(), siren14seek(), siren7seek(), slinear_seek(), synths_(), tbdm_(), voicin_(), vox_seek(), vparms_(), and wav_seek().
#define TRUE_ (1) |
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_(), and NULL.
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_().
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 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_, lpc10_decoder_state::first, 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 | ||
) |
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 78 of file energy.c.
References len().
Referenced by analys_().
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 89 of file ivfilt.c.
References len().
Referenced by analys_().
Definition at line 83 of file lpfilt.c.
References inbuf(), lpc10_decoder_state::j, and len().
Referenced by analys_().
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 | ||
) |
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, 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 | ||
) |
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 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_().
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_(), buf, lpc10_decoder_state::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 | ||
) |
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(), L1, L2, 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__ | ||
) |