Package: android.hardware.media.omx@1.0

IOmx

interface IOmx

Ref:frameworks/av/include/media/IOMX.h:IOMX

IOmx has the ability to create OMX nodes.

Properties

ComponentInfo

struct ComponentInfo {string mName; vec mRoles}

Information for an IOmxNode component.

Details
Members
mName
mRoles

Methods

listNodes

listNodes ()
generates (Status status, vec<ComponentInfo> nodeList)

List available components.

Details
Generates
status
The status of the call.
nodeList
The list of ComponentInfo.

allocateNode

allocateNode (string name, IOmxObserver observer)
generates (Status status, IOmxNode omxNode)

Allocate an IOmxNode instance with the specified node name.

Details
Parameters
name
The name of the node to create.
observer
An observer object that will receive messages from the created instance.
Generates
status
The status of the call.
omxNode
The allocated instance of `IOmxNode`.

createInputSurface

createInputSurface ()
generates (Status status, IGraphicBufferProducer producer, IGraphicBufferSource source)

Create an input surface for recording.

Details
Generates
status
The status of the call.
producer
The associated producer end of the buffer queue.
source
The associated `IGraphicBufferSource`.