X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Flogicsnapshot.h;h=0f6f410c962487dd8828bda493e86fe33670e050;hb=1d7edbbdee97217630fed14cc39883d715633f26;hp=ecff5edc089c61846c400c400cb7c1192303a8fa;hpb=ed990f118d154cd487261d23986b7ad0ba4e24fe;p=pulseview.git diff --git a/pv/data/logicsnapshot.h b/pv/data/logicsnapshot.h index ecff5ed..0f6f410 100644 --- a/pv/data/logicsnapshot.h +++ b/pv/data/logicsnapshot.h @@ -58,7 +58,8 @@ public: typedef std::pair EdgePair; public: - LogicSnapshot(const sr_datafeed_logic &logic); + LogicSnapshot(const sr_datafeed_logic &logic, + uint64_t expected_num_samples = 0); virtual ~LogicSnapshot(); @@ -68,6 +69,9 @@ public: int64_t start_sample, int64_t end_sample) const; private: + uint64_t unpack_sample(const uint8_t *ptr) const; + void pack_sample(uint8_t *ptr, uint64_t value); + void reallocate_mipmap_level(MipMapLevel &m); void append_payload_to_mipmap();