libg722_1  0.1.0
bv16strct.h
1 /*****************************************************************************/
2 /* BroadVoice(R)16 (BV16) Floating-Point ANSI-C Source Code */
3 /* Revision Date: August 19, 2009 */
4 /* Version 1.0 */
5 /*****************************************************************************/
6 
7 /*****************************************************************************/
8 /* Copyright 2000-2009 Broadcom Corporation */
9 /* */
10 /* This software is provided under the GNU Lesser General Public License, */
11 /* version 2.1, as published by the Free Software Foundation ("LGPL"). */
12 /* This program is distributed in the hope that it will be useful, but */
13 /* WITHOUT ANY SUPPORT OR WARRANTY; without even the implied warranty of */
14 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LGPL for */
15 /* more details. A copy of the LGPL is available at */
16 /* http://www.broadcom.com/licenses/LGPLv2.1.php, */
17 /* or by writing to the Free Software Foundation, Inc., */
18 /* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 /*****************************************************************************/
20 
21 
22 /*****************************************************************************
23  bv16strct.h : BV16 data structures
24 
25  $Log: bv16strct.h,v $
26  Revision 1.1.1.1 2009/11/19 12:10:48 steveu
27  Start from Broadcom's code
28 
29  Revision 1.1.1.1 2009/11/17 14:06:02 steveu
30  start
31 
32 ******************************************************************************/
33 
34 #include "typedef.h"
35 #include "bv16cnst.h"
36 #include "bvcommon.h"
37 
38 #if !defined(_BV16STRCT_H_)
39 #define _BV16STRCT_H_
40 
42 {
43  Float stsym[LPCO];
44  Float ltsym[LTMOFF];
45  Float lsppm[LPCO*LSPPORDER];
46  Float lgpm[LGPORDER];
47  Float lsplast[LPCO];
48  Float prevlg[2];
49  Float lmax; /* level-adaptation */
50  Float lmin;
51  Float lmean;
52  Float x1;
53  Float level;
54  int16_t pp_last;
55  int16_t ngfae;
56  Float bq_last[3];
57  int16_t nggalgc;
58  Float estl_alpha_min;
59  int16_t cfecount;
60  uint32_t idum;
61  Float E;
62  Float per;
63  Float atplc[LPCO + 1];
64  Float ma_a;
65  Float b_prv[2];
66  Float xq[XQOFF];
67  int pp_prv;
68 };
69 
71 {
72  Float x[XOFF]; /* 8kHz down-sampled signal memory */
73  Float xwd[XDOFF]; /* memory of DECF:1 decimated version of xw() */
74  Float dq[XOFF]; /* quantized short-term pred error */
75  Float dfm[DFO]; /* decimated xwd() filter memory */
76  Float stpem[LPCO]; /* ST Pred. Error filter memory */
77  Float stwpm[LPCO]; /* ST Weighting all-Pole Memory */
78  Float stsym[LPCO]; /* ST Synthesis filter Memory */
79  Float ltsym[MAXPP1 + FRSZ]; /* long-term synthesis filter memory */
80  Float ltnfm[MAXPP1 + FRSZ]; /* long-term noise feedback filter memory */
81  Float lsplast[LPCO];
82  Float lsppm[LPCO*LSPPORDER]; /* LSP Predictor Memory */
83  Float lgpm[LGPORDER];
84  Float hpfzm[HPO];
85  Float hpfpm[HPO];
86  Float prevlg[2];
87  Float lmax; /* level-adaptation */
88  Float lmin;
89  Float lmean;
90  Float x1;
91  Float level;
92  int cpplast; /* pitch period pf the previous frame */
93  Float old_A[LPCO + 1];
94  Float stnfz[NSTORDER];
95  Float stnfp[NSTORDER];
96 };
97 
99 {
100  int16_t lspidx[2];
101  int16_t ppidx;
102  int16_t bqidx;
103  int16_t gidx;
104  int16_t qvidx[FRSZ/VDIM];
105 };
106 
107 #endif /* BV16STRCT_H */
Definition: bv16strct.h:98
Definition: broadvoice/private/broadvoice.h:100
Definition: broadvoice/private/broadvoice.h:71