X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=print_latency.h;h=d80ac88e96a25ac04f6f64a27f921edd9c45ff59;hp=e2e5730e169d9e27bb4be98bf89e4d09dbcc904e;hb=refs%2Fheads%2Fffmpeg-audio-only;hpb=f5abd2ad495150cdb3c7b49d6841ece27a7fdb3e diff --git a/print_latency.h b/print_latency.h index e2e5730..d80ac88 100644 --- a/print_latency.h +++ b/print_latency.h @@ -21,12 +21,12 @@ struct ReceivedTimestamps { struct LatencyHistogram { void init(const std::string &measuring_point); // Initializes histograms and registers them in global_metrics. - // Indices: card number, frame history number, b-frame or not (1/0). + // Indices: card number, frame history number, b-frame or not (1/0, where 2 counts both). std::vector>> summaries; }; ReceivedTimestamps find_received_timestamp(const std::vector &input_frames); -void print_latency(const std::string &header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno, LatencyHistogram *histogram); +void print_latency(const char *header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno, LatencyHistogram *histogram); #endif // !defined(_PRINT_LATENCY_H)