X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=x264_encoder.h;h=2f9c81c4f51e91748680bb8f84234b4f313414e1;hb=a52521ba8935fcf02e37d01767c3013c39e8dce2;hp=455bb1e96e822282c3dfd41162f6fe0304b7ceda;hpb=0556d8cb8416bdc7b432a432c3d58239a94358d2;p=nageru diff --git a/x264_encoder.h b/x264_encoder.h index 455bb1e..2f9c81c 100644 --- a/x264_encoder.h +++ b/x264_encoder.h @@ -32,6 +32,8 @@ extern "C" { #include +#include "defs.h" +#include "metrics.h" #include "print_latency.h" #include "x264_dynamic.h" @@ -113,6 +115,16 @@ 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}; + Histogram metric_x264_crf; + LatencyHistogram latency_histogram; }; #endif // !defined(_X264ENCODE_H)