Improve clocks support

This commit is contained in:
Kamil Trzcinski
2022-04-06 13:22:49 +02:00
parent 8eb514c6b0
commit 3fe66378aa
8 changed files with 29 additions and 12 deletions

View File

@ -34,6 +34,7 @@ fourcc_string fourcc_to_string(unsigned format);
unsigned fourcc_to_stride(unsigned width, unsigned format);
int xioctl(const char *name, int fd, int request, void *arg);
uint64_t get_monotonic_time_us(struct timespec *ts, struct timeval *tv);
uint64_t get_time_us(clockid_t clock, struct timespec *ts, struct timeval *tv, int64_t delays_us);
int shrink_to_block(int size, int block);
#define E_XIOCTL(dev, _fd, _request, _value, _msg, ...) do { \