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

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