histogram: implemented color management

This commit is contained in:
itsmattkc
2020-04-21 01:59:06 +10:00
parent bdb13e88f5
commit 0ced48d4df
11 changed files with 68 additions and 11 deletions
+5
View File
@@ -94,6 +94,11 @@ void ScopePanel::SetBuffer(Frame *frame)
histogram_->SetBuffer(frame);
}
void ScopePanel::SetColorProcessor(ColorProcessorPtr processor)
{
histogram_->SetColorProcessor(processor);
}
void ScopePanel::Retranslate()
{
SetTitle(tr("Scope"));
+2
View File
@@ -54,6 +54,8 @@ public slots:
void SetBuffer(Frame* frame);
void SetColorProcessor(ColorProcessorPtr processor);
protected:
virtual void Retranslate() override;
+1
View File
@@ -107,6 +107,7 @@ void ViewerPanelBase::CreateScopePanel(ScopePanel::Type type)
// Connect viewer widget texture drawing to scope panel
connect(vw, &ViewerWidget::DrewManagedTexture, p, &ScopePanel::DrewManagedTexture);
connect(vw, &ViewerWidget::LoadedBuffer, p, &ScopePanel::SetBuffer);
connect(vw, &ViewerWidget::ColorProcessorChanged, p, &ScopePanel::SetColorProcessor);
if (!scope_panel_count_) {
vw->SetEmitDrewManagedTextureEnabled(true);