-
- // Metrics.
- std::atomic<int64_t> metric_x264_queued_frames{0};
- std::atomic<int64_t> metric_x264_max_queued_frames{X264_QUEUE_LENGTH};
- std::atomic<int64_t> metric_x264_dropped_frames{0};
- std::atomic<int64_t> metric_x264_output_frames_i{0};
- std::atomic<int64_t> metric_x264_output_frames_p{0};
- std::atomic<int64_t> metric_x264_output_frames_b{0};
-
- static constexpr size_t crf_buckets = 50;
- std::atomic<int64_t> metric_x264_crf[crf_buckets]{{0}};
- std::atomic<double> metric_x264_crf_sum{0.0};