00001
00035 #include <st_static_component_loader.h>
00036 #include <omx_maddec_component.h>
00037
00051 int omx_component_library_Setup(stLoaderComponentType **stComponents) {
00052 DEBUG(DEB_LEV_FUNCTION_NAME, "In %s \n",__func__);
00053 if (stComponents == NULL) {
00054 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__);
00055 return 1;
00056 }
00057 stComponents[0]->componentVersion.s.nVersionMajor = 1;
00058 stComponents[0]->componentVersion.s.nVersionMinor = 1;
00059 stComponents[0]->componentVersion.s.nRevision = 1;
00060 stComponents[0]->componentVersion.s.nStep = 1;
00061
00062 stComponents[0]->name = calloc(1,OMX_MAX_STRINGNAME_SIZE);
00063 if (stComponents[0]->name == NULL) {
00064 return OMX_ErrorInsufficientResources;
00065 }
00066 strcpy(stComponents[0]->name, "OMX.st.audio_decoder.mp3.mad");
00067 stComponents[0]->name_specific_length = 1;
00068 stComponents[0]->constructor = omx_maddec_component_Constructor;
00069
00070 stComponents[0]->name_specific = calloc(stComponents[0]->name_specific_length,sizeof(char *));
00071 stComponents[0]->role_specific = calloc(stComponents[0]->name_specific_length,sizeof(char *));
00072
00073 stComponents[0]->name_specific[0] = calloc(1,OMX_MAX_STRINGNAME_SIZE);
00074 if (stComponents[0]->name_specific[0] == NULL) {
00075 return OMX_ErrorInsufficientResources;
00076 }
00077 stComponents[0]->role_specific[0] = calloc(1,OMX_MAX_STRINGNAME_SIZE);
00078 if (stComponents[0]->role_specific[0] == NULL) {
00079 return OMX_ErrorInsufficientResources;
00080 }
00081
00082 strcpy(stComponents[0]->name_specific[0], "OMX.st.audio_decoder.mp3.mad");
00083 strcpy(stComponents[0]->role_specific[0], "audio_decoder.mp3");
00084
00085 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__);
00086 return 1;
00087 }