00001 00032 #ifndef _OMX_BASE_SINK_COMPONENT_H_ 00033 #define _OMX_BASE_SINK_COMPONENT_H_ 00034 00035 #include <OMX_Types.h> 00036 #include <OMX_Component.h> 00037 #include <OMX_Core.h> 00038 #include <pthread.h> 00039 #include <omx_base_component.h> 00040 #include <stdlib.h> 00041 00042 00045 #define OMX_BASE_SINK_INPUTPORT_INDEX 0 00046 00049 #define OMX_BASE_SINK_ALLPORT_INDEX -1 00050 00053 DERIVEDCLASS(omx_base_sink_PrivateType, omx_base_component_PrivateType) 00054 #define omx_base_sink_PrivateType_FIELDS omx_base_component_PrivateType_FIELDS \ 00055 \ 00056 void (*BufferMgmtCallback)(OMX_COMPONENTTYPE* openmaxStandComp, OMX_BUFFERHEADERTYPE* inputbuffer); 00057 ENDCLASS(omx_base_sink_PrivateType) 00058 00059 00061 OMX_ERRORTYPE omx_base_sink_Constructor(OMX_COMPONENTTYPE *openmaxStandComp,OMX_STRING cComponentName); 00062 00065 OMX_ERRORTYPE omx_base_sink_Destructor(OMX_COMPONENTTYPE *openmaxStandComp); 00066 00072 void* omx_base_sink_BufferMgmtFunction(void* param); 00073 00074 #endif