omxil/omxilcomponentcommon/src/common/omxilaudioport.h
changeset 56 b6488ac24ddc
parent 47 481b3bce574a
child 57 1cbb0d5bf7f2
equal deleted inserted replaced
47:481b3bce574a 56:b6488ac24ddc
     1 // Copyright (c) 2008-2009 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  @file
       
    19  @internalComponent
       
    20 */
       
    21 
       
    22 #ifndef OMXILAUDIOPORT_H
       
    23 #define OMXILAUDIOPORT_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 #include <openmax/il/khronos/v1_x/OMX_Types.h>
       
    28 #include <openmax/il/khronos/v1_x/OMX_Core.h>
       
    29 #include <openmax/il/khronos/v1_x/OMX_Component.h>
       
    30 
       
    31 #include "omxilport.h"
       
    32 
       
    33 class COmxILAudioPort : public COmxILPort
       
    34 	{
       
    35 
       
    36 public:
       
    37 
       
    38 	IMPORT_C ~COmxILAudioPort();
       
    39 
       
    40 	// From COmxILPort
       
    41 	IMPORT_C OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const = 0;
       
    42 
       
    43 	// From COmxILPort
       
    44 	IMPORT_C OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const = 0;
       
    45 
       
    46 	// From COmxILPort
       
    47 	IMPORT_C OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex,
       
    48 										TAny* apComponentParameterStructure) const = 0;
       
    49 	// From COmxILPort
       
    50 	IMPORT_C OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex,
       
    51 										const TAny* apComponentParameterStructure,
       
    52 										TBool& aUpdateProcessingFunction) = 0;
       
    53 
       
    54 protected:
       
    55 
       
    56 	IMPORT_C COmxILAudioPort(const TOmxILCommonPortData& aCommonPortData);
       
    57 	IMPORT_C virtual void ConstructL(const RArray<OMX_AUDIO_CODINGTYPE>& aSupportedAudioFormats);
       
    58 
       
    59 
       
    60 	// From COmxILPort
       
    61 	IMPORT_C OMX_ERRORTYPE SetFormatInPortDefinition(
       
    62 		const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
       
    63 		TBool& aUpdateProcessingFunction) = 0;
       
    64 
       
    65 	// From COmxILPort
       
    66 	IMPORT_C TBool IsTunnelledPortCompatible(
       
    67 		const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const = 0;
       
    68 
       
    69 protected:
       
    70 
       
    71 	RArray<OMX_AUDIO_CODINGTYPE> iSupportedAudioFormats;
       
    72 	OMX_AUDIO_PARAM_PORTFORMATTYPE iParamAudioPortFormat;
       
    73 
       
    74 	};
       
    75 
       
    76 #endif // OMXILAUDIOPORT_H
       
    77