|
OpenMAXBellagio 0.9.3
|
00001 00028 #ifndef _OMX_BASE_SINK_COMPONENT_H_ 00029 #define _OMX_BASE_SINK_COMPONENT_H_ 00030 00031 #include <OMX_Types.h> 00032 #include <OMX_Component.h> 00033 #include <OMX_Core.h> 00034 #include "omx_base_component.h" 00035 00036 #define OMX_BASE_SINK_INPUTPORT_INDEX 0 /* The index of the input port for the derived components */ 00037 #define OMX_BASE_SINK_CLOCKPORT_INDEX 1 /* The index of the clock port for the derived components */ 00038 #define OMX_BASE_SINK_INPUTPORT_INDEX_1 1 /* The index of the 2nd input port for the derived components */ 00039 00042 #define OMX_BASE_SINK_ALLPORT_INDEX -1 00043 00046 DERIVEDCLASS(omx_base_sink_PrivateType, omx_base_component_PrivateType) 00047 #define omx_base_sink_PrivateType_FIELDS omx_base_component_PrivateType_FIELDS \ 00048 \ 00049 void (*BufferMgmtCallback)(OMX_COMPONENTTYPE* openmaxStandComp, OMX_BUFFERHEADERTYPE* inputbuffer); 00050 ENDCLASS(omx_base_sink_PrivateType) 00051 00052 00054 OMX_ERRORTYPE omx_base_sink_Constructor(OMX_COMPONENTTYPE *openmaxStandComp,OMX_STRING cComponentName); 00055 00058 OMX_ERRORTYPE omx_base_sink_Destructor(OMX_COMPONENTTYPE *openmaxStandComp); 00059 00065 void* omx_base_sink_BufferMgmtFunction(void* param); 00066 00067 void* omx_base_sink_twoport_BufferMgmtFunction (void* param); 00068 00069 #endif