os/mm/mmdevicefw/mdfunittest/codecapi/omx/pcmcodec/src/OmxImpl.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef OMXIMPL_H
sl@0
    17
#define OMXIMPL_H
sl@0
    18
sl@0
    19
#include <stdio.h>
sl@0
    20
#include <e32base.h>
sl@0
    21
#include <openmax/il/khronos/v1_x/OMX_Component.h>
sl@0
    22
sl@0
    23
sl@0
    24
class COmxComponentImpl : public CBase
sl@0
    25
	{
sl@0
    26
public:
sl@0
    27
	COmxComponentImpl(OMX_HANDLETYPE hComponent);
sl@0
    28
	virtual ~COmxComponentImpl();
sl@0
    29
		
sl@0
    30
	virtual OMX_ERRORTYPE GetComponentVersion(
sl@0
    31
           OMX_STRING pComponentName,
sl@0
    32
           OMX_VERSIONTYPE* pComponentVersion,
sl@0
    33
           OMX_VERSIONTYPE* pSpecVersion,
sl@0
    34
           OMX_UUIDTYPE* pComponentUUID)=0;
sl@0
    35
           	
sl@0
    36
    virtual OMX_ERRORTYPE SendCommand(
sl@0
    37
           OMX_COMMANDTYPE Cmd,
sl@0
    38
           TUint32 nParam1,
sl@0
    39
           TAny* pCmdData)=0;
sl@0
    40
    virtual OMX_ERRORTYPE GetParameter(
sl@0
    41
           OMX_INDEXTYPE nParamIndex,  
sl@0
    42
           TAny* ComponentParameterStructure)=0;
sl@0
    43
    virtual OMX_ERRORTYPE SetParameter(
sl@0
    44
           OMX_INDEXTYPE nIndex,
sl@0
    45
           TAny* ComponentParameterStructure)=0;
sl@0
    46
    virtual OMX_ERRORTYPE GetConfig(
sl@0
    47
           OMX_INDEXTYPE nIndex, 
sl@0
    48
           TAny* value)=0;
sl@0
    49
    virtual OMX_ERRORTYPE SetConfig(
sl@0
    50
           OMX_INDEXTYPE nIndex, 
sl@0
    51
           TAny* value)=0;
sl@0
    52
    virtual OMX_ERRORTYPE GetExtensionIndex(
sl@0
    53
           OMX_STRING ParameterName,
sl@0
    54
           OMX_INDEXTYPE* pIndexType)=0;
sl@0
    55
    virtual OMX_ERRORTYPE GetState(
sl@0
    56
           OMX_STATETYPE* pState)=0;
sl@0
    57
	virtual OMX_ERRORTYPE ComponentTunnelRequest(
sl@0
    58
       		OMX_HANDLETYPE hInput,
sl@0
    59
       		TUint32 nPortInput,
sl@0
    60
       		OMX_HANDLETYPE hOutput,
sl@0
    61
       		TUint32 nPortOutput,
sl@0
    62
       		OMX_TUNNELSETUPTYPE* pTunnelSetup) = 0;
sl@0
    63
    virtual OMX_ERRORTYPE UseBuffer(
sl@0
    64
           OMX_BUFFERHEADERTYPE** ppBufferHdr,
sl@0
    65
           TUint32 nPortIndex,
sl@0
    66
           TAny* pAppPrivate,
sl@0
    67
           TUint32 nSizeBytes,
sl@0
    68
           TUint8* pBuffer)=0;
sl@0
    69
    virtual OMX_ERRORTYPE AllocateBuffer(
sl@0
    70
           OMX_BUFFERHEADERTYPE** pBuffer,
sl@0
    71
           TUint32 nPortIndex,
sl@0
    72
           TAny* pAppData,
sl@0
    73
           TUint32 nSizeBytes)=0;
sl@0
    74
    virtual OMX_ERRORTYPE FreeBuffer(
sl@0
    75
    		TUint32 nPortIndex,
sl@0
    76
           OMX_BUFFERHEADERTYPE* pBuffer)=0;
sl@0
    77
    virtual OMX_ERRORTYPE EmptyThisBuffer(
sl@0
    78
           OMX_BUFFERHEADERTYPE* pBuffer)=0;
sl@0
    79
    virtual OMX_ERRORTYPE FillThisBuffer(
sl@0
    80
           OMX_BUFFERHEADERTYPE* pBuffer)=0;
sl@0
    81
    virtual OMX_ERRORTYPE SetCallbacks(
sl@0
    82
           OMX_CALLBACKTYPE* pCallbacks, 
sl@0
    83
           TAny* pAppData)=0;
sl@0
    84
sl@0
    85
sl@0
    86
	operator OMX_HANDLETYPE();
sl@0
    87
		
sl@0
    88
private:
sl@0
    89
	
sl@0
    90
	OMX_COMPONENTTYPE* iHandle;
sl@0
    91
	};
sl@0
    92
	
sl@0
    93
	
sl@0
    94
#endif // OMXIMPL_H