]> git.sesse.net Git - nageru/blobdiff - nageru/mjpeg_encoder.h
Add MJPEG export metrics.
[nageru] / nageru / mjpeg_encoder.h
index 3630d9f26a6f94048b0c3df0b9a9593955948c1a..6610e1315a7d26ee41d024d48caca65f60a67377 100644 (file)
@@ -146,6 +146,13 @@ private:
        static std::unique_ptr<VADisplayWithCleanup> try_open_va(const std::string &va_display, std::string *error, VAConfigID *config_id);
 
        uint8_t *tmp_y, *tmp_cbcr, *tmp_cb, *tmp_cr;  // Private to the encoder thread. Used by the libjpeg backend only.
+
+       std::atomic<int64_t> metric_mjpeg_frames_zero_size_dropped{0};
+       std::atomic<int64_t> metric_mjpeg_frames_interlaced_dropped{0};
+       std::atomic<int64_t> metric_mjpeg_frames_unsupported_pixel_format_dropped{0};
+       std::atomic<int64_t> metric_mjpeg_frames_oversized_dropped{0};
+       std::atomic<int64_t> metric_mjpeg_overrun_dropped{0};
+       std::atomic<int64_t> metric_mjpeg_overrun_submitted{0};
 };
 
 #endif  // !defined(_MJPEG_ENCODER_H)