|
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 #ifndef BASEPROFILETIMESTAMPING_H_ |
|
20 #define BASEPROFILETIMESTAMPING_H_ |
|
21 |
|
22 #include "baseprofilehandler.h" |
|
23 |
|
24 NONSHARABLE_CLASS(CBaseProfileTimestampHandling) : public CBaseProfileHandler |
|
25 { |
|
26 public: |
|
27 CBaseProfileTimestampHandling(ROmxScriptTest& aTestOwner, RASBreakEventHandler& aParentEventHandler); |
|
28 ~CBaseProfileTimestampHandling(); |
|
29 |
|
30 void SetClockComponent(OMX_COMPONENTTYPE* aClockComponent); |
|
31 void QueueTimestampCheckL(TInt aPortIndex, TUint aTime, TUint aTolerance); |
|
32 void QueueCompareWithRefClockL(TInt aPortIndex, TUint aTolerance); |
|
33 |
|
34 protected: |
|
35 |
|
36 struct TTimestampCheckingInfo |
|
37 { |
|
38 TInt iPortIndex; //Index in the component |
|
39 TUint iExpectedTime; |
|
40 TUint iTolerance; |
|
41 TBool iCompareWithRefClock; |
|
42 }; |
|
43 |
|
44 virtual void DoFillBufferDone(OMX_BUFFERHEADERTYPE* aFilledBuffer); |
|
45 virtual void DoEmptyBufferDone(OMX_BUFFERHEADERTYPE* aEmptiedBuffer); |
|
46 |
|
47 void CheckTimestamp(OMX_BUFFERHEADERTYPE* aBuffer); |
|
48 |
|
49 |
|
50 |
|
51 private: |
|
52 OMX_COMPONENTTYPE* iClockComponent; //Not owned, if non null used as the reference clock for cmparison with the current set of timestamps |
|
53 RArray<TTimestampCheckingInfo> iPendingTimestampChecks; |
|
54 |
|
55 }; |
|
56 |
|
57 #endif /* BASEPROFILETIMESTAMPING_H_ */ |