const uint64_t LogicSegment::MipMapDataUnit = 64*1024; // bytes
LogicSegment::LogicSegment(shared_ptr<Logic> logic, uint64_t samplerate,
- const uint64_t expected_num_samples) :
+ const uint64_t expected_num_samples) :
Segment(samplerate, logic->unit_size()),
last_append_sample_(0)
{
*/
bool supported_device = driver->config_check(
ConfigKey::LOGIC_ANALYZER, ConfigKey::DEVICE_OPTIONS) |
- driver->config_check(
+ driver->config_check(
ConfigKey::OSCILLOSCOPE, ConfigKey::DEVICE_OPTIONS);
if (supported_device)
const pv::util::Timestamp& end_time = view_->cursors()->second()->time();
const uint64_t start_sample = start_time.convert_to<double>() * samplerate;
- const uint64_t end_sample = end_time.convert_to<double>() * samplerate;
+ const uint64_t end_sample = end_time.convert_to<double>() * samplerate;
- sample_range = std::make_pair(start_sample, end_sample);
+ sample_range = std::make_pair(start_sample, end_sample);
} else {
sample_range = std::make_pair(0, 0);
}
const int unit_size = segment->unit_size();
assert(unit_size != 0);
- // Qt needs the progress values to fit inside an int. If they would
+ // Qt needs the progress values to fit inside an int. If they would
// not, scale the current and max values down until they do.
while ((sample_count_ >> progress_scale) > INT_MAX)
progress_scale ++;
namespace pv {
namespace view {
-const float Ruler::RulerHeight = 2.5f; // x Text Height
+const float Ruler::RulerHeight = 2.5f; // x Text Height
const int Ruler::MinorTickSubdivision = 4;
-const float Ruler::HoverArrowSize = 0.5f; // x Text Height
+const float Ruler::HoverArrowSize = 0.5f; // x Text Height
Ruler::Ruler(View &parent) :
MarginWidget(parent)
[](const shared_ptr<TraceTreeItem> &a, const shared_ptr<TraceTreeItem> &b) {
const auto aext = a->v_extents();
const auto bext = b->v_extents();
- return a->layout_v_offset() +
+ return a->layout_v_offset() +
(aext.first + aext.second) / 2 <
b->layout_v_offset() +
(bext.first + bext.second) / 2;
setHidden(true);
}
-} // namespace widgets
-} // namespace pv
+} // namespace widgets
+} // namespace pv