vector<decode::Row> get_visible_rows() const;
+ /**
+ * Helper function for static annotation_callback(),
+ * must be public so the function can access it.
+ * Don't use from outside this class.
+ */
+ uint64_t inc_annotation_count();
+
/**
* Extracts sorted annotations between two period into a vector.
*/
void decode_proc();
- static void annotation_callback(srd_proto_data *pdata, void *decoder);
+ static void annotation_callback(srd_proto_data *pdata, void *decoder_stack);
private Q_SLOTS:
void on_new_frame();
void on_frame_ended();
Q_SIGNALS:
- void new_decode_data();
+ void new_annotations();
private:
pv::Session &session_;
mutable mutex input_mutex_;
mutable condition_variable input_cond_;
- int64_t sample_count_;
+ int64_t sample_count_, annotation_count_;
bool frame_complete_;
mutable mutex output_mutex_;