COmxProcessingUnit::CBody Class Reference

class COmxProcessingUnit::CBody : public CBase

Inherits from

  • COmxProcessingUnit::CBody
Public Member Functions
~CBody()
TInt AddInputPort(MMdfInputPort *)
TInt AddOutputPort(MMdfOutputPort *)
CMMFBuffer *AllocateBufferL(TUint, TUint)
TInt ComponentTunnelRequest(TUint, OMX_HANDLETYPE, TUint, OMX_TUNNELSETUPTYPE *)
TInt Configure(const TPuConfig &)
TInt CreateCustomInterface(TUid)
TAny *CustomInterface(TUid)
TInt EmptyThisBuffer(const CMMFBuffer *, MOmxInputPortCallbacks *)
TInt EventHandler(OMX_HANDLETYPE, OMX_EVENTTYPE, TUint32, TUint32, TAny *)
voidExecute()
TInt FillThisBuffer(CMMFBuffer *, MOmxOutputPortCallbacks *)
TInt FreeBuffer(CMMFBuffer *)
TInt GetComponentVersion(const TDesC8 &, OMX_VERSIONTYPE *, OMX_VERSIONTYPE *, OMX_UUIDTYPE *)
TInt GetConfig(TPuConfig &)
TInt GetConfig(OMX_INDEXTYPE, TAny *)
TInt GetExtensionIndex(const TDesC8 &, OMX_INDEXTYPE *)
TInt GetInputPorts(RPointerArray< MMdfInputPort > &)
TInt GetOutputPorts(RPointerArray< MMdfOutputPort > &)
TInt GetParameter(OMX_INDEXTYPE, TAny *)
TInt GetState(OMX_STATETYPE *)
voidInitialize()
CBody *NewL(const TDesC8 &, MOmxPuCallbacks &, COmxProcessingUnit *, const MMdfProcessingUnitObserver &)
MMdfProcessingUnitObserver *Observer()
TInt Pause()
TInt SendCommand(OMX_COMMANDTYPE, TUint, TAny *)
TInt SetCallbacks(MOmxPuCallbacks &)
TInt SetConfig(OMX_INDEXTYPE, TAny *)
TInt SetParameter(OMX_INDEXTYPE, TAny *)
voidSetPuState(TProcessingUnitState)
TProcessingUnitState State()
voidStop()
TInt UseBuffer(CMMFBuffer *, TUint)
Private Member Functions
CBody()
voidConstructL(const TDesC8 &, MOmxPuCallbacks &, COmxProcessingUnit *, const MMdfProcessingUnitObserver &)
voidGetExtensionIndexL(const TDesC8 &, OMX_INDEXTYPE *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
COmxBufferManager *iBufferManager
COmxCallbacks *iCallbacks
OMX_COMPONENTTYPE *iHandle
RPointerArray< MMdfInputPort >iInputPorts
MMdfProcessingUnitObserver *iObserver
RPointerArray< MMdfOutputPort >iOutputPorts
CMdfProcessingUnit *iParent
TProcessingUnitState iPuState

Constructor & Destructor Documentation

CBody()

CBody()[private]

~CBody()

~CBody()[virtual]

Member Functions Documentation

AddInputPort(MMdfInputPort *)

TInt AddInputPort(MMdfInputPort *aInputPort)

Parameters

MMdfInputPort * aInputPort

AddOutputPort(MMdfOutputPort *)

TInt AddOutputPort(MMdfOutputPort *aOutputPort)

Parameters

MMdfOutputPort * aOutputPort

AllocateBufferL(TUint, TUint)

CMMFBuffer *AllocateBufferL(TUintaPortIndex,
TUintaSizeBytes
)

Parameters

TUint aPortIndex
TUint aSizeBytes

ComponentTunnelRequest(TUint, OMX_HANDLETYPE, TUint, OMX_TUNNELSETUPTYPE *)

TInt ComponentTunnelRequest(TUintaPortInput,
OMX_HANDLETYPEaOutput,
TUintaPortOutput,
OMX_TUNNELSETUPTYPE *aTunnelSetup
)

Parameters

TUint aPortInput
OMX_HANDLETYPE aOutput
TUint aPortOutput
OMX_TUNNELSETUPTYPE * aTunnelSetup

Configure(const TPuConfig &)

TInt Configure(const TPuConfig &aConfigurationSetup)

Parameters

const TPuConfig & aConfigurationSetup

ConstructL(const TDesC8 &, MOmxPuCallbacks &, COmxProcessingUnit *, const MMdfProcessingUnitObserver &)

voidConstructL(const TDesC8 &aComponentName,
MOmxPuCallbacks &aPuCallbacks,
COmxProcessingUnit *aBody,
const MMdfProcessingUnitObserver &aObserver
)[private]

Parameters

const TDesC8 & aComponentName
MOmxPuCallbacks & aPuCallbacks
COmxProcessingUnit * aBody
const MMdfProcessingUnitObserver & aObserver

CreateCustomInterface(TUid)

TInt CreateCustomInterface(TUidaUid)

Parameters

TUid aUid

CustomInterface(TUid)

TAny *CustomInterface(TUidaUid)

Parameters

TUid aUid

EmptyThisBuffer(const CMMFBuffer *, MOmxInputPortCallbacks *)

TInt EmptyThisBuffer(const CMMFBuffer *aBuffer,
MOmxInputPortCallbacks *aCallback
)

Parameters

const CMMFBuffer * aBuffer
MOmxInputPortCallbacks * aCallback

EventHandler(OMX_HANDLETYPE, OMX_EVENTTYPE, TUint32, TUint32, TAny *)

TInt EventHandler(OMX_HANDLETYPEaComponent,
OMX_EVENTTYPEaEvent,
TUint32aData1,
TUint32aData2,
TAny *aExtraInfo
)

Parameters

OMX_HANDLETYPE aComponent
OMX_EVENTTYPE aEvent
TUint32 aData1
TUint32 aData2
TAny * aExtraInfo

Execute()

voidExecute()

FillThisBuffer(CMMFBuffer *, MOmxOutputPortCallbacks *)

TInt FillThisBuffer(CMMFBuffer *aBuffer,
MOmxOutputPortCallbacks *aCallback
)

Parameters

CMMFBuffer * aBuffer
MOmxOutputPortCallbacks * aCallback

FreeBuffer(CMMFBuffer *)

TInt FreeBuffer(CMMFBuffer *aBuffer)

Parameters

CMMFBuffer * aBuffer

GetComponentVersion(const TDesC8 &, OMX_VERSIONTYPE *, OMX_VERSIONTYPE *, OMX_UUIDTYPE *)

TInt GetComponentVersion(const TDesC8 &aComponentName,
OMX_VERSIONTYPE *aComponentVersion,
OMX_VERSIONTYPE *aSpecVersion,
OMX_UUIDTYPE *aComponentUUID
)

Parameters

const TDesC8 & aComponentName
OMX_VERSIONTYPE * aComponentVersion
OMX_VERSIONTYPE * aSpecVersion
OMX_UUIDTYPE * aComponentUUID

GetConfig(TPuConfig &)

TInt GetConfig(TPuConfig &aConfigurationSetup)

Parameters

TPuConfig & aConfigurationSetup

GetConfig(OMX_INDEXTYPE, TAny *)

TInt GetConfig(OMX_INDEXTYPEaIndex,
TAny *aValue
)

Parameters

OMX_INDEXTYPE aIndex
TAny * aValue

GetExtensionIndex(const TDesC8 &, OMX_INDEXTYPE *)

TInt GetExtensionIndex(const TDesC8 &aParameterName,
OMX_INDEXTYPE *aIndexType
)

Parameters

const TDesC8 & aParameterName
OMX_INDEXTYPE * aIndexType

GetExtensionIndexL(const TDesC8 &, OMX_INDEXTYPE *)

voidGetExtensionIndexL(const TDesC8 &aParameterName,
OMX_INDEXTYPE *aIndexType
)[private]

Parameters

const TDesC8 & aParameterName
OMX_INDEXTYPE * aIndexType

GetInputPorts(RPointerArray< MMdfInputPort > &)

TInt GetInputPorts(RPointerArray< MMdfInputPort > &aComponentInputPorts)

Parameters

RPointerArray< MMdfInputPort > & aComponentInputPorts

GetOutputPorts(RPointerArray< MMdfOutputPort > &)

TInt GetOutputPorts(RPointerArray< MMdfOutputPort > &aComponentOutputPorts)

Parameters

RPointerArray< MMdfOutputPort > & aComponentOutputPorts

GetParameter(OMX_INDEXTYPE, TAny *)

TInt GetParameter(OMX_INDEXTYPEaParamIndex,
TAny *aComponentParameterStructure
)

Parameters

OMX_INDEXTYPE aParamIndex
TAny * aComponentParameterStructure

GetState(OMX_STATETYPE *)

TInt GetState(OMX_STATETYPE *aState)

Parameters

OMX_STATETYPE * aState

Initialize()

voidInitialize()

NewL(const TDesC8 &, MOmxPuCallbacks &, COmxProcessingUnit *, const MMdfProcessingUnitObserver &)

CBody *NewL(const TDesC8 &aComponentName,
MOmxPuCallbacks &aPuCallbacks,
COmxProcessingUnit *aParent,
const MMdfProcessingUnitObserver &aObserver
)[static]

Parameters

const TDesC8 & aComponentName
MOmxPuCallbacks & aPuCallbacks
COmxProcessingUnit * aParent
const MMdfProcessingUnitObserver & aObserver

Observer()

MMdfProcessingUnitObserver *Observer()

Pause()

TInt Pause()

SendCommand(OMX_COMMANDTYPE, TUint, TAny *)

TInt SendCommand(OMX_COMMANDTYPEaCmd,
TUintaParam1,
TAny *aCmdData
)

Parameters

OMX_COMMANDTYPE aCmd
TUint aParam1
TAny * aCmdData

SetCallbacks(MOmxPuCallbacks &)

TInt SetCallbacks(MOmxPuCallbacks &aPuCallbacks)

Parameters

MOmxPuCallbacks & aPuCallbacks

SetConfig(OMX_INDEXTYPE, TAny *)

TInt SetConfig(OMX_INDEXTYPEaIndex,
TAny *aValue
)

Parameters

OMX_INDEXTYPE aIndex
TAny * aValue

SetParameter(OMX_INDEXTYPE, TAny *)

TInt SetParameter(OMX_INDEXTYPEaIndex,
TAny *aComponentParameterStructure
)

Parameters

OMX_INDEXTYPE aIndex
TAny * aComponentParameterStructure

SetPuState(TProcessingUnitState)

voidSetPuState(TProcessingUnitStateaState)

Parameters

TProcessingUnitState aState

State()

TProcessingUnitState State()

Stop()

voidStop()

UseBuffer(CMMFBuffer *, TUint)

TInt UseBuffer(CMMFBuffer *aBuffer,
TUintaPortIndex
)

Parameters

CMMFBuffer * aBuffer
TUint aPortIndex

Member Data Documentation

COmxBufferManager * iBufferManager

COmxBufferManager *iBufferManager[private]

COmxCallbacks * iCallbacks

COmxCallbacks *iCallbacks[private]

OMX_COMPONENTTYPE * iHandle

OMX_COMPONENTTYPE *iHandle[private]

RPointerArray< MMdfInputPort > iInputPorts

RPointerArray< MMdfInputPort >iInputPorts[private]

MMdfProcessingUnitObserver * iObserver

MMdfProcessingUnitObserver *iObserver[private]

RPointerArray< MMdfOutputPort > iOutputPorts

RPointerArray< MMdfOutputPort >iOutputPorts[private]

CMdfProcessingUnit * iParent

CMdfProcessingUnit *iParent[private]

TProcessingUnitState iPuState

TProcessingUnitState iPuState[private]