X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Flogicsegment.cpp;h=b648f5d1c302af35c22c7c1dec35eaf08dee923e;hp=25aa2d0aa445bd2671129e60d51585f746dda6a2;hb=eae3bbbbfd35aef309c186e278ff7ab2d90f362a;hpb=04e1acc23e835018c3c13d8f29115cb285035151 diff --git a/pv/data/logicsegment.cpp b/pv/data/logicsegment.cpp index 25aa2d0a..b648f5d1 100644 --- a/pv/data/logicsegment.cpp +++ b/pv/data/logicsegment.cpp @@ -20,9 +20,9 @@ #include #include -#include -#include #include +#include +#include #include "logic.hpp" #include "logicsegment.hpp" @@ -33,7 +33,6 @@ using std::lock_guard; using std::recursive_mutex; using std::max; using std::min; -using std::pair; using std::shared_ptr; using std::vector; @@ -45,7 +44,7 @@ namespace data { const int LogicSegment::MipMapScalePower = 4; const int LogicSegment::MipMapScaleFactor = 1 << MipMapScalePower; const float LogicSegment::LogMipMapScaleFactor = logf(MipMapScaleFactor); -const uint64_t LogicSegment::MipMapDataUnit = 64*1024; // bytes +const uint64_t LogicSegment::MipMapDataUnit = 64 * 1024; // bytes LogicSegment::LogicSegment(pv::data::Logic& owner, unsigned int unit_size, uint64_t samplerate) : @@ -178,7 +177,7 @@ const uint8_t* LogicSegment::get_samples(int64_t start_sample, lock_guard lock(mutex_); - return get_raw_samples(start_sample, (end_sample-start_sample)); + return get_raw_samples(start_sample, (end_sample - start_sample)); } SegmentLogicDataIterator* LogicSegment::begin_sample_iteration(uint64_t start) @@ -258,7 +257,7 @@ void LogicSegment::append_payload_to_mipmap() // Compute higher level mipmaps for (unsigned int level = 1; level < ScaleStepCount; level++) { MipMapLevel &m = mip_map_[level]; - const MipMapLevel &ml = mip_map_[level-1]; + const MipMapLevel &ml = mip_map_[level - 1]; // Expand the data buffer to fit the new samples prev_length = m.length;