Namespaces | Functions
usb_cam::util Namespace Reference

Namespaces

 converters
 

Functions

unsigned char CLIPVALUE (const int &val)
 
time_t get_epoch_time_shift ()
 Get epoch time shift. More...
 
int xioctl (int fd, int request, void *arg)
 

Function Documentation

◆ CLIPVALUE()

unsigned char usb_cam::util::CLIPVALUE ( const int &  val)

Clip a value to the range 0<val<255. For speed this is done using an array, so can only cope with numbers in the range -128<=val<=383.

Definition at line 35 of file util.cpp.

◆ get_epoch_time_shift()

time_t usb_cam::util::get_epoch_time_shift ( )

Get epoch time shift.

Run this at start of process to calculate epoch time shift https://stackoverflow.com/questions/10266451/where-does-v4l2-buffer-timestamp-value-starts-counting

Definition at line 52 of file util.cpp.

◆ xioctl()

int usb_cam::util::xioctl ( int  fd,
int  request,
void *  arg 
)

Definition at line 23 of file util.cpp.



usb_cam
Author(s): Benjamin Pitzer
autogenerated on Sat May 27 2023 02:53:05