X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Flogicsegment.cpp;fp=pv%2Fdata%2Flogicsegment.cpp;h=cbaf54a47c132a3d192e530e59e5ee1f6efda586;hp=db2ce0548fcbedcd4023e7532bc4e999bf3b35a7;hb=c063290ac7189bdd15221450f598504f43286b43;hpb=db1aabc15dc8680673b943c2dd0f38a83c32a1d9 diff --git a/pv/data/logicsegment.cpp b/pv/data/logicsegment.cpp index db2ce05..cbaf54a 100644 --- a/pv/data/logicsegment.cpp +++ b/pv/data/logicsegment.cpp @@ -44,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) : @@ -177,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) @@ -257,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;