|
1 /* |
|
2 |
|
3 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
4 |
|
5 * All rights reserved. |
|
6 |
|
7 * This component and the accompanying materials are made available |
|
8 |
|
9 * under the terms of "Eclipse Public License v1.0" |
|
10 |
|
11 * which accompanies this distribution, and is available |
|
12 |
|
13 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
14 |
|
15 * |
|
16 |
|
17 * Initial Contributors: |
|
18 |
|
19 * Nokia Corporation - initial contribution. |
|
20 |
|
21 * |
|
22 |
|
23 * Contributors: |
|
24 |
|
25 * |
|
26 |
|
27 * Description: Class definition for the frame table functions. |
|
28 |
|
29 * |
|
30 |
|
31 */ |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 // INCLUDE FILES |
|
41 |
|
42 #include <e32debug.h> |
|
43 #include <eaacplusutil.h> |
|
44 #include "mcc_eaacputil_aaccodec.h" |
|
45 |
|
46 |
|
47 |
|
48 // ============================ MEMBER FUNCTIONS =============================== |
|
49 |
|
50 |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 |
|
54 // CEAacPlusUtil::CEAacPlusUtil |
|
55 |
|
56 // C++ default constructor can NOT contain any code, that |
|
57 |
|
58 // might leave. |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 |
|
62 // |
|
63 |
|
64 CEAacPlusUtil::CEAacPlusUtil() |
|
65 |
|
66 { |
|
67 |
|
68 } |
|
69 |
|
70 |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 |
|
74 // CEAacPlusUtil::ConstructL |
|
75 |
|
76 // Symbian 2nd phase constructor can leave. |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 |
|
80 // |
|
81 |
|
82 void CEAacPlusUtil::ConstructL() |
|
83 |
|
84 { |
|
85 |
|
86 |
|
87 } |
|
88 |
|
89 |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 |
|
93 // CEAacPlusUtil::NewL |
|
94 |
|
95 // Two-phased constructor. |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 |
|
99 // |
|
100 |
|
101 EXPORT_C CEAacPlusUtil* CEAacPlusUtil::NewL() |
|
102 |
|
103 { |
|
104 |
|
105 |
|
106 CEAacPlusUtil* self = new( ELeave ) CEAacPlusUtil; |
|
107 |
|
108 CleanupStack::PushL( self ); |
|
109 |
|
110 self->ConstructL(); |
|
111 |
|
112 CleanupStack::Pop(self); |
|
113 |
|
114 return self; |
|
115 |
|
116 } |
|
117 |
|
118 |
|
119 |
|
120 // Destructor |
|
121 |
|
122 EXPORT_C CEAacPlusUtil::~CEAacPlusUtil() |
|
123 |
|
124 { |
|
125 |
|
126 } |
|
127 |
|
128 |
|
129 |
|
130 // ----------------------------------------------------------------------------- |
|
131 |
|
132 // CEAacPlusUtil::GetAacFormatType |
|
133 |
|
134 // Used to get the format type. |
|
135 |
|
136 // ----------------------------------------------------------------------------- |
|
137 |
|
138 // |
|
139 |
|
140 |
|
141 |
|
142 EXPORT_C TInt CEAacPlusUtil::GetAacFormatType(const TUint8* aBuf, TInt aBufLen, TEAacPlusFormatType& aFormatType) |
|
143 |
|
144 { |
|
145 |
|
146 RDebug::Print(_L("CFrameTable::InitFrameTable aBuf[%d], aBufLen[%d], aFormatType[%d]"), aBuf, aBufLen, aFormatType); |
|
147 return KErrNone; |
|
148 } |
|
149 |
|
150 |
|
151 |
|
152 // ----------------------------------------------------------------------------- |
|
153 |
|
154 // CEAacPlusUtil::GetAacFrameInfo |
|
155 |
|
156 // Used to get the format information. |
|
157 |
|
158 // ----------------------------------------------------------------------------- |
|
159 |
|
160 // |
|
161 |
|
162 EXPORT_C TInt CEAacPlusUtil::GetAacFrameInfo(const TUint8* aHdrBuf, TInt& aHdrLen, TEAacPlusFrameInfo& aFrameInfo) |
|
163 |
|
164 { |
|
165 |
|
166 RDebug::Print(_L("CFrameTable::InitFrameTable aHdrBuf[%d], aHdrLen[%d], aFrameInfo[%d]"), aHdrBuf, aHdrLen, aFrameInfo); |
|
167 return KErrNone; |
|
168 |
|
169 } |
|
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 // ----------------------------------------------------------------------------- |
|
176 |
|
177 // CEAacPlusUtil::GetAacFrameInfo |
|
178 |
|
179 // Used to get the format information. |
|
180 |
|
181 // ----------------------------------------------------------------------------- |
|
182 |
|
183 // |
|
184 |
|
185 EXPORT_C TInt CEAacPlusUtil::GetAacFrameInfo (const TUint8* aHdrBuf, TInt& aHdrLen, TEAacPlusFrameInfo& aFrameInfo, |
|
186 |
|
187 TUint8* aDataBuf, TInt aDataBufLen) |
|
188 |
|
189 { |
|
190 |
|
191 RDebug::Print(_L("CFrameTable::InitFrameTable aHdrBuf[%d], aHdrLen[%d], aFrameInfo[%d], aDataBuf[%d], aDataBufLen[%d]"), aHdrBuf, aHdrLen, aFrameInfo, aDataBuf, aDataBufLen); |
|
192 return KErrNone; |
|
193 |
|
194 } |
|
195 |
|
196 |
|
197 |
|
198 // ----------------------------------------------------------------------------- |
|
199 |
|
200 // CEAacPlusUtil::GetAacFrameLength |
|
201 |
|
202 // Used to get the size (in bytes) of the frame found at the start of aBuf. |
|
203 |
|
204 // ----------------------------------------------------------------------------- |
|
205 |
|
206 // |
|
207 |
|
208 EXPORT_C TInt CEAacPlusUtil::GetAacFrameLength(const TUint8* aBuf, TInt aBufLen, TInt& aFrameLen) |
|
209 |
|
210 { |
|
211 RDebug::Print(_L("CFrameTable::InitFrameTable aBuf[%d], aBufLen[%d], aFrameLen[%d]"), aBuf, aBufLen, aFrameLen); |
|
212 return KErrNone; |
|
213 } |
|
214 |
|
215 |
|
216 |
|
217 // ----------------------------------------------------------------------------- |
|
218 |
|
219 // CEAacPlusUtil::Config |
|
220 |
|
221 // Used to initialize the util if FrameInfo is not used to do it. |
|
222 |
|
223 // ----------------------------------------------------------------------------- |
|
224 |
|
225 // |
|
226 |
|
227 EXPORT_C TInt CEAacPlusUtil::Config(TEAacPlusFrameLenConfig& aFrameLenConfig) |
|
228 |
|
229 { |
|
230 |
|
231 RDebug::Print(_L("CFrameTable::InitFrameTable aFrameLenConfig[%d]"), aFrameLenConfig); |
|
232 return KErrNone; |
|
233 } |
|
234 |
|
235 |
|
236 |
|
237 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
238 |
|
239 |
|
240 |
|
241 // End of File |
|
242 |