Make the video recording button an icon

This commit is contained in:
Martijn Braam
2024-07-15 18:03:35 +02:00
parent 8b525210bc
commit ccf0314b62
8 changed files with 296 additions and 7 deletions

14
src/medianame.h Normal file
View File

@@ -0,0 +1,14 @@
#include <sys/time.h>
static inline unsigned long long time_usec(void)
{
struct timeval t;
gettimeofday(&t, NULL);
return t.tv_sec * 1000000 + t.tv_usec;
}
static inline void get_name(char *buf, char *dir, char *templ)
{
sprintf(buf, "%s/%lld.%s", dir, time_usec(), templ);
}