From 1d92e548f75b9fa6b5f3322ffa0658e0006c324b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Jul 2017 12:02:48 +0200 Subject: Add ensemble database, show service label in audio level statistics --- src/figs.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/figs.hpp') diff --git a/src/figs.hpp b/src/figs.hpp index 8decea3..64cfa48 100644 --- a/src/figs.hpp +++ b/src/figs.hpp @@ -59,16 +59,19 @@ struct fig0_common_t { fig0_common_t( uint8_t* fig_data, uint16_t fig_len, - ensemble_t &ens, + ensemble_database::ensemble_t &ens, WatermarkDecoder &wm_dec) : f(fig_data), figlen(fig_len), ensemble(ens), + fibcrccorrect(true), wm_decoder(wm_dec) { } uint8_t* f; uint16_t figlen; - ensemble_t& ensemble; + ensemble_database::ensemble_t& ensemble; + // The ensemble only gets updated when the fib crc is ok + bool fibcrccorrect; WatermarkDecoder &wm_decoder; uint16_t cn(void) { return (f[0] & 0x80) >> 7; } @@ -79,11 +82,18 @@ struct fig0_common_t { struct fig1_common_t { fig1_common_t( + ensemble_database::ensemble_t &ens, uint8_t* fig_data, uint16_t fig_len) : + fibcrccorrect(true), + ensemble(ens), f(fig_data), figlen(fig_len) {} + // The ensemble only gets updated when the fib crc is ok + bool fibcrccorrect; + ensemble_database::ensemble_t& ensemble; + uint8_t* f; uint16_t figlen; -- cgit v1.2.3