X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=logicdatasnapshot.h;h=16e8eddef2b22f1ea635e3cb6e38e56dc494734c;hb=b3f22de060b73f15ad3eb2dabee04a0b4f5d947e;hp=b68a9921a6ae7a1fed2a82958ed858c0a5a322d9;hpb=0b02e0578cf750906b20848d98e73b21c23eda42;p=pulseview.git diff --git a/logicdatasnapshot.h b/logicdatasnapshot.h index b68a992..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 * @@ -23,6 +23,14 @@ #include #include +namespace LogicDataSnapshotTest { + class Pow2; + class Basic; + class LargeData; + class Pulses; + class LongPulses; +} + class LogicDataSnapshot : public DataSnapshot { private: @@ -73,12 +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; + friend class LogicDataSnapshotTest::Pow2; + friend class LogicDataSnapshotTest::Basic; + friend class LogicDataSnapshotTest::LargeData; + friend class LogicDataSnapshotTest::Pulses; + friend class LogicDataSnapshotTest::LongPulses; };