Namespaces | Macros | Functions
util.h File Reference
#include "usb_cam/types.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 usb_cam
 
 usb_cam::util
 

Macros

#define CLEAR(x)   memset(&(x), 0, sizeof(x))
 

Functions

timespec usb_cam::util::calc_img_timestamp (const timeval &buffer_time, const time_t &epoch_time_shift_us)
 Calculate image timestamp from buffer time and epoch time shift. In this, the buffer time is first converted into microseconds before the epoch time shift, which is to be given in microseconds is added to it. Afterwards it is split into seconds and nanoseconds for the image timestamp. More...
 
unsigned char usb_cam::util::CLIPVALUE (const int &val)
 
time_t usb_cam::util::get_epoch_time_shift_us ()
 Get epoch time shift. More...
 
int usb_cam::util::xioctl (int fd, int request, void *arg)
 

Macro Definition Documentation

◆ CLEAR

#define CLEAR (   x)    memset(&(x), 0, sizeof(x))

Definition at line 6 of file util.h.



usb_cam
Author(s): Benjamin Pitzer
autogenerated on Sun Sep 3 2023 02:44:54