aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.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/utils.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/utils.hpp')
-rw-r--r--src/utils.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.hpp b/src/utils.hpp
index 3ff9f13..fdb673e 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -85,3 +85,6 @@ std::string pnum_to_str(uint16_t Programme_Number);
// Convert and absolute 16-bit int value to dB. If value is zero, returns
// -90dB
int absolute_to_dB(int16_t value);
+
+// Calculate the shortlabel from the label and the flag
+std::string flag_to_shortlabel(const std::string& label, uint16_t flag);