omxilvideocomps/omxilvideoscheduler/src/comxilvideoscheduleroutputport.h
author hgs
Fri, 08 Oct 2010 22:09:17 +0100
changeset 0 5d29cba61097
permissions -rw-r--r--
2010wk38_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     1
/*
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     2
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     3
* All rights reserved.
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     8
*
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
     9
* Initial Contributors:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    11
*
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    12
* Contributors:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    13
*
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    14
* Description:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    15
*
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    16
*/
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    17
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    18
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    19
/**
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    20
@file
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    21
@internalComponent
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    22
*/
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    23
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    24
#ifndef COMXILVIDEOSCHEDULEROUTPUTPORT_H_
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    25
#define COMXILVIDEOSCHEDULEROUTPUTPORT_H_
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    26
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    27
#include <openmax/il/common/omxilvideoport.h>
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    28
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    29
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    30
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    31
NONSHARABLE_CLASS(COmxILVideoSchedulerOutputPort) : public COmxILVideoPort
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    32
	{
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    33
public:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    34
	static COmxILVideoSchedulerOutputPort* NewL(const TOmxILCommonPortData& aCommonPortData);
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    35
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    36
	~COmxILVideoSchedulerOutputPort();
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    37
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    38
	TUint32 BufferCount() const;
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    39
	
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    40
	// from COmxILVideoPort	
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    41
	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    42
	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    43
	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, TAny* apComponentParameterStructure) const;
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    44
	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, const TAny* apComponentParameterStructure,
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    45
															TBool& aUpdateProcessingFunction);
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    46
																
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    47
protected:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    48
	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    49
												TBool& aUpdateProcessingFunction);
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    50
	
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    51
	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    52
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    53
private:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    54
	COmxILVideoSchedulerOutputPort();
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    55
	void ConstructL(const TOmxILCommonPortData& aCommonPortData,
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    56
	        const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings,
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    57
            const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats);
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    58
	
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    59
private:
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    60
    //Mime Type is not important for uncompressed video but is required for the port definition structure.
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    61
	RBuf8 iMimeTypeBuf;
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    62
	};
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    63
5d29cba61097 2010wk38_02
hgs
parents:
diff changeset
    64
#endif /*COMXILVIDEOSCHEDULEROUTPUTPORT_H_*/