NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/includes/libv4l2/include/libv4l2.h File Reference

Go to the source code of this file.

Macros

#define LIBV4L_PUBLIC
 
#define V4L2_DISABLE_CONVERSION   0x01
 
#define V4L2_ENABLE_ENUM_FMT_EMULATION   0x02
 

Functions

LIBV4L_PUBLIC int v4l2_open (const char *file, int oflag,...)
 
LIBV4L_PUBLIC int v4l2_close (int fd)
 
LIBV4L_PUBLIC int v4l2_dup (int fd)
 
LIBV4L_PUBLIC int v4l2_ioctl (int fd, unsigned long int request,...)
 
LIBV4L_PUBLIC ssize_t v4l2_read (int fd, void *buffer, size_t n)
 
LIBV4L_PUBLIC ssize_t v4l2_write (int fd, const void *buffer, size_t n)
 
LIBV4L_PUBLIC void * v4l2_mmap (void *start, size_t length, int prot, int flags, int fd, int64_t offset)
 
LIBV4L_PUBLIC int v4l2_munmap (void *_start, size_t length)
 
LIBV4L_PUBLIC int v4l2_set_control (int fd, int cid, int value)
 
LIBV4L_PUBLIC int v4l2_get_control (int fd, int cid)
 
LIBV4L_PUBLIC int v4l2_fd_open (int fd, int v4l2_flags)
 

Variables

LIBV4L_PUBLIC FILE * v4l2_log_file
 

Macro Definition Documentation

◆ LIBV4L_PUBLIC

#define LIBV4L_PUBLIC

Definition at line 33 of file 9.2/includes/libv4l2/include/libv4l2.h.

◆ V4L2_DISABLE_CONVERSION

#define V4L2_DISABLE_CONVERSION   0x01

Definition at line 99 of file 9.2/includes/libv4l2/include/libv4l2.h.

◆ V4L2_ENABLE_ENUM_FMT_EMULATION

#define V4L2_ENABLE_ENUM_FMT_EMULATION   0x02

Definition at line 102 of file 9.2/includes/libv4l2/include/libv4l2.h.

Function Documentation

◆ v4l2_close()

LIBV4L_PUBLIC int v4l2_close ( int  fd)

◆ v4l2_dup()

LIBV4L_PUBLIC int v4l2_dup ( int  fd)

◆ v4l2_fd_open()

LIBV4L_PUBLIC int v4l2_fd_open ( int  fd,
int  v4l2_flags 
)

◆ v4l2_get_control()

LIBV4L_PUBLIC int v4l2_get_control ( int  fd,
int  cid 
)

◆ v4l2_ioctl()

LIBV4L_PUBLIC int v4l2_ioctl ( int  fd,
unsigned long int  request,
  ... 
)

◆ v4l2_mmap()

LIBV4L_PUBLIC void* v4l2_mmap ( void *  start,
size_t  length,
int  prot,
int  flags,
int  fd,
int64_t  offset 
)

◆ v4l2_munmap()

LIBV4L_PUBLIC int v4l2_munmap ( void *  _start,
size_t  length 
)

◆ v4l2_open()

LIBV4L_PUBLIC int v4l2_open ( const char *  file,
int  oflag,
  ... 
)

◆ v4l2_read()

LIBV4L_PUBLIC ssize_t v4l2_read ( int  fd,
void *  buffer,
size_t  n 
)

◆ v4l2_set_control()

LIBV4L_PUBLIC int v4l2_set_control ( int  fd,
int  cid,
int  value 
)

◆ v4l2_write()

LIBV4L_PUBLIC ssize_t v4l2_write ( int  fd,
const void *  buffer,
size_t  n 
)

Variable Documentation

◆ v4l2_log_file

LIBV4L_PUBLIC FILE* v4l2_log_file