00001 00033 #ifndef __OMX_BASE_FILTER_H__ 00034 #define __OMX_BASE_FILTER_H__ 00035 00036 #include <OMX_Types.h> 00037 #include <OMX_Component.h> 00038 #include <OMX_Core.h> 00039 #include <pthread.h> 00040 #include <stdlib.h> 00041 #include <omx_base_component.h> 00042 00045 #define OMX_BASE_FILTER_INPUTPORT_INDEX 0 00046 00049 #define OMX_BASE_FILTER_OUTPUTPORT_INDEX 1 00050 00053 #define OMX_BASE_FILTER_ALLPORT_INDEX -1 00054 00057 DERIVEDCLASS(omx_base_filter_PrivateType, omx_base_component_PrivateType) 00058 #define omx_base_filter_PrivateType_FIELDS omx_base_component_PrivateType_FIELDS \ 00059 \ 00060 OMX_BUFFERHEADERTYPE* pPendingOutputBuffer; \ 00061 \ 00062 void (*BufferMgmtCallback)(OMX_COMPONENTTYPE* openmaxStandComp, OMX_BUFFERHEADERTYPE* inputbuffer, OMX_BUFFERHEADERTYPE* outputbuffer); 00063 ENDCLASS(omx_base_filter_PrivateType) 00064 00065 00072 OMX_ERRORTYPE omx_base_filter_Constructor(OMX_COMPONENTTYPE *openmaxStandComp,OMX_STRING cComponentName); 00073 00078 OMX_ERRORTYPE omx_base_filter_Destructor(OMX_COMPONENTTYPE *openmaxStandComp); 00079 00085 void* omx_base_filter_BufferMgmtFunction(void* param); 00086 00087 #endif