|
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 * AmrNb Decoder Wrapper.The member functions are pure virtual functions which |
|
17 * are to be implemented by the derived class. |
|
18 * |
|
19 */ |
|
20 |
|
21 #ifndef ARIAMRNBDECWRAPPER_H |
|
22 #define ARIAMRNBDECWRAPPER_H |
|
23 |
|
24 // system include files |
|
25 #include<e32def.h> |
|
26 #include<e32const.h> |
|
27 #include<e32base.h> |
|
28 #include<e32debug.h> |
|
29 |
|
30 // Class declaration |
|
31 class TDecParam |
|
32 { |
|
33 public: |
|
34 //mediatype takes 0 for RTP and 1 for 3GPP |
|
35 TInt iMediatype; |
|
36 }; |
|
37 |
|
38 // Class declaration |
|
39 class CAriAmrNbDecWrapper:public CBase |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @return pointer to an instance of CAriAmrNbDecWrapper |
|
45 */ |
|
46 IMPORT_C static CAriAmrNbDecWrapper* NewL(); |
|
47 |
|
48 /**> Destructor */ |
|
49 ~CAriAmrNbDecWrapper(); |
|
50 |
|
51 /** |
|
52 * The function resets the codec. |
|
53 * @param aParam |
|
54 * TDecParam in which it takes 0 for RTP and 1 for RTP |
|
55 * @return return status |
|
56 */ |
|
57 virtual TInt Reset( TDecParam aParam ) = 0; |
|
58 |
|
59 /** |
|
60 * The function decodes the input stream. |
|
61 * @param aSrcBuf |
|
62 * The source buffer containing data to decode. |
|
63 * @param aSrcLen |
|
64 * Size of source buffer in bytes |
|
65 * @param aDstBuf |
|
66 * The destination buffer to hold the data after decoding. |
|
67 * @param aDstLen |
|
68 * Size of destination buffer in bytes |
|
69 * @return return status |
|
70 */ |
|
71 virtual TInt Decode( TUint8* aSrcBuf, TInt &aSrcLen, TInt* aDstBuf, |
|
72 TInt &aDstLen ) = 0; |
|
73 }; |
|
74 |
|
75 |
|
76 #endif /* ARIAMRNBDECWRAPPER_H */ |