histogram: implemented color management
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -54,6 +54,8 @@ public slots:
|
||||
|
||||
void SetBuffer(Frame* frame);
|
||||
|
||||
void SetColorProcessor(ColorProcessorPtr processor);
|
||||
|
||||
protected:
|
||||
virtual void Retranslate() override;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user