00001 00023 #include <stdio.h> 00024 #include <stdlib.h> 00025 #include <fcntl.h> 00026 #include <string.h> 00027 #include <pthread.h> 00028 #include <unistd.h> 00029 #include <sys/stat.h> 00030 00031 #include <OMX_Core.h> 00032 #include <OMX_Component.h> 00033 #include <OMX_Types.h> 00034 #include <OMX_Audio.h> 00035 00036 #include <user_debug_levels.h> 00037 00038 int main(int argc, char** argv) { 00039 00040 int index; 00041 char name[256]; 00042 OMX_ERRORTYPE err = OMX_ErrorNone; 00043 00044 err = OMX_Init(); 00045 if(err != OMX_ErrorNone) { 00046 DEBUG(DEB_LEV_ERR, "OMX_Init() failed\n"); 00047 exit(1); 00048 } 00049 00050 index = 0; 00051 while(err == OMX_ErrorNone) 00052 { 00053 err = OMX_ComponentNameEnum(name, 256, index); 00054 if (err == OMX_ErrorNone) 00055 { 00056 printf("Component %d is %s\n", index, name); 00057 } 00058 index++; 00059 } 00060 00061 printf("Hit any key\n"); 00062 getchar(); 00063 00064 OMX_Deinit(); 00065 00066 return 0; 00067 }