OMXMaster::OMXMaster() : mVendorLibHandle(NULL) { pid_t pid = getpid(); char filename[20]; snprintf(filename, sizeof(filename), "/proc/%d/comm", pid); int fd = open(filename, O_RDONLY); if (fd < 0) { ALOGW("couldn't determine process name"); strlcpy(mProcessName, "<unknown>", sizeof(mProcessName)); } else { ssize_t len = read(fd, mProcessName, sizeof(mProcessName)); if (len < 2) { ALOGW("couldn't determine process name"); strlcpy(mProcessName, "<unknown>", sizeof(mProcessName)); } else { // the name is newline terminated, so erase the newline mProcessName[len - 1] = 0; } close(fd); } addVendorPlugin(); addPlugin(new SoftOMXPlugin); }
OMXMaster::OMXMaster() : mVendorLibHandle(NULL) { addVendorPlugin(); #ifndef NO_OPENCORE addPlugin(new OMXPVCodecsPlugin); #endif }
NVOMXMaster::NVOMXMaster() { addVendorPlugin(); }
OMXMaster::OMXMaster() { addVendorPlugin(); addPlugin(new SoftOMXPlugin); addUserPlugin(); }
OMXMaster::OMXMaster() : mVendorLibHandle(NULL) { addVendorPlugin(); addPlugin(new SoftOMXPlugin); }