X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=x264_encoder.h;h=2f9c81c4f51e91748680bb8f84234b4f313414e1;hb=1836dccf699779d9092a75755cec96cea1734a2a;hp=19ce1dfb7ac2e946ad00b921675267fcd1be6cf0;hpb=0ec13fe273ceb4f0db4d1b431a8adec9f1f03b7e;p=nageru diff --git a/x264_encoder.h b/x264_encoder.h index 19ce1df..2f9c81c 100644 --- a/x264_encoder.h +++ b/x264_encoder.h @@ -33,6 +33,7 @@ extern "C" { #include #include "defs.h" +#include "metrics.h" #include "print_latency.h" #include "x264_dynamic.h" @@ -122,10 +123,8 @@ private: std::atomic metric_x264_output_frames_i{0}; std::atomic metric_x264_output_frames_p{0}; std::atomic metric_x264_output_frames_b{0}; - - static constexpr size_t crf_buckets = 50; - std::atomic metric_x264_crf[crf_buckets]{{0}}; - std::atomic metric_x264_crf_sum{0.0}; + Histogram metric_x264_crf; + LatencyHistogram latency_histogram; }; #endif // !defined(_X264ENCODE_H)