openmaxil-1.1.2/OMX_COMPONENTTYPE
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#yb65e8af]
#backlinks
*説明 [#dcf58221]
-パス: [[openmaxil-1.1.2/OMX_Component.h]]
-FIXME: これは何?
--説明
**参考 [#ma39a82f]
*実装 [#s94b772f]
/** The OMX_HANDLETYPE structure defines the component h...
* handle is used to access all of the component's publ...
* contains pointers to the component's private data ar...
* handle is initialized by the OMX core (with help fro...
* during the process of loading the component. After ...
* successfully loaded, the application can safely acce...
* component's public functions (although some may retu...
* the state is inappropriate for the access).
*
* @ingroup comp
*/
typedef struct OMX_COMPONENTTYPE
{
/** The size of this structure, in bytes. It is the...
of the allocator of this structure to fill in th...
this structure is allocated by the GetHandle fun...
function will fill in this value. */
OMX_U32 nSize;
-
--[[openmaxil-1.1.2/OMX_U32]]
/** nVersion is the version of the OMX specification...
is built against. It is the responsibility of t...
structure to initialize this value and every use...
should verify that it knows how to use the exact...
this structure found herein. */
OMX_VERSIONTYPE nVersion;
-
--[[openmaxil-1.1.2/OMX_VERSIONTYPE]]
/** pComponentPrivate is a pointer to the component ...
This member is allocated and initialized by the ...
component is first loaded. The application shou...
data area. */
OMX_PTR pComponentPrivate;
-
--[[openmaxil-1.1.2/OMX_PTR]]
/** pApplicationPrivate is a pointer that is a param...
OMX_GetHandle method, and contains an applicatio...
provided by the IL client. This application pri...
returned to the IL Client by OMX in all callback...
OMX_PTR pApplicationPrivate;
/** refer to OMX_GetComponentVersion in OMX_core.h o...
specification for details on the GetComponentVer...
*/
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);
-
--[[openmaxil-1.1.2/OMX_ERRORTYPE]]
-
--[[openmaxil-1.1.2/OMX_HANDLETYPE]]
-
--[[openmaxil-1.1.2/OMX_STRING]]
-
--[[openmaxil-1.1.2/OMX_UUIDTYPE]]
-
--[[openmaxil-1.1.2/OMX_IN]]
-
--[[openmaxil-1.1.2/OMX_OUT]]
/** refer to OMX_SendCommand in OMX_core.h or the OM...
specification for details on the SendCommand met...
*/
OMX_ERRORTYPE (*SendCommand)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_COMMANDTYPE Cmd,
OMX_IN OMX_U32 nParam1,
OMX_IN OMX_PTR pCmdData);
-
--[[openmaxil-1.1.2/OMX_COMMANDTYPE]]
-
--[[openmaxil-1.1.2/OMX_PTR]]
/** refer to OMX_GetParameter in OMX_core.h or the O...
specification for details on the GetParameter me...
*/
OMX_ERRORTYPE (*GetParameter)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_INDEXTYPE nParamIndex,
OMX_INOUT OMX_PTR pComponentParameterStructu...
-
--[[openmaxil-1.1.2/OMX_INDEXTYPE]]
-
--[[openmaxil-1.1.2/OMX_INOUT]]
/** refer to OMX_SetParameter in OMX_core.h or the O...
specification for details on the SetParameter me...
*/
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 ...
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 ...
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 ...
specification for details on the GetExtensionInd...
*/
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);
-
--[[openmaxil-1.1.2/OMX_STATETYPE]]
/** The ComponentTunnelRequest method will interact ...
component to determine if tunneling is possible ...
tunneling. The return codes for this method can...
determine if tunneling is not possible, or if tu...
supported.
Base profile components (i.e. non-interop) do no...
method and should return OMX_ErrorNotImplemented
The interop profile component MUST support tunne...
interop profile component with a compatible port...
A component may also support proprietary communi...
If proprietary communication is supported the ne...
proprietary communication is done outside of OMX...
specific way. It is only required that the prope...
returned and the details of how the setup is don...
to the component implementation.
When this method is invoked when nPort in an out...
component will:
1. Populate the pTunnelSetup structure with the...
requirements and constraints for the tunnel.
When this method is invoked when nPort in an inp...
component will:
1. Query the necessary parameters from the outp...
determine if the ports are compatible for tu...
2. If the ports are compatible, the component s...
the tunnel step provided by the output port
3. Determine which port (either input or output...
supplier, and call OMX_SetParameter on the o...
indicate this selection.
The component will return from this call within ...
@param [in] hComp
Handle of the component to be accessed. Thi...
handle returned by the call to the OMX_GetHa...
@param [in] nPort
nPort is used to select the port on the comp...
for tunneling.
@param [in] hTunneledComp
Handle of the component to tunnel with. Thi...
handle returned by the call to the OMX_GetHa...
this parameter is 0x0 the component should s...
communication with the application / IL Clie...
@param [in] nPortOutput
nPortOutput is used indicate the port the co...
tunnel with.
@param [in] pTunnelSetup
Pointer to the tunnel setup structure. When...
the component should populate the fields of ...
When nPort is an input port the component sh...
provided by the component with the output po...
@return OMX_ERRORTYPE
If the command successfully executes, the re...
OMX_ErrorNone. Otherwise the appropriate OM...
@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);
-
--[[openmaxil-1.1.2/OMX_TUNNELSETUPTYPE]]
/** refer to OMX_UseBuffer in OMX_core.h or the OMX ...
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);
-
--[[openmaxil-1.1.2/OMX_BUFFERHEADERTYPE]]
-
--[[openmaxil-1.1.2/OMX_U8]]
/** refer to OMX_AllocateBuffer in OMX_core.h or the...
specification for details on the AllocateBuffer ...
@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...
specification for details on the FreeBuffer meth...
@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 th...
specification for details on the EmptyThisBuffer...
@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...
specification for details on the FillThisBuffer ...
@ingroup buf
*/
OMX_ERRORTYPE (*FillThisBuffer)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_BUFFERHEADERTYPE* pBuffer);
/** The SetCallbacks method is used by the core to s...
structure from the application to the component....
call. The component will return from this call ...
@param [in] hComponent
Handle of the component to be accessed. Thi...
handle returned by the call to the GetHandle...
@param [in] pCallbacks
pointer to an OMX_CALLBACKTYPE structure use...
callback information to the component
@param [in] pAppData
pointer to an application defined value. It...
the application will pass a pointer to a dat...
pointer" in this area to allow the callback ...
to determine the context of the call
@return OMX_ERRORTYPE
If the command successfully executes, the re...
OMX_ErrorNone. Otherwise the appropriate OM...
*/
OMX_ERRORTYPE (*SetCallbacks)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_CALLBACKTYPE* pCallbacks,
OMX_IN OMX_PTR pAppData);
-
--[[openmaxil-1.1.2/OMX_CALLBACKTYPE]]
/** ComponentDeInit method is used to deinitialize t...
providing a means to free any resources allocate...
initialization. NOTE: After this call the comp...
not valid for further use.
@param [in] hComponent
Handle of the component to be accessed. Thi...
handle returned by the call to the GetHandle...
@return OMX_ERRORTYPE
If the command successfully executes, the re...
OMX_ErrorNone. Otherwise the appropriate OM...
*/
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]
終了行:
*参照元 [#yb65e8af]
#backlinks
*説明 [#dcf58221]
-パス: [[openmaxil-1.1.2/OMX_Component.h]]
-FIXME: これは何?
--説明
**参考 [#ma39a82f]
*実装 [#s94b772f]
/** The OMX_HANDLETYPE structure defines the component h...
* handle is used to access all of the component's publ...
* contains pointers to the component's private data ar...
* handle is initialized by the OMX core (with help fro...
* during the process of loading the component. After ...
* successfully loaded, the application can safely acce...
* component's public functions (although some may retu...
* the state is inappropriate for the access).
*
* @ingroup comp
*/
typedef struct OMX_COMPONENTTYPE
{
/** The size of this structure, in bytes. It is the...
of the allocator of this structure to fill in th...
this structure is allocated by the GetHandle fun...
function will fill in this value. */
OMX_U32 nSize;
-
--[[openmaxil-1.1.2/OMX_U32]]
/** nVersion is the version of the OMX specification...
is built against. It is the responsibility of t...
structure to initialize this value and every use...
should verify that it knows how to use the exact...
this structure found herein. */
OMX_VERSIONTYPE nVersion;
-
--[[openmaxil-1.1.2/OMX_VERSIONTYPE]]
/** pComponentPrivate is a pointer to the component ...
This member is allocated and initialized by the ...
component is first loaded. The application shou...
data area. */
OMX_PTR pComponentPrivate;
-
--[[openmaxil-1.1.2/OMX_PTR]]
/** pApplicationPrivate is a pointer that is a param...
OMX_GetHandle method, and contains an applicatio...
provided by the IL client. This application pri...
returned to the IL Client by OMX in all callback...
OMX_PTR pApplicationPrivate;
/** refer to OMX_GetComponentVersion in OMX_core.h o...
specification for details on the GetComponentVer...
*/
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);
-
--[[openmaxil-1.1.2/OMX_ERRORTYPE]]
-
--[[openmaxil-1.1.2/OMX_HANDLETYPE]]
-
--[[openmaxil-1.1.2/OMX_STRING]]
-
--[[openmaxil-1.1.2/OMX_UUIDTYPE]]
-
--[[openmaxil-1.1.2/OMX_IN]]
-
--[[openmaxil-1.1.2/OMX_OUT]]
/** refer to OMX_SendCommand in OMX_core.h or the OM...
specification for details on the SendCommand met...
*/
OMX_ERRORTYPE (*SendCommand)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_COMMANDTYPE Cmd,
OMX_IN OMX_U32 nParam1,
OMX_IN OMX_PTR pCmdData);
-
--[[openmaxil-1.1.2/OMX_COMMANDTYPE]]
-
--[[openmaxil-1.1.2/OMX_PTR]]
/** refer to OMX_GetParameter in OMX_core.h or the O...
specification for details on the GetParameter me...
*/
OMX_ERRORTYPE (*GetParameter)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_INDEXTYPE nParamIndex,
OMX_INOUT OMX_PTR pComponentParameterStructu...
-
--[[openmaxil-1.1.2/OMX_INDEXTYPE]]
-
--[[openmaxil-1.1.2/OMX_INOUT]]
/** refer to OMX_SetParameter in OMX_core.h or the O...
specification for details on the SetParameter me...
*/
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 ...
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 ...
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 ...
specification for details on the GetExtensionInd...
*/
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);
-
--[[openmaxil-1.1.2/OMX_STATETYPE]]
/** The ComponentTunnelRequest method will interact ...
component to determine if tunneling is possible ...
tunneling. The return codes for this method can...
determine if tunneling is not possible, or if tu...
supported.
Base profile components (i.e. non-interop) do no...
method and should return OMX_ErrorNotImplemented
The interop profile component MUST support tunne...
interop profile component with a compatible port...
A component may also support proprietary communi...
If proprietary communication is supported the ne...
proprietary communication is done outside of OMX...
specific way. It is only required that the prope...
returned and the details of how the setup is don...
to the component implementation.
When this method is invoked when nPort in an out...
component will:
1. Populate the pTunnelSetup structure with the...
requirements and constraints for the tunnel.
When this method is invoked when nPort in an inp...
component will:
1. Query the necessary parameters from the outp...
determine if the ports are compatible for tu...
2. If the ports are compatible, the component s...
the tunnel step provided by the output port
3. Determine which port (either input or output...
supplier, and call OMX_SetParameter on the o...
indicate this selection.
The component will return from this call within ...
@param [in] hComp
Handle of the component to be accessed. Thi...
handle returned by the call to the OMX_GetHa...
@param [in] nPort
nPort is used to select the port on the comp...
for tunneling.
@param [in] hTunneledComp
Handle of the component to tunnel with. Thi...
handle returned by the call to the OMX_GetHa...
this parameter is 0x0 the component should s...
communication with the application / IL Clie...
@param [in] nPortOutput
nPortOutput is used indicate the port the co...
tunnel with.
@param [in] pTunnelSetup
Pointer to the tunnel setup structure. When...
the component should populate the fields of ...
When nPort is an input port the component sh...
provided by the component with the output po...
@return OMX_ERRORTYPE
If the command successfully executes, the re...
OMX_ErrorNone. Otherwise the appropriate OM...
@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);
-
--[[openmaxil-1.1.2/OMX_TUNNELSETUPTYPE]]
/** refer to OMX_UseBuffer in OMX_core.h or the OMX ...
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);
-
--[[openmaxil-1.1.2/OMX_BUFFERHEADERTYPE]]
-
--[[openmaxil-1.1.2/OMX_U8]]
/** refer to OMX_AllocateBuffer in OMX_core.h or the...
specification for details on the AllocateBuffer ...
@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...
specification for details on the FreeBuffer meth...
@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 th...
specification for details on the EmptyThisBuffer...
@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...
specification for details on the FillThisBuffer ...
@ingroup buf
*/
OMX_ERRORTYPE (*FillThisBuffer)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_BUFFERHEADERTYPE* pBuffer);
/** The SetCallbacks method is used by the core to s...
structure from the application to the component....
call. The component will return from this call ...
@param [in] hComponent
Handle of the component to be accessed. Thi...
handle returned by the call to the GetHandle...
@param [in] pCallbacks
pointer to an OMX_CALLBACKTYPE structure use...
callback information to the component
@param [in] pAppData
pointer to an application defined value. It...
the application will pass a pointer to a dat...
pointer" in this area to allow the callback ...
to determine the context of the call
@return OMX_ERRORTYPE
If the command successfully executes, the re...
OMX_ErrorNone. Otherwise the appropriate OM...
*/
OMX_ERRORTYPE (*SetCallbacks)(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_CALLBACKTYPE* pCallbacks,
OMX_IN OMX_PTR pAppData);
-
--[[openmaxil-1.1.2/OMX_CALLBACKTYPE]]
/** ComponentDeInit method is used to deinitialize t...
providing a means to free any resources allocate...
initialization. NOTE: After this call the comp...
not valid for further use.
@param [in] hComponent
Handle of the component to be accessed. Thi...
handle returned by the call to the GetHandle...
@return OMX_ERRORTYPE
If the command successfully executes, the re...
OMX_ErrorNone. Otherwise the appropriate OM...
*/
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]
ページ名: