diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-07-22 16:27:11 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-07-22 16:27:11 +0200 |
commit | 6295e9f75bb1408292be2e27a816b23dfc2ec589 (patch) | |
tree | 92b5652a76508f1081a36e335f3fbae1a7323cf7 /lib/edi/STIDecoder.hpp | |
parent | c055764200393e4f2ce48daea7d175fd6af26b72 (diff) | |
download | dabmux-6295e9f75bb1408292be2e27a816b23dfc2ec589.tar.gz dabmux-6295e9f75bb1408292be2e27a816b23dfc2ec589.tar.bz2 dabmux-6295e9f75bb1408292be2e27a816b23dfc2ec589.zip |
Common: Add STI stream index filter
Diffstat (limited to 'lib/edi/STIDecoder.hpp')
-rw-r--r-- | lib/edi/STIDecoder.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/edi/STIDecoder.hpp b/lib/edi/STIDecoder.hpp index f85f789..5e71ce7 100644 --- a/lib/edi/STIDecoder.hpp +++ b/lib/edi/STIDecoder.hpp @@ -119,6 +119,10 @@ class STIDecoder { */ void setMaxDelay(int num_af_packets); + /* Enable/disable stream-index filtering. + * index==0 is out of spec, but some encoders do it anyway. */ + void filter_stream_index(bool enable, uint16_t index); + private: bool decode_starptr(const std::vector<uint8_t>& value, const tag_name_t& n); bool decode_dsti(const std::vector<uint8_t>& value, const tag_name_t& n); @@ -132,6 +136,9 @@ class STIDecoder { STIDataCollector& m_data_collector; TagDispatcher m_dispatcher; + + bool m_filter_stream = false; + uint16_t m_filtered_stream_index = 1; }; } |