libg722_1
0.1.0
bv32strct.h
1
/*
2
* broadvoice - a library for the BroadVoice 16 and 32 codecs
3
*
4
* bv32strct.h -
5
*
6
* Adapted by Steve Underwood <steveu@coppice.org> from code which is
7
* Copyright 2000-2009 Broadcom Corporation
8
*
9
* All rights reserved.
10
*
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU Lesser General Public License version 2.1,
13
* as published by the Free Software Foundation.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Lesser General Public License for more details.
19
*
20
* You should have received a copy of the GNU Lesser General Public
21
* License along with this program; if not, write to the Free Software
22
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
*
24
* $Id: bv32strct.h,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $
25
*/
26
27
#include "typedef.h"
28
#include "bv32cnst.h"
29
#include "bvcommon.h"
30
31
#if !defined(_BV32STRCT_H_)
32
#define _BV32STRCT_H_
33
34
struct
bv32_decode_state_s
35
{
36
Float stsym[LPCO];
37
Float ltsym[LTMOFF];
38
Float lsppm[LPCO*LSPPORDER];
39
Float lgpm[LGPORDER];
40
Float lsplast[LPCO];
41
Float dezfm[PFO];
42
Float depfm[PFO];
43
int16_t cfecount;
44
uint32_t idum;
45
Float E;
46
Float scplcg;
47
Float per;
48
Float atplc[LPCO + 1];
49
int16_t pp_last;
50
Float prevlg[2];
51
Float lgq_last;
52
Float bq_last[3];
53
Float lmax;
/* level-adaptation */
54
Float lmin;
55
Float lmean;
56
Float x1;
57
Float level;
58
int16_t nclglim;
59
int16_t lctimer;
60
};
61
62
struct
bv32_encode_state_s
63
{
64
Float x[XOFF];
65
Float xwd[XDOFF];
/* memory of DECF:1 decimated version of xw() */
66
Float dq[XOFF];
/* quantized short-term pred error */
67
Float dfm[DFO];
/* decimated xwd() filter memory */
68
Float stpem[LPCO];
/* ST Pred. Error filter memory, low-band */
69
Float stwpm[LPCO];
/* ST Weighting all-Pole Memory, low-band */
70
Float stnfm[LPCO];
/* ST Noise Feedback filter Memory, Lowband */
71
Float stsym[LPCO];
/* ST Synthesis filter Memory, Lowband */
72
Float ltsym[MAXPP1 + FRSZ];
/* long-term synthesis filter memory */
73
Float ltnfm[MAXPP1 + FRSZ];
/* long-term noise feedback filter memory */
74
Float lsplast[LPCO];
75
Float lsppm[LPCO*LSPPORDER];
/* LSP Predictor Memory */
76
Float lgpm[LGPORDER];
77
Float hpfzm[HPO];
78
Float hpfpm[HPO];
79
Float prevlg[2];
80
Float lmax;
/* level-adaptation */
81
Float lmin;
82
Float lmean;
83
Float x1;
84
Float level;
85
int
cpplast;
/* pitch period pf the previous frame */
86
Float allast[LPCO + 1];
87
};
88
89
struct
BV32_Bit_Stream
90
{
91
int16_t lspidx[3];
92
int16_t ppidx;
93
int16_t bqidx;
94
int16_t gidx[2];
95
int16_t qvidx[NVPSF];
96
};
97
98
#endif
bv32_encode_state_s
Definition:
broadvoice/private/broadvoice.h:156
bv32_decode_state_s
Definition:
broadvoice/private/broadvoice.h:128
BV32_Bit_Stream
Definition:
bv32strct.h:89
src
floating
bv32
bv32strct.h
Generated by
1.8.17