OpenMAXBellagio  0.9.3
omx_clocksrc_component.h
Go to the documentation of this file.
1 
27 #ifndef _OMX_CLOCKSRC_COMPONENT_H_
28 #define _OMX_CLOCKSRC_COMPONENT_H_
29 
30 #include <OMX_Types.h>
31 #include <OMX_Component.h>
32 #include <OMX_Core.h>
33 #include <OMX_Audio.h>
34 #include <omx_base_source.h>
35 #include <string.h>
36 #include <sys/time.h>
37 
38 #define CLOCK_COMP_NAME "OMX.st.clocksrc"
39 #define CLOCK_COMP_ROLE "clocksrc"
40 #define MAX_CLOCK_COMPONENTS 20
41 
43 #define MAX_CLOCK_PORTS 8
44 
45 
58 DERIVEDCLASS(omx_clocksrc_component_PrivateType, omx_base_source_PrivateType)
59 #define omx_clocksrc_component_PrivateType_FIELDS omx_base_source_PrivateType_FIELDS \
60  OMX_TIME_CONFIG_CLOCKSTATETYPE sClockState; \
61  OMX_TIME_CONFIG_ACTIVEREFCLOCKTYPE sRefClock; \
62  tsem_t* startTimeSem; \
63  tsem_t* clockEventSem; \
64  tsem_t* clockEventCompleteSem; \
65  OMX_TICKS WallTimeBase; \
66  OMX_TICKS MediaTimeBase; \
67  OMX_TIME_UPDATETYPE eUpdateType; \
68  OMX_TIME_CONFIG_TIMESTAMPTYPE sMinStartTime; \
69  OMX_TIME_CONFIG_SCALETYPE sConfigScale;
70 ENDCLASS(omx_clocksrc_component_PrivateType)
71 
72 /* Component private entry points declaration */
75 
77  OMX_COMPONENTTYPE *openmaxStandComp,
78  OMX_BUFFERHEADERTYPE* inputbuffer);
79 
81  OMX_HANDLETYPE hComponent,
82  OMX_INDEXTYPE nParamIndex,
83  OMX_PTR ComponentParameterStructure);
84 
86  OMX_HANDLETYPE hComponent,
87  OMX_INDEXTYPE nParamIndex,
88  OMX_PTR ComponentParameterStructure);
89 
91  OMX_HANDLETYPE hComponent,
92  OMX_INDEXTYPE nIndex,
93  OMX_PTR pComponentConfigStructure);
94 
96  OMX_HANDLETYPE hComponent,
97  OMX_INDEXTYPE nIndex,
98  OMX_PTR pComponentConfigStructure);
99 
100 void* omx_clocksrc_BufferMgmtFunction (void* param);
101 
103  OMX_HANDLETYPE hComponent,
104  OMX_COMMANDTYPE Cmd,
105  OMX_U32 nParam,
106  OMX_PTR pCmdData);
107 
109 
110 #endif
void * OMX_HANDLETYPE
Definition: OMX_Types.h:295
OMX_ERRORTYPE omx_clocksrc_component_SetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
unsigned long OMX_U32
Definition: OMX_Types.h:145
void * omx_clocksrc_BufferMgmtFunction(void *param)
OMX_ERRORTYPE omx_clocksrc_component_GetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
#define ENDCLASS(a)
OMX_ERRORTYPE clocksrc_port_FlushProcessingBuffers(omx_base_PortType *openmaxStandPort)
Releases buffers under processing. This function must be implemented in the derived classes...
OMX_ERRORTYPE omx_clocksrc_component_Destructor(OMX_COMPONENTTYPE *openmaxStandComp)
char * OMX_STRING
Definition: OMX_Types.h:206
void * OMX_PTR
Definition: OMX_Types.h:199
OMX_INDEXTYPE
Definition: OMX_Index.h:60
OMX_ERRORTYPE omx_clocksrc_component_SetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
OMX_ERRORTYPE omx_clocksrc_component_GetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
#define DERIVEDCLASS(a, b)
OMX_ERRORTYPE omx_clocksrc_component_SendCommand(OMX_HANDLETYPE hComponent, OMX_COMMANDTYPE Cmd, OMX_U32 nParam, OMX_PTR pCmdData)
OMX_ERRORTYPE omx_clocksrc_component_Constructor(OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)
void omx_clocksrc_component_BufferMgmtCallback(OMX_COMPONENTTYPE *openmaxStandComp, OMX_BUFFERHEADERTYPE *inputbuffer)
OMX_COMMANDTYPE
Definition: OMX_Core.h:49
OMX_ERRORTYPE
Definition: OMX_Core.h:126

Generated for OpenMAX Bellagio rel. 0.9.3 by  doxygen 1.5.1
SourceForge.net Logo