 |
libxcoder
5.2.0
|
Go to the documentation of this file.
32 #if __linux__ || __APPLE__
34 #include <sys/types.h>
44 int main(
int argc,
char *argv[])
46 int should_match_rev = 1;
48 int timeout_seconds = 0;
52 while ((opt =
getopt(argc, argv,
"hrt:l:v")) != -1)
58 printf(
"-------- init_rsrc v%s --------\n"
59 "Initialize NetInt transcoder resource pool\n"
61 "-r Init transcoder card resource regardless of firmware release version to \n"
62 " libxcoder release version compatibility. Default is to only init cards with \n"
63 " compatible firmware version.\n"
64 "-t Set timeout time in seconds for device polling, will exit with failure if \n"
65 " reached. Default 0s which means no timeout.\n"
66 "-l Set loglevel of libxcoder API.\n"
67 " [none, fatal, error, info, debug, trace]\n"
69 "-h Display this help and exit.\n"
70 "-v Print version info.\n",
78 printf(
"Timeout will be set %d\n", timeout_seconds);
86 fprintf(stderr,
"FATAL: invalid log level selected: %s\n",
92 printf(
"Release ver: %s\n"
100 fprintf(stderr,
"FATAL: invalid arg '%c'\n", opt);
105 #if __linux__ || __APPLE__
111 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.