 |
libxcoder
5.3.1
|
Go to the documentation of this file.
31 #if __linux__ || __APPLE__
33 #include <sys/types.h>
43 int main(
int argc,
char *argv[])
45 int should_match_rev = 1;
47 int timeout_seconds = 0;
51 while ((opt =
getopt(argc, argv,
"hrt:l:v")) != -1)
57 printf(
"-------- init_rsrc v%s --------\n"
58 "Initialize NetInt transcoder resource pool\n"
60 "-r Init transcoder card resource regardless of firmware release version to \n"
61 " libxcoder release version compatibility. Default is to only init cards with \n"
62 " compatible firmware version.\n"
63 "-t Set timeout time in seconds for device polling, will exit with failure if \n"
64 " reached. Default 0s which means no timeout.\n"
65 "-l Set loglevel of libxcoder API.\n"
66 " [none, fatal, error, info, debug, trace]\n"
68 "-h Display this help and exit.\n"
69 "-v Print version info.\n",
77 printf(
"Timeout will be set %d\n", timeout_seconds);
85 fprintf(stderr,
"FATAL: invalid log level selected: %s\n",
91 printf(
"Release ver: %s\n"
99 fprintf(stderr,
"FATAL: invalid arg '%c'\n", opt);
104 #if __linux__ || __APPLE__
110 printf(
"NETINT Resources Intitialized Successfully\n");
void ni_log_set_level(ni_log_level_t level)
Set ni_log_level.
Public definitions for managing NETINT video processing devices.
#define NI_XCODER_REVISION
ni_log_level_t arg_to_ni_log_level(const char *arg_str)
Convert terminal arg string to ni_log_level_t.
Common NETINT definitions used by all modules.
#define NI_SW_RELEASE_TIME
Private definitions used by ni_rsrc_api.cpp for management of NETINT video processing devices.
int getopt(int argc, char *argv[], const char *optstring)
LIB_API int ni_rsrc_init(int should_match_rev, int timeout_seconds)
Initialize and create all resources required to work with NETINT NVMe transcoder devices....
#define LIBXCODER_API_VERSION
int main(int argc, char *argv[])
Implementation of getopt() and getopt_long() for Windows environment.