| 806 | } |
| 807 | |
| 808 | void |
| 809 | InspectorUI::onToggleSNR(void) |
| 810 | { |
| 811 | this->estimating = this->ui->snrButton->isChecked(); |
| 812 | |
| 813 | if (this->estimating) { |
| 814 | this->estimator.setSigma(1.f); |
| 815 | this->estimator.setAlpha(1.f / (this->decider.getIntervals())); |
| 816 | gettimeofday(&this->last_estimator_update, nullptr); |
| 817 | } else { |
| 818 | std::vector<float> empty; |
| 819 | this->ui->histogram->setSNRModel(empty); |
| 820 | } |
| 821 | |
| 822 | this->ui->snrResetButton->setEnabled(this->estimating); |
| 823 | } |
| 824 | |
| 825 | void |
| 826 | InspectorUI::onResetSNR(void) |
nothing calls this directly
no test coverage detected