]> sigrok.org Git - pulseview.git/commit
DecodeSignal: Add and use inclusive/exclusive sample count variant
authorSoeren Apel <redacted>
Fri, 18 May 2018 20:16:00 +0000 (22:16 +0200)
committerUwe Hermann <redacted>
Sat, 21 Jul 2018 16:57:21 +0000 (18:57 +0200)
commitb82908abf7353c7401cd67e82325922960d5d546
tree28179c2c4962b371c4ce553e7ded10930c15062f
parent76f33d4c672c43c9d9c8b8a088f97535fb878f8a
DecodeSignal: Add and use inclusive/exclusive sample count variant

This is needed because the annotation cache must be operating on the
number of decoded samples WITHOUT the ones being currently processed,
otherwise it'll refuse to refresh the cache, even if more annotations
arrive - it uses the sample count to determine the cache state.

However, the bar showing the undecoded area must operate on the number
of samples WITH the ones being currently processed so that annotations
aren't overlapping with it.

Adding the parameter to DecodeSignal::get_decoded_sample_count() allows
for both.

This relates to e06cf18db72.
pv/data/decodesignal.cpp
pv/data/decodesignal.hpp
pv/views/trace/decodetrace.cpp