util.h
Go to the documentation of this file.
1 #ifndef USB_CAM_UTIL_H
2 #define USB_CAM_UTIL_H
3 
4 #include "usb_cam/types.h"
5 
6 #define CLEAR(x) memset(&(x), 0, sizeof(x))
7 
8 namespace usb_cam
9 {
10 namespace util
11 {
12 
17 
22 timespec calc_img_timestamp(const timeval & buffer_time, const time_t & epoch_time_shift_us);
23 
24 int xioctl(int fd, int request, void * arg);
25 
29 unsigned char CLIPVALUE(const int & val);
30 
31 } // namespace util
32 } // namespace usb_cam
33 
34 #endif
usb_cam::util::calc_img_timestamp
timespec 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 co...
Definition: util.cpp:23
types.h
usb_cam
Definition: camera_driver.h:35
usb_cam::util::get_epoch_time_shift_us
time_t get_epoch_time_shift_us()
Get epoch time shift.
Definition: util.cpp:5
usb_cam::util::xioctl
int xioctl(int fd, int request, void *arg)
Definition: util.cpp:36
usb_cam::util::CLIPVALUE
unsigned char CLIPVALUE(const int &val)
Definition: util.cpp:48


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