]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.cpp
New: analyse stopmotion video feed through color scopes
[kdenlive] / src / mainwindow.cpp
index ff4b5255aae3b335920db309529cb8cf3d01efd3..b9072cf9d02f49b484a026bc18a131903ad2a367 100644 (file)
@@ -3995,6 +3995,12 @@ void MainWindow::slotOpenStopmotion()
     if (m_stopmotion == NULL) {
         m_stopmotion = new StopmotionWidget(m_activeDocument->projectFolder(), m_stopmotion_actions->actions(), this);
         connect(m_stopmotion, SIGNAL(addOrUpdateSequence(const QString)), m_projectList, SLOT(slotAddOrUpdateSequence(const QString)));
+       for (int i = 0; i < m_scopesList.count(); i++) {
+           // Check if we need the renderer to send a new frame for update
+           /*if (!m_scopesList.at(i)->widget()->visibleRegion().isEmpty() && !(static_cast<AbstractScopeWidget *>(m_scopesList.at(i)->widget())->autoRefreshEnabled())) request = true;*/
+           connect(m_stopmotion, SIGNAL(gotFrame(QImage)), static_cast<AbstractScopeWidget *>(m_scopesList.at(i)->widget()), SLOT(slotRenderZoneUpdated(QImage)));
+           //static_cast<AbstractScopeWidget *>(m_scopesList.at(i)->widget())->slotMonitorCapture();
+       }
     }
     m_stopmotion->show();
 }