X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=logicdatasnapshot.h;h=16e8eddef2b22f1ea635e3cb6e38e56dc494734c;hb=b3f22de060b73f15ad3eb2dabee04a0b4f5d947e;hp=630aad431879ebfe90a4df192e304dda174b6ad2;hpb=ecda6ca9b83e5ed9988c64ed9fc4e4a33b8a5457;p=pulseview.git diff --git a/logicdatasnapshot.h b/logicdatasnapshot.h index 630aad4..16e8edd 100644 --- a/logicdatasnapshot.h +++ b/logicdatasnapshot.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -24,8 +24,11 @@ #include namespace LogicDataSnapshotTest { + class Pow2; class Basic; class LargeData; + class Pulses; + class LongPulses; } class LogicDataSnapshot : public DataSnapshot @@ -78,13 +81,17 @@ public: float min_length, int sig_index); private: + uint64_t get_subsample(int level, uint64_t offset) const; - static inline int64_t pow2_ceil(int64_t x, int power); + static int64_t pow2_ceil(int64_t x, unsigned int power); private: struct MipMapLevel _mip_map[ScaleStepCount]; uint64_t _last_append_sample; + friend class LogicDataSnapshotTest::Pow2; friend class LogicDataSnapshotTest::Basic; friend class LogicDataSnapshotTest::LargeData; + friend class LogicDataSnapshotTest::Pulses; + friend class LogicDataSnapshotTest::LongPulses; };