equal
deleted
inserted
replaced
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 #ifndef AACCONSTANTS_H |
|
21 #define AACCONSTANTS_H |
|
22 |
|
23 |
|
24 // length of a silent mono AAC frame |
|
25 const TInt KSilentMonoAACFrameLenght = 6; |
|
26 |
|
27 // silent mono AAC frame |
|
28 const TUint8 KSilentMonoAACFrame[KSilentMonoAACFrameLenght] = |
|
29 { |
|
30 0, |
|
31 0, |
|
32 0, |
|
33 128, |
|
34 35, |
|
35 222 |
|
36 }; |
|
37 |
|
38 // length of a silent stereo AAC frame |
|
39 const TInt KSilentStereoAACFrameLenght = 8; |
|
40 |
|
41 // silent stereo AAC frame |
|
42 const TUint8 KSilentStereoAACFrame[KSilentStereoAACFrameLenght] = |
|
43 { |
|
44 33, |
|
45 0, |
|
46 64, |
|
47 0, |
|
48 4, |
|
49 0, |
|
50 0, |
|
51 71 |
|
52 }; |
|
53 |
|
54 |
|
55 // a class to encapsule info needed by AAC frame handler |
|
56 class TAACFrameHandlerInfo |
|
57 { |
|
58 |
|
59 public: |
|
60 |
|
61 TUint8 iNumChannels; |
|
62 TUint8 iNumCouplingChannels; |
|
63 TUint8 iSampleRateID; |
|
64 TUint8 iProfileID; |
|
65 TUint8 iIs960; |
|
66 TUint8 isSBR; |
|
67 TUint8 iIsParametricStereo; |
|
68 }; |
|
69 |
|
70 |
|
71 // AAC specific constants |
|
72 enum |
|
73 { |
|
74 SCE_ELEMENT = 0, |
|
75 CPE_ELEMENT = 1, |
|
76 LFE_ELEMENT = 3, |
|
77 |
|
78 LC_OBJECT = 1, |
|
79 |
|
80 LTP_OBJECT = 3, |
|
81 |
|
82 |
|
83 |
|
84 AAC_ADIF = 0, |
|
85 |
|
86 |
|
87 AAC_ADTS = 1, |
|
88 |
|
89 AAC_MP4 = 2, |
|
90 |
|
91 TNS_TOOL = 1, |
|
92 |
|
93 LTP_TOOL = 2, |
|
94 |
|
95 PNS_TOOL = 4, |
|
96 |
|
97 MS_TOOL = 8, |
|
98 IS_TOOL = 16, |
|
99 |
|
100 SBR_TOOL = 32, |
|
101 |
|
102 LAST_TOOL = 32768 |
|
103 }; |
|
104 |
|
105 #endif |
|