]> git.sesse.net Git - nageru/blobdiff - print_latency.h
Move find_received_timestamp() into print_latency.h, so that multiple consumers can...
[nageru] / print_latency.h
index 9d8a93b0ff47a751826dd44206268fb307b18775..0e880ca1e75273d2018c594c3a08dd77cb8e8cb9 100644 (file)
@@ -7,6 +7,9 @@
 
 #include <chrono>
 #include <string>
+#include <vector>
+
+#include "ref_counted_frame.h"
 
 // Since every output frame is based on multiple input frames, we need
 // more than one start timestamp. For now, we keep just the smallest
@@ -16,6 +19,8 @@ struct ReceivedTimestamps {
        std::chrono::steady_clock::time_point min_ts, max_ts;
 };
 
+ReceivedTimestamps find_received_timestamp(const std::vector<RefCountedFrame> &input_frames);
+
 void print_latency(const std::string &header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno);
 
 #endif  // !defined(_PRINT_LATENCY_H)