|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /************************************************************************** |
|
21 tool.h - Interface to AAC core structures. |
|
22 |
|
23 Author(s): Juha Ojanpera |
|
24 Copyright (c) 2000-2004 by Nokia Research Center, Speech and Audio Systems. |
|
25 *************************************************************************/ |
|
26 |
|
27 #ifndef AACTOOL_H_ |
|
28 #define AACTOOL_H_ |
|
29 |
|
30 /*-- Project Headers. --*/ |
|
31 #include "nok_bits.h" |
|
32 #include "dec_huf.h" |
|
33 #include "aacdef.h" |
|
34 |
|
35 /* |
|
36 Purpose: LTP parameters for MPEG AAC. |
|
37 Explanation: - */ |
|
38 class CLTP_Info : public CBase |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 static CLTP_Info* NewL(); |
|
44 ~CLTP_Info(); |
|
45 |
|
46 /*-- Max. sfb's used for this channel. --*/ |
|
47 int16 max_sfb; |
|
48 |
|
49 /*-- Codebook index. --*/ |
|
50 uint8 cbIdx; |
|
51 |
|
52 /*-- Boolean flag to indicate the presence of LTP. --*/ |
|
53 int16 ltp_present; |
|
54 |
|
55 /*-- LTP lag. --*/ |
|
56 int16* delay; |
|
57 |
|
58 /*-- Prediction status for each sfb. --*/ |
|
59 uint32 sfbflags[2]; |
|
60 |
|
61 private: |
|
62 |
|
63 CLTP_Info(); |
|
64 void ConstructL(); |
|
65 |
|
66 }; |
|
67 |
|
68 /* |
|
69 Purpose: Structure interface for AAC decoding tools. |
|
70 Explanation: - */ |
|
71 class CToolInfo : public CBase |
|
72 { |
|
73 public: |
|
74 |
|
75 static CToolInfo* NewL(); |
|
76 ~CToolInfo(); |
|
77 CLTP_Info *ltp; |
|
78 int16* quant; |
|
79 |
|
80 private: |
|
81 |
|
82 void ConstructL(); |
|
83 CToolInfo(); |
|
84 |
|
85 }; |
|
86 |
|
87 /* |
|
88 Purpose: Structure interface for coupling channel. |
|
89 Explanation: - */ |
|
90 class CCInfo : public CBase |
|
91 { |
|
92 |
|
93 public: |
|
94 static CCInfo* NewL(); |
|
95 ~CCInfo(); |
|
96 |
|
97 CToolInfo* tool; |
|
98 CWindowInfo* winInfo; |
|
99 |
|
100 private: |
|
101 CCInfo(); |
|
102 void ConstructL(); |
|
103 |
|
104 }; |
|
105 |
|
106 /* |
|
107 Purpose: Information about the audio channel. |
|
108 Explanation: - */ |
|
109 class TEleList |
|
110 { |
|
111 public: |
|
112 int16 num_ele; |
|
113 int16 ele_is_cpe[1 << LEN_TAG]; |
|
114 int16 ele_tag[1 << LEN_TAG]; |
|
115 |
|
116 }; |
|
117 |
|
118 /* |
|
119 Purpose: Mixing information for downmixing multichannel input |
|
120 into two-channel output. |
|
121 Explanation: - */ |
|
122 class TMIXdown |
|
123 { |
|
124 public: |
|
125 int16 present; |
|
126 int16 ele_tag; |
|
127 int16 pseudo_enab; |
|
128 |
|
129 }; |
|
130 |
|
131 |
|
132 /* |
|
133 Purpose: Program configuration element. |
|
134 Explanation: - */ |
|
135 class TProgConfig |
|
136 { |
|
137 public: |
|
138 int16 tag; |
|
139 int16 profile; |
|
140 int16 sample_rate_idx; |
|
141 |
|
142 BOOL pce_present; |
|
143 |
|
144 TEleList front; |
|
145 TEleList side; |
|
146 TEleList back; |
|
147 TEleList lfe; |
|
148 TEleList data; |
|
149 TEleList coupling; |
|
150 |
|
151 TMIXdown mono_mix; |
|
152 TMIXdown stereo_mix; |
|
153 TMIXdown matrix_mix; |
|
154 |
|
155 int16 num_comment_bytes; |
|
156 |
|
157 }; |
|
158 |
|
159 #endif /*-- AACTOOL_H_ --*/ |