Component Handshake

After the component handle is acquired, the next step is to initialize and configure the component.

To initialize and configure the component, the client can retrieve the port definition (OMX_PARAM_PORTDEFINITIONTYPE) and format of the components and set them accordingly.

  1. OMX_GetParameter (with OMX_IndexVideoInit) is called (1) to retrieve the number of ports supported by the OMX component
  2. The component returns the number of ports supported as well as the base port index to retrieve the individual port configuration as (2) in the following diagram.
  3. For each port, the client can get information about the preferred buffer size, number of buffers, etc., of the component (3) and (7) in the following diagram.
  4. The IL client can call OMX_SetParameter to configure the port with either the configuration retrieved as (4) and (8) in the following diagram, or with a different configuration.
The following diagram shows the component handshake workflow.
Figure 1. Component Handshake Workflow