xiaoxiang781216 commented on code in PR #8447:
URL: https://github.com/apache/nuttx/pull/8447#discussion_r1098651664
##########
arch/sim/src/sim/sim_video.c:
##########
@@ -336,11 +340,14 @@ int sim_video_uninitialize(void)
void sim_video_loop(void)
{
sim_video_priv_t *priv = &g_sim_video_priv;
+ struct timespec ts;
int ret;
if (priv->next_buf)
{
ret = host_video_dqbuf(priv->vdev, priv->next_buf, priv->buf_size);
+ clock_gettime(CLOCK_MONOTONIC, &ts);
+ TIMESPEC_TO_TIMEVAL(priv->next_ts, &ts);
if (ret > 0)
{
priv->capture_cb(0, ret);
Review Comment:
le's extend capture_cb to add the timestamp argument?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]