]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decoderstack.h
Paint the unresolved area to show the decode progress
[pulseview.git] / pv / data / decoderstack.h
index fe03df0aca3011f4f0d1d2c3a116621b6068e23c..4de7ae4c24ab85cdfd9e93e52c465f8d3ed6d105 100644 (file)
@@ -76,6 +76,8 @@ public:
        void push(boost::shared_ptr<decode::Decoder> decoder);
        void remove(int index);
 
+       int64_t samples_decoded() const;
+
        const std::vector< boost::shared_ptr<pv::view::decode::Annotation> >
                annotations() const;
 
@@ -107,6 +109,7 @@ private:
        std::list< boost::shared_ptr<decode::Decoder> > _stack;
 
        mutable boost::mutex _mutex;
+       int64_t _samples_decoded;
        std::vector< boost::shared_ptr<pv::view::decode::Annotation> >
                _annotations;
        QString _error_message;