omxilvideocomps/omxilvideoscheduler/src/comxilvideoscheduler.h
changeset 0 5d29cba61097
equal deleted inserted replaced
-1:000000000000 0:5d29cba61097
       
     1 /*
       
     2 * Copyright (c) 2008-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 #ifndef COMXILVIDEOSCHEDULER_H_
       
    25 #define COMXILVIDEOSCHEDULER_H_
       
    26 
       
    27 #include <openmax/il/common/omxilcomponent.h>
       
    28 
       
    29 class COmxILVideoSchedulerInputPort;
       
    30 class COmxILVideoSchedulerOutputPort;
       
    31 class COmxILClientClockPort;
       
    32 
       
    33 
       
    34 NONSHARABLE_CLASS(COmxILVideoScheduler) : public COmxILComponent
       
    35 	{
       
    36 public:
       
    37 	static TInt CreateComponent(OMX_HANDLETYPE hComponent);
       
    38 	~COmxILVideoScheduler();
       
    39 	
       
    40 	TUint32 BufferCount() const;	
       
    41 	OMX_ERRORTYPE MediaTimeRequest(TAny* apPrivate, OMX_TICKS aMediaTime, OMX_TICKS aOffset);		
       
    42 	OMX_ERRORTYPE GetWallTime(OMX_TICKS& aWallTime);			
       
    43 	OMX_ERRORTYPE SetVideoStartTime(OMX_TICKS aStartTime);
       
    44 	
       
    45 private:
       
    46 	COmxILVideoScheduler();
       
    47 	void ConstructL(OMX_HANDLETYPE aComponent);
       
    48 	
       
    49 	void AddOutputVideoPortL();
       
    50 	void AddInputVideoPortL();
       
    51 	void AddClockPortL();
       
    52 	
       
    53 private:	
       
    54 	COmxILVideoSchedulerOutputPort* iVideoOutputPort; //not owned	
       
    55 	COmxILVideoSchedulerInputPort* iVideoInputPort;//not owned
       
    56 	COmxILClientClockPort* iClockPort;	//not owned
       
    57 	};
       
    58 	
       
    59 #endif /*COMXILVIDEOSCHEDULER_H_*/