00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include "typedef.h"
00035 #include "bv16cnst.h"
00036 #include "bvcommon.h"
00037
00038
00039 extern const Float bv16_winl[WINSZ];
00040 extern const Float bv16_sstwin[1 + LPCO];
00041 extern const Float bv16_gfsz[];
00042 extern const Float bv16_gfsp[];
00043 extern const int bv16_idxord[];
00044 extern const Float bv16_hpfa[];
00045 extern const Float bv16_hpfb[];
00046 extern const Float bv16_adf[];
00047 extern const Float bv16_bdf[];
00048 extern const Float bv16_x[];
00049 extern const Float bv16_x2[];
00050 extern const Float bv16_MPTH[];
00051
00052
00053 extern const Float bv16_lspecb1[LSPECBSZ1*LPCO];
00054 extern const Float bv16_lspecb2[LSPECBSZ2*LPCO];
00055 extern const Float bv16_lspmean[LPCO];
00056 extern const Float bv16_lspp[LSPPORDER*LPCO];
00057
00058
00059 extern const Float bv16_pp9cb[PPCBSZ*9];
00060
00061
00062 extern const Float bv16_lgpecb[LGPECBSZ];
00063 extern const Float bv16_lgp[LGPORDER];
00064 extern const Float bv16_lgmean;
00065
00066
00067 extern const Float bv16_lgclimit[];
00068
00069
00070 extern const Float bv16_cccb[CBSZ*VDIM];
00071
00072 extern const Float bv16_lgpecb_nh[];
00073
00074
00075 extern Float estlevel(Float lg,
00076 Float *level,
00077 Float *lmax,
00078 Float *lmin,
00079 Float *lmean,
00080 Float *x1,
00081 int16_t ngfae,
00082 int16_t nggalgc,
00083 Float *estl_alpha_min);
00084
00085 extern void excdec_w_LT_synth(
00086 Float *ltsym,
00087 int16_t *idx,
00088 Float gainq,
00089 Float *b,
00090 int16_t pp,
00091 const Float *cb,
00092 Float *EE);
00093
00094 extern Float gaindec(Float *lgq,
00095 int16_t gidx,
00096 Float *lgpm,
00097 Float *prevlg,
00098 Float level,
00099 int16_t *nggalgc,
00100 Float *lg_el);
00101
00102 extern Float gaindec_fe(Float lgq_last,
00103 Float *lgpm);
00104
00105 void gainplc(Float E,
00106 Float *lgeqm,
00107 Float *lgqm);
00108
00109 extern void lspdec(
00110 Float *lspq,
00111 int16_t *lspidx,
00112 Float *lsppm,
00113 Float *lspq_last);
00114
00115 extern void lspplc(
00116 Float *lspq,
00117 Float *lsppm);
00118
00119 extern int coarsepitch(
00120 Float *xw,
00121 Float *xwd,
00122 Float *dfm,
00123 int cpplast);
00124
00125 extern int refinepitch(
00126 Float *x,
00127 int cpp,
00128 Float *ppt);
00129
00130 extern int pitchtapquan(
00131 Float *x,
00132 int pp,
00133 Float *b,
00134 Float *re);
00135
00136 extern void excquan(
00137 int16_t *idx,
00138 Float *s,
00139 Float *aq,
00140 Float *fsz,
00141 Float *fsp,
00142 Float *b,
00143 Float beta,
00144 Float *stsym,
00145 Float *ltsym,
00146 Float *ltnfm,
00147 Float *stnfz,
00148 Float *stnfp,
00149 Float *cb,
00150 int pp);
00151
00152 extern int gainquan(
00153 Float *gainq,
00154 Float lg,
00155 Float *lgpm,
00156 Float *prevlg,
00157 Float level);
00158
00159 extern void lspquan(
00160 Float *lspq,
00161 int16_t *lspidx,
00162 Float *lsp,
00163 Float *lsppm);
00164
00165 extern void bv16_pp3dec(int16_t idx, Float *b);