summaryrefslogtreecommitdiff
path: root/rcaudio/bv32strct.h (plain)
blob: 7d5dff7b14a33f551fc0a5a9e19434cda5d6353b
1/*****************************************************************************/
2/* BroadVoice(R)32 (BV32) Floating-Point ANSI-C Source Code */
3/* Revision Date: October 5, 2012 */
4/* Version 1.2 */
5/*****************************************************************************/
6
7
8/*****************************************************************************
9 bv32strct.h : BV32 data structures
10
11 $Log$
12******************************************************************************/
13
14#ifndef BV32STRCT_H
15#define BV32STRCT_H
16
17struct BV32_Decoder_State {
18Float stsym[LPCO];
19Float ltsym[LTMOFF];
20Float lsppm[LPCO*LSPPORDER];
21Float lgpm[LGPORDER];
22Float lsplast[LPCO];
23Float dezfm[PFO];
24Float depfm[PFO];
25short cfecount;
26UWord32 idum;
27Float scplcg;
28Float per;
29Float E;
30Float atplc[LPCO+1];
31short pp_last;
32Float prevlg[2];
33Float lgq_last;
34Float bq_last[3];
35Float lmax; /* level-adaptation */
36Float lmin;
37Float lmean;
38Float x1;
39Float level;
40short nclglim;
41short lctimer;
42};
43
44struct BV32_Encoder_State {
45Float x[XOFF];
46Float xwd[XDOFF]; /* memory of DECF:1 decimated version of xw() */
47Float dq[XOFF]; /* quantized short-term pred error */
48Float dfm[DFO]; /* decimated xwd() filter memory */
49Float stpem[LPCO]; /* ST Pred. Error filter memory, low-band */
50Float stwpm[LPCO]; /* ST Weighting all-Pole Memory, low-band */
51Float stnfm[LPCO]; /* ST Noise Feedback filter Memory, Lowband */
52Float stsym[LPCO]; /* ST SYnthesis filter Memory, Lowband */
53Float ltsym[MAXPP1+FRSZ]; /* long-term synthesis filter memory */
54Float ltnfm[MAXPP1+FRSZ]; /* long-term noise feedback filter memory */
55Float lsppm[LPCO*LSPPORDER]; /* LSP Predictor Memory */
56Float allast[LPCO+1];
57Float lsplast[LPCO];
58Float lgpm[LGPORDER];
59Float hpfzm[HPO];
60Float hpfpm[HPO];
61Float prevlg[2];
62Float lmax; /* level-adaptation */
63Float lmin;
64Float lmean;
65Float x1;
66Float level;
67int cpplast; /* pitch period pf the previous frame */
68};
69
70struct BV32_Bit_Stream {
71short lspidx[3];
72short ppidx; /* 9 bit */
73short bqidx;
74short gidx[2];
75short qvidx[NVPSF];
76};
77
78#endif /* BV32STRCT_H */
79
80