Commit bc2749d2 authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Augment number of timestamps

parent d04b82e5
......@@ -961,6 +961,13 @@ static tao_status update_processing_parameters(
return TAO_OK;
}
static inline tao_time get_monotonic_time(void)
{
tao_time t;
tao_get_monotonic_time(&t);
return t;
}
// This function shall only be called if there is anything to do.
static bool process_acquisition_buffer(
tao_camera_server* srv,
......@@ -1046,13 +1053,13 @@ static bool process_acquisition_buffer(
} else {
ctx->wgt = NULL;
}
ctx->processor(ctx);
tao_time now;
tao_get_monotonic_time(&now);
arr->ts[0] = buf->frame_start;
arr->ts[1] = buf->frame_end;
arr->ts[2] = buf->buffer_ready;
arr->ts[3] = now;
arr->ts[3] = get_monotonic_time();
ctx->processor(ctx);
arr->ts[4] = get_monotonic_time();
// Returns that an output image has been produced.
return true;
}
......
......@@ -314,7 +314,7 @@ extern void tao_shared_array_set_serial(
* @brief Number of shared array time-stamps.
*
*/
#define TAO_SHARED_ARRAY_TIMESTAMPS 4
#define TAO_SHARED_ARRAY_TIMESTAMPS 5
/**
* Get one of the time-stamps of a shared array.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment