aboutsummaryrefslogtreecommitdiffstats
path: root/src/etianalyse.hpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-07-07 16:32:55 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-07-07 16:32:55 +0200
commitb798cb803497cb9d60918fe1d6153696b364b07d (patch)
tree23a3a11befff98bf8fd08733652299075283692d /src/etianalyse.hpp
parentc0653abf33028a338e528a0947f56469c9caaac7 (diff)
downloadetisnoop-b798cb803497cb9d60918fe1d6153696b364b07d.tar.gz
etisnoop-b798cb803497cb9d60918fe1d6153696b364b07d.tar.bz2
etisnoop-b798cb803497cb9d60918fe1d6153696b364b07d.zip
Write statistics to yaml file, add option to stop after N frames
Diffstat (limited to 'src/etianalyse.hpp')
-rw-r--r--src/etianalyse.hpp26
1 files changed, 9 insertions, 17 deletions
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<bool> 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<int, StreamSnoop> streams_to_decode;
std::list<std::pair<int, int> > 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;
};