diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-05-14 10:09:35 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-05-14 10:09:35 +0200 |
commit | 1a10e4cf82ff9082a84f81f3feadfceb528e08eb (patch) | |
tree | 0855564b702780680b2292debf1c428e9591aff3 /src/etianalyse.cpp | |
parent | cc4cac79ada4adf808bd09417942a995530c3a69 (diff) | |
download | etisnoop-1a10e4cf82ff9082a84f81f3feadfceb528e08eb.tar.gz etisnoop-1a10e4cf82ff9082a84f81f3feadfceb528e08eb.tar.bz2 etisnoop-1a10e4cf82ff9082a84f81f3feadfceb528e08eb.zip |
Add some more changes to subchannel extraction
Diffstat (limited to 'src/etianalyse.cpp')
-rw-r--r-- | src/etianalyse.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/etianalyse.cpp b/src/etianalyse.cpp index d477c0e..fa3f297 100644 --- a/src/etianalyse.cpp +++ b/src/etianalyse.cpp @@ -392,14 +392,12 @@ void ETI_Analyser::eti_analyse() if (config.statistics and config.streams_to_decode.count(scid) == 0) { config.streams_to_decode.emplace(std::piecewise_construct, std::make_tuple(scid), - std::make_tuple(false)); // do not dump to file - config.streams_to_decode.at(scid).subchid = scid; + std::make_tuple(scid, false)); // do not dump to file } if (config.streams_to_decode.count(scid) > 0) { config.streams_to_decode.at(scid).set_subchannel_index(stl[i]/3); - config.streams_to_decode.at(scid).set_index(i); - config.streams_to_decode.at(scid).subchid = scid; + config.streams_to_decode.at(scid).stream_index = i; } } @@ -500,21 +498,21 @@ void ETI_Analyser::eti_analyse() printvalue("Id", 3, "", to_string(i)); printvalue("Length", 3, "", to_string(stl[i]*8)); - int subch_ix = -1; + int subchid = -1; for (const auto& el : config.streams_to_decode) { - if (el.second.get_index() == i) { - subch_ix = el.first; + if (el.second.stream_index == i) { + subchid = el.first; break; } } - printvalue("Selected for decoding", 3, "", (subch_ix == -1 ? "false" : "true")); + printvalue("Selected for decoding", 3, "", (subchid == -1 ? "false" : "true")); if (get_verbosity() > 1) { printbuf("Data", 3, streamdata, stl[i]*8); } - if (subch_ix != -1) { - config.streams_to_decode.at(subch_ix).push(streamdata, stl[i]*8); + if (subchid != -1) { + config.streams_to_decode.at(subchid).push(streamdata, stl[i]*8); } } |