COmxProcessingUnit Class Reference
class COmxProcessingUnit : public CMdfProcessingUnit
|
OpenMAX Processing Unit class.
Nested Classes and Structures
Public Member Functions
|
|
~COmxProcessingUnit
()
|
IMPORT_C
TInt
|
Configure
(const
TPuConfig
&)
|
IMPORT_C
TInt
|
Create
(const
MMdfProcessingUnitObserver
&)
|
IMPORT_C
TInt
|
CreateCustomInterface
(
TUid
)
|
IMPORT_C
TAny
*
|
CustomInterface
(
TUid
)
|
IMPORT_C void
|
Execute
()
|
IMPORT_C
TInt
|
GetConfig
(
TPuConfig
&)
|
IMPORT_C
TInt
|
GetInputPorts
(
RPointerArray
<
MMdfInputPort
> &)
|
IMPORT_C
TInt
|
GetOutputPorts
(
RPointerArray
<
MMdfOutputPort
> &)
|
IMPORT_C void
|
Initialize
()
|
IMPORT_C
TInt
|
MopcEventHandler
(
OMX_HANDLETYPE
,
OMX_EVENTTYPE
,
TUint32
,
TUint32
,
TAny
*)
|
IMPORT_C
CMMFBuffer
*
|
OmxAllocateBufferL
(
TUint32
,
TUint32
)
|
IMPORT_C
TInt
|
OmxComponentTunnelRequest
(
TUint32
,
OMX_HANDLETYPE
,
TUint32
,
OMX_TUNNELSETUPTYPE
*)
|
IMPORT_C
TInt
|
OmxEmptyThisBuffer
(const
CMMFBuffer
*,
MOmxInputPortCallbacks
*)
|
IMPORT_C
TInt
|
OmxFillThisBuffer
(
CMMFBuffer
*,
MOmxOutputPortCallbacks
*)
|
IMPORT_C
TInt
|
OmxFreeBuffer
(
CMMFBuffer
*)
|
IMPORT_C
TInt
|
OmxGetComponentVersion
(const
TDesC8
&,
OMX_VERSIONTYPE
*,
OMX_VERSIONTYPE
*,
OMX_UUIDTYPE
*)
|
IMPORT_C
TInt
|
OmxGetConfig
(
OMX_INDEXTYPE
,
TAny
*)
|
IMPORT_C
TInt
|
OmxGetExtensionIndex
(const
TDesC8
&,
OMX_INDEXTYPE
*)
|
IMPORT_C
TInt
|
OmxGetParameter
(
OMX_INDEXTYPE
,
TAny
*)
|
IMPORT_C
TInt
|
OmxGetState
(
OMX_STATETYPE
*)
|
IMPORT_C
TInt
|
OmxSendCommand
(
OMX_COMMANDTYPE
,
TUint32
,
TAny
*)
|
IMPORT_C
TInt
|
OmxSetCallbacks
(
MOmxPuCallbacks
&)
|
IMPORT_C
TInt
|
OmxSetConfig
(
OMX_INDEXTYPE
,
TAny
*)
|
IMPORT_C
TInt
|
OmxSetParameter
(
OMX_INDEXTYPE
,
TAny
*)
|
IMPORT_C
TInt
|
OmxUseBuffer
(
CMMFBuffer
*,
TUint32
)
|
IMPORT_C
TInt
|
Pause
()
|
IMPORT_C
TProcessingUnitState
|
State
()
|
IMPORT_C void
|
Stop
()
|
Constructor & Destructor Documentation
COmxProcessingUnit()
IMPORT_C
|
COmxProcessingUnit
|
(
|
)
|
[protected]
|
~COmxProcessingUnit()
IMPORT_C
|
~COmxProcessingUnit
|
(
|
)
|
|
Member Functions Documentation
AddInputPort(MMdfInputPort *)
Add an input port to the component
AddOutputPort(MMdfOutputPort *)
Add an output port to the component
Configure(const TPuConfig &)
IMPORT_C
TInt
|
Configure
|
(
|
const
TPuConfig
&
|
aConfigurationSetup
|
)
|
[virtual]
|
ConstructL(const TDesC8 &, const MMdfProcessingUnitObserver &)
Safe constructing method.
Parameters
const
TDesC8
& aComponentName
|
The name of the component to be contructed.
|
const
MMdfProcessingUnitObserver
& aProcessingUnitObserver
|
Reference to the obsever for this Processing Unit.
|
Create(const MMdfProcessingUnitObserver &)
CreateCustomInterface(TUid)
IMPORT_C
TInt
|
CreateCustomInterface
|
(
|
TUid
|
aUid
|
)
|
[virtual]
|
CustomInterface(TUid)
IMPORT_C
TAny
*
|
CustomInterface
|
(
|
TUid
|
aUid
|
)
|
[virtual]
|
Execute()
IMPORT_C void
|
Execute
|
(
|
)
|
[virtual]
|
GetConfig(TPuConfig &)
IMPORT_C
TInt
|
GetConfig
|
(
|
TPuConfig
&
|
aConfigurationSetup
|
)
|
[virtual]
|
GetInputPorts(RPointerArray< MMdfInputPort > &)
GetOutputPorts(RPointerArray< MMdfOutputPort > &)
Initialize()
IMPORT_C void
|
Initialize
|
(
|
)
|
[virtual]
|
MopcEventHandler(OMX_HANDLETYPE, OMX_EVENTTYPE, TUint32, TUint32, TAny *)
Observer()
Return the observer interface for the component
OmxAllocateBufferL(TUint32, TUint32)
Instructs the OpenMAX Processing Unit to allocate a buffer. Ownership is transferred to the caller.
Parameters
TUint32
aPortIndex
|
The Port Index that the new buffer is associated with.
|
TUint32
aSizeBytes
|
The size of the buffer to be allocated, in bytes.
|
OmxComponentTunnelRequest(TUint32, OMX_HANDLETYPE, TUint32, OMX_TUNNELSETUPTYPE *)
OmxEmptyThisBuffer(const CMMFBuffer *, MOmxInputPortCallbacks *)
Sends an full buffer to an input port of a component.
OmxFillThisBuffer(CMMFBuffer *, MOmxOutputPortCallbacks *)
Sends an empty buffer to an output port of a component.
OmxFreeBuffer(CMMFBuffer *)
Instructs the OpenMAX Processing Unit to free the buffer passed in the function's argument.
OmxGetComponentVersion(const TDesC8 &, OMX_VERSIONTYPE *, OMX_VERSIONTYPE *, OMX_UUIDTYPE *)
OmxGetConfig(OMX_INDEXTYPE, TAny *)
OmxGetExtensionIndex(const TDesC8 &, OMX_INDEXTYPE *)
OmxGetParameter(OMX_INDEXTYPE, TAny *)
Requests a current parameter from the OpenMAX Processing Unit.
Parameters
OMX_INDEXTYPE
aParamIndex
|
The index of the structure to be filled.
|
TAny
* aComponentParameterStructure
|
A pointer to structure to be filled by the component.
|
OmxGetState(OMX_STATETYPE *)
IMPORT_C
TInt
|
OmxGetState
|
(
|
OMX_STATETYPE
*
|
aState
|
)
|
|
OmxSendCommand(OMX_COMMANDTYPE, TUint32, TAny *)
IMPORT_C
TInt
|
OmxSendCommand
|
(
|
OMX_COMMANDTYPE
|
aCmd,
|
|
TUint32
|
aParam1,
|
|
TAny
*
|
aCmdData
|
|
)
|
|
Sends a command to the OpenMAX Processing Unit.
Parameters
OMX_COMMANDTYPE
aCmd
|
The command for the component to execute.
|
TUint32
aParam1
|
The parameter for the command to be executed.
|
TAny
* aCmdData
|
A pointer to the data for the command.
|
OmxSetCallbacks(MOmxPuCallbacks &)
OmxSetConfig(OMX_INDEXTYPE, TAny *)
OmxSetParameter(OMX_INDEXTYPE, TAny *)
Sends a parameter from the OpenMAX Processing Unit.
Parameters
OMX_INDEXTYPE
aIndex
|
The index of the structure to be sent.
|
TAny
* aComponentParameterStructure
|
A pointer to structure to be used by the component.
|
OmxUseBuffer(CMMFBuffer *, TUint32)
Instructs the OpenMAX Processing Unit to use the buffer passed in the function's argument.
Parameters
CMMFBuffer
* aBuffer
|
The buffer to be used.
|
TUint32
aPortIndex
|
The port that the given buffer should be associated with.
|
Pause()
IMPORT_C
TInt
|
Pause
|
(
|
)
|
[virtual]
|
SetPuState(TProcessingUnitState)
Sets the internal PU State
Stop()
IMPORT_C void
|
Stop
|
(
|
)
|
[virtual]
|
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.