omxilcomp/omxilgeneric/filesource/inc/omxilimagefilesourceipb0port.h
changeset 0 58be5850fb6c
equal deleted inserted replaced
-1:000000000000 0:58be5850fb6c
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  * @file
       
    20  * @internalTechnology
       
    21  */
       
    22 
       
    23 #ifndef OMXILIMAGEFILESOURCEOPB0PORT_H
       
    24 #define OMXILIMAGEFILESOURCEOPB0PORT_H
       
    25 
       
    26 #include <openmax/il/common/omxilimageport.h>
       
    27 #include "omxilfilesourceprocessingfunction.h"
       
    28 #include <openmax/il/khronos/v1_x/OMX_Other.h>
       
    29 
       
    30 class COmxILImageFileSourceIPB0Port : public COmxILImagePort
       
    31 	{
       
    32 public:
       
    33 	static COmxILImageFileSourceIPB0Port* NewL(const TOmxILCommonPortData& aCommonPortData,
       
    34 	                                         const RArray<OMX_IMAGE_CODINGTYPE>& aSupportedImageFormats,
       
    35 	                                         const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormats,
       
    36 	                                         const COmxILFileSourceProcessingFunction& aFileSourcePF);
       
    37 
       
    38 	~COmxILImageFileSourceIPB0Port();
       
    39 
       
    40 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    41 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    42 
       
    43 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex,
       
    44 								TAny* apComponentParameterStructure) const;
       
    45 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex,
       
    46 								const TAny* apComponentParameterStructure,
       
    47 								TBool& aUpdateProcessingFunction);
       
    48 
       
    49 private:
       
    50 	COmxILImageFileSourceIPB0Port(const COmxILFileSourceProcessingFunction& aFileSourcePF);
       
    51 	void ConstructL(const TOmxILCommonPortData& aCommonPortData,
       
    52                     const RArray<OMX_IMAGE_CODINGTYPE>& aSupportedImageFormats,
       
    53                     const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormats);
       
    54 	
       
    55 	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
       
    56 											TBool& aUpdateProcessingFunction);
       
    57 	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
       
    58 
       
    59 private:
       
    60 	const COmxILFileSourceProcessingFunction& iFileSourcePF;
       
    61 	RBuf8 iMimeType;
       
    62 	};
       
    63 
       
    64 #endif // OMXILIMAGEFILESOURCEOPB0PORT_H