49static int initialized;
53static int bosa_loaders;
99 if(initialized == 0) {
106 for (i = 0; i < bosa_loaders; i++) {
126 if(initialized == 1) {
127 for (i = 0; i < bosa_loaders; i++) {
162 for (i = 0; i < bosa_loaders; i++) {
195 for (i = 0; i < bosa_loaders; i++) {
228 for (i = 0; i < bosa_loaders; i++)
273 __func__, hOutput, (
int)nPortOutput, hInput, (
int)nPortInput);
279 if (hOutput == NULL && hInput == NULL)
334 for (i = 0; i < bosa_loaders; i++) {
364 int only_number_requested = 0, full_number=0;
369 if (compNames == NULL) {
370 only_number_requested = 1;
372 only_number_requested = 0;
374 for (i = 0; i < bosa_loaders; i++) {
375 temp_num_comp = *pNumComps;
385 if (only_number_requested == 0) {
386 tempCompNames = malloc(temp_num_comp *
sizeof(
OMX_STRING));
387 for (j=0; j<temp_num_comp; j++) {
400 for (j = 0; j<temp_num_comp; j++) {
401 if (full_number + j < *pNumComps) {
402 strncpy((
char *)compNames[full_number + j], (
const char *)tempCompNames[j], 128);
406 full_number += temp_num_comp;
408 *pNumComps = full_number;
420 if(strncmp(szURI,
"file", 4) == 0) {
422 if(res == 0x00000000)
426 else if(strncmp(szURI,
"inet", 4) == 0) {
428 if(res == 0x00000000)
#define OMX_MAX_STRINGNAME_SIZE
@ OMX_ErrorInsufficientResources
@ OMX_ErrorComponentNotFound
@ OMX_ErrorPortsNotCompatible
@ OMX_ErrorContentPipeCreationFailed
@ OMX_BufferSupplyUnspecified
OMX_ERRORTYPE OMX_GetRolesOfComponent(OMX_STRING CompName, OMX_U32 *pNumRoles, OMX_U8 **roles)
the OMX_GetRolesOfComponent standard function
OMX_ERRORTYPE OMX_Deinit()
The OMX_Deinit standard function.
OMX_ERRORTYPE OMX_ComponentNameEnum(OMX_STRING cComponentName, OMX_U32 nNameLength, OMX_U32 nIndex)
the OMX_ComponentNameEnum standard function
OMX_ERRORTYPE OMX_FreeHandle(OMX_HANDLETYPE hComponent)
The OMX_FreeHandle standard function.
OMX_ERRORTYPE OMX_Init()
The OMX_Init standard function.
OMX_ERRORTYPE OMX_GetHandle(OMX_HANDLETYPE *pHandle, OMX_STRING cComponentName, OMX_PTR pAppData, OMX_CALLBACKTYPE *pCallBacks)
the OMX_GetHandle standard function
OMX_ERRORTYPE OMX_GetComponentsOfRole(OMX_STRING role, OMX_U32 *pNumComps, OMX_U8 **compNames)
the OMX_GetComponentsOfRole standard function
OMX_ERRORTYPE OMX_GetContentPipe(OMX_HANDLETYPE *hPipe, OMX_STRING szURI)
OMX_ERRORTYPE OMX_SetupTunnel(OMX_HANDLETYPE hOutput, OMX_U32 nPortOutput, OMX_HANDLETYPE hInput, OMX_U32 nPortInput)
the OMX_SetupTunnel standard function
OMX_ERRORTYPE(* ComponentTunnelRequest)(OMX_HANDLETYPE hComp, OMX_U32 nPort, OMX_HANDLETYPE hTunneledComp, OMX_U32 nTunneledPort, OMX_TUNNELSETUPTYPE *pTunnelSetup)
#define DEB_LEV_FUNCTION_NAME
#define DEB_LEV_SIMPLE_SEQ
#define DEBUG(n, fmt, args...)
int createComponentLoaders(void)
BOSA_COMPONENTLOADER ** loadersList
CPresult file_pipe_Constructor(CP_PIPETYPE *pPipe, CPstring szURI)
CPresult inet_pipe_Constructor(CP_PIPETYPE *pPipe, CPstring szURI)
OMX_ERRORTYPE BOSA_AddComponentLoader(BOSA_COMPONENTLOADER *pLoader)
Component loader entry points.
OMX_ERRORTYPE(* BOSA_CreateComponent)(struct BOSA_COMPONENTLOADER *loader, OMX_HANDLETYPE *pHandle, OMX_STRING cComponentName, OMX_PTR pAppData, OMX_CALLBACKTYPE *pCallBacks)
The component constructor of the current component loader.
OMX_ERRORTYPE(* BOSA_DeInitComponentLoader)(struct BOSA_COMPONENTLOADER *loader)
The destructor of the component loader.
OMX_ERRORTYPE(* BOSA_InitComponentLoader)(struct BOSA_COMPONENTLOADER *loader)
The constructor of the component loader.
OMX_ERRORTYPE(* BOSA_DestroyComponent)(struct BOSA_COMPONENTLOADER *loader, OMX_HANDLETYPE hComponent)
The component destructor of the current component loader.
OMX_ERRORTYPE(* BOSA_GetComponentsOfRole)(struct BOSA_COMPONENTLOADER *loader, OMX_STRING role, OMX_U32 *pNumComps, OMX_U8 **compNames)
This function implements the OMX_GetComponentsOfRole standard function for the current component load...
OMX_ERRORTYPE(* BOSA_GetRolesOfComponent)(struct BOSA_COMPONENTLOADER *loader, OMX_STRING compName, OMX_U32 *pNumRoles, OMX_U8 **roles)
This function implements the OMX_GetRolesOfComponent standard function for the current component load...
OMX_BUFFERSUPPLIERTYPE eSupplier