omxil/generic/omxilfilesink/inc/omxilvideofilesinkopb0port.h
branchOpenMAX-IL_SHAI
changeset 16 eedf2dcd43c6
equal deleted inserted replaced
15:c1e808730d6c 16:eedf2dcd43c6
       
     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 OMXILVIDEOFILESINKOPB0PORT_H
       
    24 #define OMXILVIDEOFILESINKOPB0PORT_H
       
    25 
       
    26 #include "omxilvideoport.h"
       
    27 #include "omxilfilesinkprocessingfunction.h"
       
    28 #include <openmax/il/khronos/v1_x/OMX_Other.h>
       
    29 
       
    30 class COmxILVideoFileSinkOPB0Port : public COmxILVideoPort
       
    31 	{
       
    32 public:
       
    33 	static COmxILVideoFileSinkOPB0Port* NewL(const TOmxILCommonPortData& aCommonPortData, 
       
    34 	                                         const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings,
       
    35 	                                         const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats,
       
    36 	                                         const COmxILFileSinkProcessingFunction& aFileSinkPF);
       
    37 
       
    38 	~COmxILVideoFileSinkOPB0Port();
       
    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 	COmxILVideoFileSinkOPB0Port(const TOmxILCommonPortData& aCommonPortData,
       
    51                                 const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings,
       
    52                                 const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats,
       
    53                                 const COmxILFileSinkProcessingFunction& aFileSinkPF);
       
    54 	void ConstructL();
       
    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 COmxILFileSinkProcessingFunction& iFileSinkPF;
       
    61 	};
       
    62 
       
    63 #endif // OMXILVIDEOFILESINKOPB0PORT_H