struct srd_decoder_annotation_row;
struct srd_probe;
struct srd_proto_data;
+struct srd_session;
namespace DecoderStackTest {
class TwoDecoderStack;
namespace pv {
+class SigSession;
+
namespace view {
class LogicSignal;
}
namespace data {
+class LogicSnapshot;
+
namespace decode {
class Annotation;
class Decoder;
static const int64_t DecodeChunkLength;
public:
- DecoderStack(const srd_decoder *const decoder);
+ DecoderStack(pv::SigSession &_session,
+ const srd_decoder *const decoder);
virtual ~DecoderStack();
void begin_decode();
private:
+ void decode_data(
+ const boost::shared_ptr<pv::data::LogicSnapshot> &snapshot,
+ srd_session *const session);
+
void decode_proc(boost::shared_ptr<data::Logic> data);
static void annotation_callback(srd_proto_data *pdata,
void *decoder);
+private slots:
+ void on_new_frame();
+
signals:
void new_decode_data();
private:
+ pv::SigSession &_session;
/**
* This mutex prevents more than one decode operation occuring
std::list< boost::shared_ptr<decode::Decoder> > _stack;
- mutable boost::mutex _mutex;
+ mutable boost::mutex _output_mutex;
int64_t _samples_decoded;
std::map<const decode::Row, decode::RowData> _rows;