]> sigrok.org Git - pulseview.git/commit
DecodeSignal: Reset and re-use existing decoder sessions
authorGerhard Sittig <redacted>
Tue, 2 Jan 2018 19:03:56 +0000 (20:03 +0100)
committerSoeren Apel <redacted>
Sat, 31 Mar 2018 20:00:52 +0000 (22:00 +0200)
commitce0b6a40ca6f804fd6ae7dcce2bbe163848819aa
tree38371508f25a3ac9542bf3ef8a9326c76a6468ab
parent348bae08c18c66974533dde20ba3c426e881f929
DecodeSignal: Reset and re-use existing decoder sessions

Instead of destroying and re-creating decoder sessions, re-use
previously created sessions by just terminating their current work and
resetting internal state.

This implementation most proboably is incomplete in respect of changes
to the stack hierarchy or individual decoders' properties. This needs
more attention. When the stack is kept but its configuration has changed,
the involved properties need to get "somehow applied to" the stack's
instances before re-using it with new input data will yield correct results.
pv/data/decodesignal.cpp
pv/data/decodesignal.hpp