|
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 #ifndef __CPROCAWBFRAMEHANDLER_H__ |
|
22 #define __CPROCAWBFRAMEHANDLER_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "AudCommon.h" |
|
26 #include "ProcConstants.h" |
|
27 #include "ProcFrameHandler.h" |
|
28 |
|
29 class CProcAWBFrameHandler : public CProcFrameHandler |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 // aGain -40(dB) - +20(dB) |
|
35 virtual TBool ManipulateGainL(const HBufC8* aFrameIn, HBufC8*& aFrameOut, TInt8 aGain); |
|
36 |
|
37 // From base class |
|
38 virtual TBool GetGainL(const HBufC8* aFrame, RArray<TInt>& aGains, TInt& aMaxGain) const; |
|
39 virtual TBool GetNormalizingMargin(const HBufC8* aFrame, TInt8& aMargin) const; |
|
40 |
|
41 virtual ~CProcAWBFrameHandler(); |
|
42 |
|
43 static CProcAWBFrameHandler* NewL(); |
|
44 static CProcAWBFrameHandler* NewLC(); |
|
45 |
|
46 private: |
|
47 |
|
48 void ConstructL(); |
|
49 CProcAWBFrameHandler(); |
|
50 |
|
51 TBool GetAWBGainsL(const HBufC8* aFrame, RArray<TInt>& aGains, TInt& aMaxGain) const; |
|
52 |
|
53 // RArray<TInt> iGains; |
|
54 // TInt iGainsRead; |
|
55 |
|
56 |
|
57 }; |
|
58 |
|
59 #endif |