MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / get_captured_progress

Method get_captured_progress

DSView/pv/view/viewport.cpp:483–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void Viewport::get_captured_progress(double &progress, int &progress100)
484{
485 const uint64_t sample_limits = _view.session().cur_samplelimits();
486 progress = -(_sample_received * 1.0 / sample_limits * 360 * 16);
487 progress100 = ceil(progress / -3.6 / 16);
488}
489
490void Viewport::paintProgress(QPainter &p, QColor fore, QColor back)
491{

Callers

nothing calls this directly

Calls 2

cur_samplelimitsMethod · 0.80
sessionMethod · 0.80

Tested by

no test coverage detected