Debian Codegraph @

aacenc/inc/tns.h

raw symbols SCIP
1 /*
2 ** Copyright 2003-2010, VisualOn, Inc.
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 /*******************************************************************************
17 File: tns.h
18
19 Content: TNS structures
20
21 *******************************************************************************/
22
23 #ifndef _TNS_H
24 #define _TNS_Hcxx . . $ `aacenc/inc/tns.h:24:9`!
25
26 #include "typedef.h"cxx . . $ `<file>/aacenc/basic_op/typedef.h`/
27 #include "psy_const.h"cxx . . $ `<file>/aacenc/inc/psy_const.h`/
28
29
30
31 #define TNS_MAX_ORDERcxx . . $ `aacenc/inc/tns.h:31:9`! 12
32 #define TNS_MAX_ORDER_SHORTcxx . . $ `aacenc/inc/tns.h:32:9`! 5
33
34 #define FILTER_DIRECTIONcxx . . $ `aacenc/inc/tns.h:34:9`! 0
35
36 typedef structcxx . . $ $anonymous_type_308244efef86870f_0#{ /*stuff that is tabulated dependent on bitrate etc. */
37 Word16cxx . . $ Word16# threshOncxx . . $ $anonymous_type_308244efef86870f_0#threshOn.; /* min. prediction gain for using tns TABUL * 100*/
38 Word32cxx . . $ Word32# lpcStartFreqcxx . . $ $anonymous_type_308244efef86870f_0#lpcStartFreq.; /* lowest freq for lpc TABUL*/
39 Word32cxx . . $ Word32# lpcStopFreqcxx . . $ $anonymous_type_308244efef86870f_0#lpcStopFreq.; /* TABUL */
40 Word32cxx . . $ Word32# tnsTimeResolutioncxx . . $ $anonymous_type_308244efef86870f_0#tnsTimeResolution.;
41 }TNS_CONFIG_TABULATEDcxx . . $ TNS_CONFIG_TABULATED#;
42
43
44 typedef structcxx . . $ $anonymous_type_308244efef86870f_1# { /*assigned at InitTime*/
45 Word16cxx . . $ Word16# tnsActivecxx . . $ $anonymous_type_308244efef86870f_1#tnsActive.;
46 Word16cxx . . $ Word16# tnsMaxSfbcxx . . $ $anonymous_type_308244efef86870f_1#tnsMaxSfb.;
47
48 Word16cxx . . $ Word16# maxOrdercxx . . $ $anonymous_type_308244efef86870f_1#maxOrder.; /* max. order of tns filter */
49 Word16cxx . . $ Word16# tnsStartFreqcxx . . $ $anonymous_type_308244efef86870f_1#tnsStartFreq.; /* lowest freq. for tns filtering */
50 Word16cxx . . $ Word16# coefRescxx . . $ $anonymous_type_308244efef86870f_1#coefRes.;
51
52 TNS_CONFIG_TABULATEDcxx . . $ TNS_CONFIG_TABULATED# confTabcxx . . $ $anonymous_type_308244efef86870f_1#confTab.;
53
54 Word32cxx . . $ Word32# acfWindowcxx . . $ $anonymous_type_308244efef86870f_1#acfWindow.[TNS_MAX_ORDERcxx . . $ `aacenc/inc/tns.h:31:9`!+1];
55
56 Word16cxx . . $ Word16# tnsStartBandcxx . . $ $anonymous_type_308244efef86870f_1#tnsStartBand.;
57 Word16cxx . . $ Word16# tnsStartLinecxx . . $ $anonymous_type_308244efef86870f_1#tnsStartLine.;
58
59 Word16cxx . . $ Word16# tnsStopBandcxx . . $ $anonymous_type_308244efef86870f_1#tnsStopBand.;
60 Word16cxx . . $ Word16# tnsStopLinecxx . . $ $anonymous_type_308244efef86870f_1#tnsStopLine.;
61
62 Word16cxx . . $ Word16# lpcStartBandcxx . . $ $anonymous_type_308244efef86870f_1#lpcStartBand.;
63 Word16cxx . . $ Word16# lpcStartLinecxx . . $ $anonymous_type_308244efef86870f_1#lpcStartLine.;
64
65 Word16cxx . . $ Word16# lpcStopBandcxx . . $ $anonymous_type_308244efef86870f_1#lpcStopBand.;
66 Word16cxx . . $ Word16# lpcStopLinecxx . . $ $anonymous_type_308244efef86870f_1#lpcStopLine.;
67
68 Word16cxx . . $ Word16# tnsRatioPatchLowestCbcxx . . $ $anonymous_type_308244efef86870f_1#tnsRatioPatchLowestCb.;
69 Word16cxx . . $ Word16# tnsModifyBeginCbcxx . . $ $anonymous_type_308244efef86870f_1#tnsModifyBeginCb.;
70
71 Word16cxx . . $ Word16# thresholdcxx . . $ $anonymous_type_308244efef86870f_1#threshold.; /* min. prediction gain for using tns TABUL * 100 */
72
73 }TNS_CONFIGcxx . . $ TNS_CONFIG#;
74
75
76 typedef structcxx . . $ $anonymous_type_308244efef86870f_2# {
77 Word16cxx . . $ Word16# tnsActivecxx . . $ $anonymous_type_308244efef86870f_2#tnsActive.;
78 Word32cxx . . $ Word32# parcorcxx . . $ $anonymous_type_308244efef86870f_2#parcor.[TNS_MAX_ORDERcxx . . $ `aacenc/inc/tns.h:31:9`!];
79 Word16cxx . . $ Word16# predictionGaincxx . . $ $anonymous_type_308244efef86870f_2#predictionGain.;
80 } TNS_SUBBLOCK_INFOcxx . . $ TNS_SUBBLOCK_INFO#; /* Word16 size: 26 */
81
82 typedef structcxx . . $ $anonymous_type_308244efef86870f_3#{
83 TNS_SUBBLOCK_INFOcxx . . $ TNS_SUBBLOCK_INFO# subBlockInfocxx . . $ $anonymous_type_308244efef86870f_3#subBlockInfo.[TRANS_FACcxx . . $ `aacenc/inc/psy_const.h:32:9`!];
84 } TNS_DATA_SHORTcxx . . $ TNS_DATA_SHORT#;
85
86 typedef structcxx . . $ $anonymous_type_308244efef86870f_4#{
87 TNS_SUBBLOCK_INFOcxx . . $ TNS_SUBBLOCK_INFO# subBlockInfocxx . . $ $anonymous_type_308244efef86870f_4#subBlockInfo.;
88 } TNS_DATA_LONGcxx . . $ TNS_DATA_LONG#;
89
90 typedef structcxx . . $ $anonymous_type_308244efef86870f_5#{
91 TNS_DATA_LONGcxx . . $ TNS_DATA_LONG# tnsLongcxx . . $ $anonymous_type_308244efef86870f_5#tnsLong.;
92 TNS_DATA_SHORTcxx . . $ TNS_DATA_SHORT# tnsShortcxx . . $ $anonymous_type_308244efef86870f_5#tnsShort.;
93 }TNS_DATA_RAWcxx . . $ TNS_DATA_RAW#;
94
95 typedef structcxx . . $ $anonymous_type_308244efef86870f_6#{
96 Word16cxx . . $ Word16# numOfSubblockscxx . . $ $anonymous_type_308244efef86870f_6#numOfSubblocks.;
97 TNS_DATA_RAWcxx . . $ TNS_DATA_RAW# dataRawcxx . . $ $anonymous_type_308244efef86870f_6#dataRaw.;
98 }TNS_DATAcxx . . $ TNS_DATA#; /* Word16 size: 1 + 8*26 + 26 = 235 */
99
100 typedef structcxx . . $ $anonymous_type_308244efef86870f_7#{
101 Word16cxx . . $ Word16# tnsActivecxx . . $ $anonymous_type_308244efef86870f_7#tnsActive.[TRANS_FACcxx . . $ `aacenc/inc/psy_const.h:32:9`!];
102 Word16cxx . . $ Word16# coefRescxx . . $ $anonymous_type_308244efef86870f_7#coefRes.[TRANS_FACcxx . . $ `aacenc/inc/psy_const.h:32:9`!];
103 Word16cxx . . $ Word16# lengthcxx . . $ $anonymous_type_308244efef86870f_7#length.[TRANS_FACcxx . . $ `aacenc/inc/psy_const.h:32:9`!];
104 Word16cxx . . $ Word16# ordercxx . . $ $anonymous_type_308244efef86870f_7#order.[TRANS_FACcxx . . $ `aacenc/inc/psy_const.h:32:9`!];
105 Word16cxx . . $ Word16# coefcxx . . $ $anonymous_type_308244efef86870f_7#coef.[TRANS_FACcxx . . $ `aacenc/inc/psy_const.h:32:9`!*TNS_MAX_ORDER_SHORTcxx . . $ `aacenc/inc/tns.h:32:9`!];
106 }TNS_INFOcxx . . $ TNS_INFO#; /* Word16 size: 72 */
107
108 #endif /* _TNS_H */