|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <openmax/il/common/omxilprocessingfunction.h> |
|
26 |
|
27 #ifndef COMXIL3GPDEMUXERREQUESTHELPER_H |
|
28 #define COMXIL3GPDEMUXERREQUESTHELPER_H |
|
29 |
|
30 NONSHARABLE_CLASS(COmxIL3GPDemuxerRequestHelper) : public CActive |
|
31 { |
|
32 public: |
|
33 static COmxIL3GPDemuxerRequestHelper * NewL(COmxILProcessingFunction* aProcessingFunction); |
|
34 ~COmxIL3GPDemuxerRequestHelper(); |
|
35 void RunL(); |
|
36 void DoCancel(); |
|
37 |
|
38 OMX_ERRORTYPE StateTransitionIndication(TStateIndex aNewState); |
|
39 OMX_ERRORTYPE BufferFlushingIndication(TUint32 aPortIndex, OMX_DIRTYPE aDirection); |
|
40 OMX_BOOL BufferRemovalIndication(OMX_BUFFERHEADERTYPE* apBufferHeader, OMX_DIRTYPE aDirection); |
|
41 |
|
42 private: |
|
43 COmxIL3GPDemuxerRequestHelper(COmxILProcessingFunction* aProcessingFunction); |
|
44 void ConstructL(); |
|
45 |
|
46 void DoRequest(); |
|
47 void DoStateTransitionIndication(); |
|
48 void DoBufferFlushingIndication(); |
|
49 void DoBufferRemovalIndication(); |
|
50 |
|
51 private: |
|
52 enum TEC3GPDemuxerFunctionCode |
|
53 { |
|
54 EC3GPDemuxerFunctionCodeNone, |
|
55 EC3GPDemuxerFunctionCodeStateTransitionIndication, |
|
56 EC3GPDemuxerFunctionCodeBufferFlushingIndication, |
|
57 EC3GPDemuxerFunctionCodeBufferRemovalIndication |
|
58 |
|
59 // ... more to be added when required |
|
60 }; |
|
61 |
|
62 private: |
|
63 COmxILProcessingFunction* iProcessingFunction; // not owned |
|
64 TEC3GPDemuxerFunctionCode iFunctionCode; |
|
65 |
|
66 TStateIndex iNewState; |
|
67 OMX_ERRORTYPE iOMXError; |
|
68 TUint32 iPortIndex; |
|
69 OMX_DIRTYPE iDirection; |
|
70 OMX_BUFFERHEADERTYPE* ipBufferHeader; // not owned |
|
71 OMX_BOOL iOMXBool; |
|
72 |
|
73 TThreadId iConstructionThreadId; |
|
74 TRequestStatus* iCallingStatus; // not owned |
|
75 TThreadId iCallingThreadId; |
|
76 }; |
|
77 |
|
78 #endif //COMXIL3GPDEMUXERREQUESTHELPER_H |