X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=x264_encoder.h;h=7a155e341bd0e64b0f0153b8a2977058cd001bf3;hb=27af21bd4b1d1638841a580d6a61608da08a8229;hp=19ce1dfb7ac2e946ad00b921675267fcd1be6cf0;hpb=0ec13fe273ceb4f0db4d1b431a8adec9f1f03b7e;p=nageru diff --git a/x264_encoder.h b/x264_encoder.h index 19ce1df..7a155e3 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" @@ -114,18 +115,6 @@ private: // Key is the pts of the frame. std::unordered_map frames_being_encoded; - - // Metrics. - std::atomic metric_x264_queued_frames{0}; - std::atomic metric_x264_max_queued_frames{X264_QUEUE_LENGTH}; - std::atomic metric_x264_dropped_frames{0}; - 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}; }; #endif // !defined(_X264ENCODE_H)