*参照元 [#yb65e8af]
#backlinks

*説明 [#dcf58221]
-パス: [[omx_il_v1_1_2/OMX_Component.h]]
-パス: [[openmaxil-1.1.2/OMX_Component.h]]


-FIXME: これは何?
--説明


**参考 [#ma39a82f]


*実装 [#s94b772f]
 /** The OMX_HANDLETYPE structure defines the component handle.  The component 
  *  handle is used to access all of the component's public methods and also
  *  contains pointers to the component's private data area.  The component
  *  handle is initialized by the OMX core (with help from the component)
  *  during the process of loading the component.  After the component is
  *  successfully loaded, the application can safely access any of the
  *  component's public functions (although some may return an error because
  *  the state is inappropriate for the access).
  * 
  *  @ingroup comp
  */
 typedef struct OMX_COMPONENTTYPE
 {
     /** The size of this structure, in bytes.  It is the responsibility
         of the allocator of this structure to fill in this value.  Since
         this structure is allocated by the GetHandle function, this
         function will fill in this value. */
     OMX_U32 nSize;
 
-
--[[omx_il_v1_1_2/OMX_U32]]
--[[openmaxil-1.1.2/OMX_U32]]

     /** nVersion is the version of the OMX specification that the structure 
         is built against.  It is the responsibility of the creator of this 
         structure to initialize this value and every user of this structure 
         should verify that it knows how to use the exact version of 
         this structure found herein. */
     OMX_VERSIONTYPE nVersion;
 
-
--[[omx_il_v1_1_2/OMX_VERSIONTYPE]]
--[[openmaxil-1.1.2/OMX_VERSIONTYPE]]

     /** pComponentPrivate is a pointer to the component private data area.  
         This member is allocated and initialized by the component when the 
         component is first loaded.  The application should not access this 
         data area. */
     OMX_PTR pComponentPrivate;
 
-
--[[omx_il_v1_1_2/OMX_PTR]]
--[[openmaxil-1.1.2/OMX_PTR]]

     /** pApplicationPrivate is a pointer that is a parameter to the 
         OMX_GetHandle method, and contains an application private value 
         provided by the IL client.  This application private data is 
         returned to the IL Client by OMX in all callbacks */
     OMX_PTR pApplicationPrivate;
 
     /** refer to OMX_GetComponentVersion in OMX_core.h or the OMX IL 
         specification for details on the GetComponentVersion method.
      */
     OMX_ERRORTYPE (*GetComponentVersion)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_OUT OMX_STRING pComponentName,
             OMX_OUT OMX_VERSIONTYPE* pComponentVersion,
             OMX_OUT OMX_VERSIONTYPE* pSpecVersion,
             OMX_OUT OMX_UUIDTYPE* pComponentUUID);
 
-
--[[omx_il_v1_1_2/OMX_ERRORTYPE]]
--[[openmaxil-1.1.2/OMX_ERRORTYPE]]
-
--[[omx_il_v1_1_2/OMX_HANDLETYPE]]
--[[openmaxil-1.1.2/OMX_HANDLETYPE]]
-
--[[omx_il_v1_1_2/OMX_STRING]]
--[[openmaxil-1.1.2/OMX_STRING]]
-
--[[omx_il_v1_1_2/OMX_UUIDTYPE]]
--[[openmaxil-1.1.2/OMX_UUIDTYPE]]
-
--[[omx_il_v1_1_2/OMX_IN]]
--[[openmaxil-1.1.2/OMX_IN]]
-
--[[omx_il_v1_1_2/OMX_OUT]]
--[[openmaxil-1.1.2/OMX_OUT]]

     /** refer to OMX_SendCommand in OMX_core.h or the OMX IL 
         specification for details on the SendCommand method.
      */
     OMX_ERRORTYPE (*SendCommand)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_COMMANDTYPE Cmd,
             OMX_IN  OMX_U32 nParam1,
             OMX_IN  OMX_PTR pCmdData);
 
-
--[[omx_il_v1_1_2/OMX_COMMANDTYPE]]
--[[openmaxil-1.1.2/OMX_COMMANDTYPE]]
-
--[[omx_il_v1_1_2/OMX_PTR]]
--[[openmaxil-1.1.2/OMX_PTR]]

     /** refer to OMX_GetParameter in OMX_core.h or the OMX IL 
         specification for details on the GetParameter method.
      */
     OMX_ERRORTYPE (*GetParameter)(
             OMX_IN  OMX_HANDLETYPE hComponent, 
             OMX_IN  OMX_INDEXTYPE nParamIndex,  
             OMX_INOUT OMX_PTR pComponentParameterStructure);
 
 
-
--[[omx_il_v1_1_2/OMX_INDEXTYPE]]
--[[openmaxil-1.1.2/OMX_INDEXTYPE]]
-
--[[omx_il_v1_1_2/OMX_INOUT]]
--[[openmaxil-1.1.2/OMX_INOUT]]

     /** refer to OMX_SetParameter in OMX_core.h or the OMX IL 
         specification for details on the SetParameter method.
      */
     OMX_ERRORTYPE (*SetParameter)(
             OMX_IN  OMX_HANDLETYPE hComponent, 
             OMX_IN  OMX_INDEXTYPE nIndex,
             OMX_IN  OMX_PTR pComponentParameterStructure);
 
 
     /** refer to OMX_GetConfig in OMX_core.h or the OMX IL 
         specification for details on the GetConfig method.
      */
     OMX_ERRORTYPE (*GetConfig)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_INDEXTYPE nIndex, 
             OMX_INOUT OMX_PTR pComponentConfigStructure);
 
 
     /** refer to OMX_SetConfig in OMX_core.h or the OMX IL 
         specification for details on the SetConfig method.
      */
     OMX_ERRORTYPE (*SetConfig)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_INDEXTYPE nIndex, 
             OMX_IN  OMX_PTR pComponentConfigStructure);
 
 
     /** refer to OMX_GetExtensionIndex in OMX_core.h or the OMX IL 
         specification for details on the GetExtensionIndex method.
      */
     OMX_ERRORTYPE (*GetExtensionIndex)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_STRING cParameterName,
             OMX_OUT OMX_INDEXTYPE* pIndexType);
 
 
     /** refer to OMX_GetState in OMX_core.h or the OMX IL 
         specification for details on the GetState method.
      */
     OMX_ERRORTYPE (*GetState)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_OUT OMX_STATETYPE* pState);
 
     
-
--[[omx_il_v1_1_2/OMX_STATETYPE]]
--[[openmaxil-1.1.2/OMX_STATETYPE]]

     /** The ComponentTunnelRequest method will interact with another OMX
         component to determine if tunneling is possible and to setup the
         tunneling.  The return codes for this method can be used to 
         determine if tunneling is not possible, or if tunneling is not
         supported.  
         
         Base profile components (i.e. non-interop) do not support this
         method and should return OMX_ErrorNotImplemented 
 
         The interop profile component MUST support tunneling to another 
         interop profile component with a compatible port parameters.  
         A component may also support proprietary communication.
         
         If proprietary communication is supported the negotiation of 
         proprietary communication is done outside of OMX in a vendor 
         specific way. It is only required that the proper result be 
         returned and the details of how the setup is done is left 
         to the component implementation.  
     
         When this method is invoked when nPort in an output port, the
         component will:
         1.  Populate the pTunnelSetup structure with the output port's 
             requirements and constraints for the tunnel.
 
         When this method is invoked when nPort in an input port, the
         component will:
         1.  Query the necessary parameters from the output port to 
             determine if the ports are compatible for tunneling
         2.  If the ports are compatible, the component should store
             the tunnel step provided by the output port
         3.  Determine which port (either input or output) is the buffer
             supplier, and call OMX_SetParameter on the output port to
             indicate this selection.
         
         The component will return from this call within 5 msec.
     
         @param [in] hComp
             Handle of the component to be accessed.  This is the component
             handle returned by the call to the OMX_GetHandle method.
         @param [in] nPort
             nPort is used to select the port on the component to be used
             for tunneling.
         @param [in] hTunneledComp
             Handle of the component to tunnel with.  This is the component 
             handle returned by the call to the OMX_GetHandle method.  When
             this parameter is 0x0 the component should setup the port for
             communication with the application / IL Client.
         @param [in] nPortOutput
             nPortOutput is used indicate the port the component should
             tunnel with.
         @param [in] pTunnelSetup
             Pointer to the tunnel setup structure.  When nPort is an output port
             the component should populate the fields of this structure.  When
             When nPort is an input port the component should review the setup
             provided by the component with the output port.
         @return OMX_ERRORTYPE
             If the command successfully executes, the return code will be
             OMX_ErrorNone.  Otherwise the appropriate OMX error will be returned.
         @ingroup tun
     */
 
     OMX_ERRORTYPE (*ComponentTunnelRequest)(
         OMX_IN  OMX_HANDLETYPE hComp,
         OMX_IN  OMX_U32 nPort,
         OMX_IN  OMX_HANDLETYPE hTunneledComp,
         OMX_IN  OMX_U32 nTunneledPort,
         OMX_INOUT  OMX_TUNNELSETUPTYPE* pTunnelSetup); 
 
-
--[[omx_il_v1_1_2/OMX_TUNNELSETUPTYPE]]
--[[openmaxil-1.1.2/OMX_TUNNELSETUPTYPE]]

     /** refer to OMX_UseBuffer in OMX_core.h or the OMX IL 
         specification for details on the UseBuffer method.
         @ingroup buf
      */
     OMX_ERRORTYPE (*UseBuffer)(
             OMX_IN OMX_HANDLETYPE hComponent,
             OMX_INOUT OMX_BUFFERHEADERTYPE** ppBufferHdr,
             OMX_IN OMX_U32 nPortIndex,
             OMX_IN OMX_PTR pAppPrivate,
             OMX_IN OMX_U32 nSizeBytes,
             OMX_IN OMX_U8* pBuffer);
 
-
--[[omx_il_v1_1_2/OMX_BUFFERHEADERTYPE]]
--[[openmaxil-1.1.2/OMX_BUFFERHEADERTYPE]]
-
--[[omx_il_v1_1_2/OMX_U8]]
--[[openmaxil-1.1.2/OMX_U8]]

     /** refer to OMX_AllocateBuffer in OMX_core.h or the OMX IL 
         specification for details on the AllocateBuffer method.
         @ingroup buf
      */
     OMX_ERRORTYPE (*AllocateBuffer)(
             OMX_IN OMX_HANDLETYPE hComponent,
             OMX_INOUT OMX_BUFFERHEADERTYPE** ppBuffer,
             OMX_IN OMX_U32 nPortIndex,
             OMX_IN OMX_PTR pAppPrivate,
             OMX_IN OMX_U32 nSizeBytes);
 
     /** refer to OMX_FreeBuffer in OMX_core.h or the OMX IL 
         specification for details on the FreeBuffer method.
         @ingroup buf
      */
     OMX_ERRORTYPE (*FreeBuffer)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_U32 nPortIndex,
             OMX_IN  OMX_BUFFERHEADERTYPE* pBuffer);
 
     /** refer to OMX_EmptyThisBuffer in OMX_core.h or the OMX IL 
         specification for details on the EmptyThisBuffer method.
         @ingroup buf
      */
     OMX_ERRORTYPE (*EmptyThisBuffer)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_BUFFERHEADERTYPE* pBuffer);
 
     /** refer to OMX_FillThisBuffer in OMX_core.h or the OMX IL 
         specification for details on the FillThisBuffer method.
         @ingroup buf
      */
     OMX_ERRORTYPE (*FillThisBuffer)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_BUFFERHEADERTYPE* pBuffer);
 
     /** The SetCallbacks method is used by the core to specify the callback
         structure from the application to the component.  This is a blocking
         call.  The component will return from this call within 5 msec.
         @param [in] hComponent
             Handle of the component to be accessed.  This is the component
             handle returned by the call to the GetHandle function.
         @param [in] pCallbacks
             pointer to an OMX_CALLBACKTYPE structure used to provide the 
             callback information to the component
         @param [in] pAppData
             pointer to an application defined value.  It is anticipated that 
             the application will pass a pointer to a data structure or a "this
             pointer" in this area to allow the callback (in the application)
             to determine the context of the call
         @return OMX_ERRORTYPE
             If the command successfully executes, the return code will be
             OMX_ErrorNone.  Otherwise the appropriate OMX error will be returned.
      */
     OMX_ERRORTYPE (*SetCallbacks)(
             OMX_IN  OMX_HANDLETYPE hComponent,
             OMX_IN  OMX_CALLBACKTYPE* pCallbacks, 
             OMX_IN  OMX_PTR pAppData);
 
-
--[[omx_il_v1_1_2/OMX_CALLBACKTYPE]]
--[[openmaxil-1.1.2/OMX_CALLBACKTYPE]]

     /** ComponentDeInit method is used to deinitialize the component
         providing a means to free any resources allocated at component
         initialization.  NOTE:  After this call the component handle is
         not valid for further use.
         @param [in] hComponent
             Handle of the component to be accessed.  This is the component
             handle returned by the call to the GetHandle function.
         @return OMX_ERRORTYPE
             If the command successfully executes, the return code will be
             OMX_ErrorNone.  Otherwise the appropriate OMX error will be returned.
      */
     OMX_ERRORTYPE (*ComponentDeInit)(
             OMX_IN  OMX_HANDLETYPE hComponent);
 
     /** @ingroup buf */
     OMX_ERRORTYPE (*UseEGLImage)(
             OMX_IN OMX_HANDLETYPE hComponent,
             OMX_INOUT OMX_BUFFERHEADERTYPE** ppBufferHdr,
             OMX_IN OMX_U32 nPortIndex,
             OMX_IN OMX_PTR pAppPrivate,
             OMX_IN void* eglImage);
 
     OMX_ERRORTYPE (*ComponentRoleEnum)(
         OMX_IN OMX_HANDLETYPE hComponent,
 		OMX_OUT OMX_U8 *cRole,
 		OMX_IN OMX_U32 nIndex);
 
 } OMX_COMPONENTTYPE;


*コメント [#gcfb9f68]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS