OpenMAX Bellagio 0.9.3
clocksrc/library_entry_point.c
Go to the documentation of this file.
1
33
48 OMX_U32 i;
49
50 DEBUG(DEB_LEV_FUNCTION_NAME, "In %s \n",__func__);
51
52 if (stComponents == NULL) {
53 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__);
54 return 1; // Return Number of Component/s
55 }
56
57 stComponents[0]->componentVersion.s.nVersionMajor = 1;
58 stComponents[0]->componentVersion.s.nVersionMinor = 1;
59 stComponents[0]->componentVersion.s.nRevision = 1;
60 stComponents[0]->componentVersion.s.nStep = 1;
61
62 stComponents[0]->name = calloc(1,OMX_MAX_STRINGNAME_SIZE);
63 if (stComponents[0]->name == NULL) {
65 }
66
67 strcpy(stComponents[0]->name, CLOCK_COMP_NAME);
68 stComponents[0]->name_specific_length = 1;
70
71 stComponents[0]->name_specific = calloc(stComponents[0]->name_specific_length,sizeof(char *));
72 stComponents[0]->role_specific = calloc(stComponents[0]->name_specific_length,sizeof(char *));
73
74 for(i=0;i<stComponents[0]->name_specific_length;i++) {
75 stComponents[0]->name_specific[i] = calloc(1, OMX_MAX_STRINGNAME_SIZE);
76 if (stComponents[0]->name_specific[i] == NULL) {
78 }
79 }
80 for(i=0;i<stComponents[0]->name_specific_length;i++) {
81 stComponents[0]->role_specific[i] = calloc(1, OMX_MAX_STRINGNAME_SIZE);
82 if (stComponents[0]->role_specific[i] == NULL) {
84 }
85 }
86
87 strcpy(stComponents[0]->name_specific[0], CLOCK_COMP_NAME);
88 strcpy(stComponents[0]->role_specific[0], CLOCK_COMP_ROLE);
89
90 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__);
91 return 1;
92}
93
#define OMX_MAX_STRINGNAME_SIZE
Definition: OMX_Core.h:281
@ OMX_ErrorInsufficientResources
Definition: OMX_Core.h:131
unsigned long OMX_U32
Definition: OMX_Types.h:145
int omx_component_library_Setup(stLoaderComponentType **stComponents)
The library entry point. It must have the same name for each library for the components loaded by the...
OMX_ERRORTYPE omx_clocksrc_component_Constructor(OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)
#define CLOCK_COMP_NAME
#define CLOCK_COMP_ROLE
#define DEB_LEV_FUNCTION_NAME
#define DEBUG(n, fmt, args...)
the private data structure handled by the ST static loader that described an OpenMAX component
OMX_ERRORTYPE(* constructor)(OMX_COMPONENTTYPE *, OMX_STRING cComponentName)
OMX_U8 nVersionMajor
Definition: OMX_Types.h:344
struct OMX_VERSIONTYPE::@1 s
OMX_U8 nVersionMinor
Definition: OMX_Types.h:345
OMX_U8 nRevision
Definition: OMX_Types.h:346

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