X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fanalogsegment.hpp;h=df25f0b74a669109663a08e0df4dbeff3b5a7641;hp=7c74e77678c6e5693f9465dd0bfd221b46c71c3d;hb=65c92359634f672e5f472a5214719dabc7e20883;hpb=8e9e525e01e9cb4d05912a7adce0e6f2f910b90a diff --git a/pv/data/analogsegment.hpp b/pv/data/analogsegment.hpp index 7c74e776..df25f0b7 100644 --- a/pv/data/analogsegment.hpp +++ b/pv/data/analogsegment.hpp @@ -38,12 +38,6 @@ namespace data { class Analog; -typedef struct { - uint64_t sample_index, chunk_num, chunk_offs; - uint8_t* chunk; - float* value; -} SegmentAnalogDataIterator; - 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;