|
1 /* |
|
2 * Copyright (c) 2009 Aricent and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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 * Aricent - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Export header file for Wrapper APIs.Interface class for |
|
16 * AmrWb Decoder Wrapper.The member functions are pure virtual functions which |
|
17 * are to be implemented by the derived class. |
|
18 * |
|
19 */ |
|
20 |
|
21 #ifndef ARIAMRWBDECWRAPPER_H |
|
22 #define ARIAMRWBDECWRAPPER_H |
|
23 |
|
24 #include<e32def.h> |
|
25 #include<e32const.h> |
|
26 #include<e32base.h> |
|
27 #include<e32debug.h> |
|
28 |
|
29 |
|
30 class CAriAmrWbDecWrapper:public CBase |
|
31 { |
|
32 |
|
33 public: |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 * @return pointer to an instance of CAriAmrWbDecWrapper |
|
37 */ |
|
38 IMPORT_C static CAriAmrWbDecWrapper* NewL(); |
|
39 /**> Destructor */ |
|
40 ~CAriAmrWbDecWrapper(); |
|
41 |
|
42 /** |
|
43 * The function resets the codec. |
|
44 * @param |
|
45 * @return return status |
|
46 */ |
|
47 virtual TInt Reset() = 0; |
|
48 |
|
49 /** |
|
50 * The function decodes the input stream. |
|
51 * @param aSrcBuf |
|
52 * The source buffer containing data to decode. |
|
53 * @param aSrcLen |
|
54 * Size of source buffer in bytes |
|
55 * @param aDstBuf |
|
56 * The destination buffer to hold the data after decoding. |
|
57 * @param aDstLen |
|
58 * Size of destination buffer in bytes |
|
59 * @return return status |
|
60 */ |
|
61 virtual TInt Decode(TUint8* aSrcBuf,TInt32 &aSrcLen,TInt32* aDstBuf, |
|
62 TInt32 &aDstLen) = 0; |
|
63 }; |
|
64 |
|
65 |
|
66 #endif /* ARIAMRWBDECWRAPPER_H */ |