X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fanalogsegment.hpp;h=df25f0b74a669109663a08e0df4dbeff3b5a7641;hp=5267e77e604ed27fa6f3d3ad09ea4779e9d1f3e3;hb=0df28cd5a727c5e4ff2c46e3258b76936bc0c33d;hpb=85a702806a15852f3684645dffdc38cb30274481 diff --git a/pv/data/analogsegment.hpp b/pv/data/analogsegment.hpp index 5267e77..df25f0b 100644 --- a/pv/data/analogsegment.hpp +++ b/pv/data/analogsegment.hpp @@ -38,13 +38,7 @@ namespace data { class Analog; -typedef struct { - uint64_t sample_index, chunk_num, chunk_offs; - uint8_t* chunk; - float* value; -} SegmentAnalogDataIterator; - -class AnalogSegment : public QObject, public Segment +class AnalogSegment : public Segment { Q_OBJECT @@ -90,9 +84,7 @@ public: const pair get_min_max() const; - SegmentAnalogDataIterator* begin_sample_iteration(uint64_t start); - void continue_sample_iteration(SegmentAnalogDataIterator* it, uint64_t increase); - void end_sample_iteration(SegmentAnalogDataIterator* it); + float* get_iterator_value_ptr(SegmentDataIterator* it); void get_envelope_section(EnvelopeSection &s, uint64_t start, uint64_t end, float min_length) const;