omxilvideocomps/omxil3gpdemuxer/src/comxil3gpdemuxervideooutputport.h
changeset 0 5d29cba61097
equal deleted inserted replaced
-1:000000000000 0:5d29cba61097
       
     1 /*
       
     2 * Copyright (c) 2008 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 COMXIL3GPDEMUXERVIDEOOUTPUTPORT_H
       
    25 #define COMXIL3GPDEMUXERVIDEOOUTPUTPORT_H
       
    26 
       
    27 #include <openmax/il/common/omxilvideoport.h>
       
    28 
       
    29 class COmxIL3GPDemuxerProcessingFunction;
       
    30 class TVideoFormat;
       
    31 
       
    32 const TInt KMaxVideoBuffers = 10;
       
    33 
       
    34 NONSHARABLE_CLASS(COmxIL3GPDemuxerVideoOutputPort) : public COmxILVideoPort
       
    35 	{
       
    36 public:
       
    37 	static COmxIL3GPDemuxerVideoOutputPort* NewL(const TOmxILCommonPortData& aCommonPortData,
       
    38 	                                             COmxIL3GPDemuxerProcessingFunction& aProcessingFunction);
       
    39 	~COmxIL3GPDemuxerVideoOutputPort();
       
    40 
       
    41 	void FormatDetected(const TSize& aFrameSize, const TVideoFormat& aFormat);
       
    42 	OMX_VIDEO_CODINGTYPE VideoFormat();
       
    43 	TInt BufferCount() const;
       
    44 	
       
    45 	// from COmxILVideoPort
       
    46 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    47 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    48 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex,
       
    49 	                           TAny* apComponentParameterStructure) const;
       
    50 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex,
       
    51 	                           const TAny* apComponentParameterStructure,
       
    52 	                           TBool& aUpdateProcessingFunction);
       
    53 
       
    54 protected:
       
    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 	COmxIL3GPDemuxerVideoOutputPort(COmxIL3GPDemuxerProcessingFunction& aProcessingFunction);
       
    61 	void ConstructL(const TOmxILCommonPortData& aCommonPortData,
       
    62 	        const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings,
       
    63             const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats);
       
    64 	
       
    65 private:
       
    66 	COmxIL3GPDemuxerProcessingFunction* iProcessingFunction;	// not owned
       
    67 	};
       
    68 
       
    69 #endif //COMXIL3GPDEMUXERVIDEOOUTPUTPORT_H