From 44d445f920e3d30a7c5a68e41a782135a861c3e9 Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Mon, 27 May 2024 12:54:15 +0200 Subject: [PATCH] Add frame id --- interface/cuvis.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/interface/cuvis.hpp b/interface/cuvis.hpp index e83bbb7..3455e62 100644 --- a/interface/cuvis.hpp +++ b/interface/cuvis.hpp @@ -618,6 +618,12 @@ namespace cuvis * The session information of the measurement. */ SessionInfo session_info; + + /** + * The incremental frame ID given by cuvis to this measurement + */ + size_t frame_id; + processing_mode_t processing_mode; std::map measurement_flags; }; @@ -640,6 +646,8 @@ namespace cuvis uint32_t width; /** height of buffer */ uint32_t height; + /** The sensor frame ID given to this devices frame by the hardware or driver of the device. May reset without warning! */ + size_t raw_frame_id; }; @@ -2614,6 +2622,7 @@ namespace cuvis assembly = std::string(meta.assembly); integration_time = meta.integration_time; averages = static_cast(meta.averages); + frame_id = meta.measurement_frame_id; auto dist = meta.distance; if (dist > 0.0) { @@ -2640,6 +2649,7 @@ namespace cuvis readout_time = std::chrono::time_point(std::chrono::milliseconds(info.readout_time)); width = info.width; height = info.height; + raw_frame_id = info.raw_frame_id; }