drivers/video: add timestamp support

Add support for timestamp and change in related drivers

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee
2023-02-06 17:08:31 +08:00
committed by Xiang Xiao
parent 74ce3b81d3
commit 2ebccd82b6
4 changed files with 23 additions and 9 deletions
+3 -1
View File
@@ -26,6 +26,7 @@
****************************************************************************/
#include <sys/types.h>
#include <sys/time.h>
/****************************************************************************
* Pre-processor Definitions
@@ -81,7 +82,8 @@ typedef struct imgdata_interval_s
uint32_t denominator;
} imgdata_interval_t;
typedef int (*imgdata_capture_t)(uint8_t result, uint32_t size);
typedef int (*imgdata_capture_t)(uint8_t result, uint32_t size,
FAR const struct timeval *ts);
/* Structure for Data Control I/F */