0
|
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 |
Product : Decoder Parser Utility
|
|
37 |
|
|
38 |
Module :
|
|
39 |
|
|
40 |
File :
|
|
41 |
|
|
42 |
Description :
|
|
43 |
|
|
44 |
*******************************************************************************
|
|
45 |
|
|
46 |
*/
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
#ifndef INCLUDE_EAACPLUSUTILITY_H
|
|
53 |
|
|
54 |
#define INCLUDE_EAACPLUSUTILITY_H
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
#ifdef SYMBIAN_BUILD
|
|
59 |
|
|
60 |
#include<e32def.h>
|
|
61 |
|
|
62 |
//#else /* SYMBIAN_BUILD */
|
|
63 |
|
|
64 |
//#define IMPORT_C
|
|
65 |
|
|
66 |
//#define EXPORT_C
|
|
67 |
|
|
68 |
#endif /* SYMBIAN_BUILD */
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
struct BaseAudioDecoder;
|
|
73 |
|
|
74 |
// FORWARD DECLARATIONS
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
#ifdef __cplusplus
|
|
79 |
|
|
80 |
extern "C"
|
|
81 |
|
|
82 |
{
|
|
83 |
|
|
84 |
#endif /* __cplusplus */
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
#ifndef INCLUDE_COMMON
|
|
89 |
|
|
90 |
typedef signed char int8;
|
|
91 |
|
|
92 |
typedef unsigned char uint8;
|
|
93 |
|
|
94 |
typedef short int int16;
|
|
95 |
|
|
96 |
typedef unsigned short int uint16;
|
|
97 |
|
|
98 |
typedef int int32;
|
|
99 |
|
|
100 |
typedef unsigned int uint32;
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
#define E_SUCCESS 0
|
|
105 |
|
|
106 |
#define E_FAILURE (-1)
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
#endif
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
typedef struct EAacpAudioFrameInfo
|
|
115 |
|
|
116 |
{
|
|
117 |
|
|
118 |
int OutFrameSize;
|
|
119 |
|
|
120 |
int NoOfSamples;
|
|
121 |
|
|
122 |
int SamplingFrequency;
|
|
123 |
|
|
124 |
int NoOfChannels;
|
|
125 |
|
|
126 |
int Profile;
|
|
127 |
|
|
128 |
int ObjectType ;
|
|
129 |
|
|
130 |
int OutSamplingFrequency;
|
|
131 |
|
|
132 |
int DownSampledMode;
|
|
133 |
|
|
134 |
int SBR;
|
|
135 |
|
|
136 |
int PS;
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
} CEAacpAudioFrameInfo ;
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
IMPORT_C int32 GetFrameInfo (uint8* aHeaderbuffer,
|
|
145 |
|
|
146 |
int32* aHeaderSize,
|
|
147 |
|
|
148 |
CEAacpAudioFrameInfo *FrameInfo,
|
|
149 |
|
|
150 |
int32 format,
|
|
151 |
|
|
152 |
uint8* aDatabuffer,
|
|
153 |
|
|
154 |
int32 aDataLength
|
|
155 |
|
|
156 |
);
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
IMPORT_C int32 GetFrameLength(uint8* aBuffer,
|
|
161 |
|
|
162 |
int32 aBufferLength,
|
|
163 |
|
|
164 |
int32 aFormat,
|
|
165 |
|
|
166 |
int32 *aFrameLength,
|
|
167 |
|
|
168 |
//int32 samplingFreq
|
|
169 |
|
|
170 |
CEAacpAudioFrameInfo *FrameInfo
|
|
171 |
|
|
172 |
);
|
|
173 |
|
|
174 |
|
|
175 |
|
|
176 |
IMPORT_C int32 GetAdtsHeaderFrameLength(uint8* aBuffer,
|
|
177 |
|
|
178 |
int32 aBufferLength,
|
|
179 |
|
|
180 |
int32 *aFrameLength
|
|
181 |
|
|
182 |
);
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
#ifdef __cplusplus
|
|
187 |
|
|
188 |
}
|
|
189 |
|
|
190 |
#endif
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
#endif /* INCLUDE_AAC_DECODER_H */
|
|
195 |
|