From b798cb803497cb9d60918fe1d6153696b364b07d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Jul 2017 16:32:55 +0200 Subject: Write statistics to yaml file, add option to stop after N frames --- src/etianalyse.hpp | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'src/etianalyse.hpp') diff --git a/src/etianalyse.hpp b/src/etianalyse.hpp index fb17c8f..8024063 100644 --- a/src/etianalyse.hpp +++ b/src/etianalyse.hpp @@ -45,25 +45,17 @@ extern std::atomic quit; struct eti_analyse_config_t { - eti_analyse_config_t() : - etifd(nullptr), - ignore_error(false), - streams_to_decode(), - analyse_fic_carousel(false), - analyse_fig_rates(false), - analyse_fig_rates_per_second(false), - decode_watermark(false), - statistics(false) {} - - FILE* etifd; - bool ignore_error; + FILE* etifd = nullptr; + bool ignore_error = false; std::map streams_to_decode; std::list > figs_to_display; - bool analyse_fic_carousel; - bool analyse_fig_rates; - bool analyse_fig_rates_per_second; - bool decode_watermark; - bool statistics; + bool analyse_fic_carousel = false; + bool analyse_fig_rates = false; + bool analyse_fig_rates_per_second = false; + bool decode_watermark = false; + bool statistics = false; + std::string statistics_filename; + size_t num_frames_to_decode = 0; // 0 means forever bool is_fig_to_be_printed(int type, int extension) const; }; -- cgit v1.2.3