[vlmc-devel] [PATCH 11/12] ConsoleRenderer: Don't remember rendering parameters.
Yikai Lu
luyikei.qmltu at gmail.com
Sun May 22 08:36:55 CEST 2016
---
src/Renderer/ConsoleRenderer.cpp | 16 +++++++++-------
src/Renderer/ConsoleRenderer.h | 6 ------
2 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/src/Renderer/ConsoleRenderer.cpp b/src/Renderer/ConsoleRenderer.cpp
index 164881d..ee45730 100644
--- a/src/Renderer/ConsoleRenderer.cpp
+++ b/src/Renderer/ConsoleRenderer.cpp
@@ -33,12 +33,6 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
QObject(parent)
{
m_outputFileName = qApp->arguments()[2];
- m_width = Core::instance()->project()->width();
- m_height = Core::instance()->project()->height();
- m_fps = Core::instance()->project()->fps();
- m_ar = Core::instance()->project()->aspectRatio();
- m_vbitrate = Core::instance()->project()->videoBitrate();
- m_abitrate = Core::instance()->project()->audioBitrate();
connect( Core::instance()->workflow(), &MainWorkflow::frameChanged,
this, &ConsoleRenderer::frameChanged);
connect( Core::instance()->workflowRenderer(), SIGNAL( renderComplete() ), qApp, SLOT( quit() ) );
@@ -61,5 +55,13 @@ ConsoleRenderer::frameChanged( qint64 frame ) const
void
ConsoleRenderer::startRender()
{
- Core::instance()->workflowRenderer()->startRenderToFile( m_outputFileName, m_width, m_height, m_fps, m_ar, m_vbitrate, m_abitrate );
+ auto project = Core::instance()->project();
+ Core::instance()->workflowRenderer()->startRenderToFile( m_outputFileName,
+ project->width(),
+ project->height(),
+ project->fps(),
+ project->aspectRatio(),
+ project->videoBitrate(),
+ project->audioBitrate()
+ );
}
diff --git a/src/Renderer/ConsoleRenderer.h b/src/Renderer/ConsoleRenderer.h
index 5b3c9cb..87306de 100644
--- a/src/Renderer/ConsoleRenderer.h
+++ b/src/Renderer/ConsoleRenderer.h
@@ -44,12 +44,6 @@ private slots:
private:
WorkflowFileRenderer *m_renderer;
QString m_outputFileName;
- quint32 m_width;
- quint32 m_height;
- double m_fps;
- quint32 m_vbitrate;
- quint32 m_abitrate;
- QString m_ar;
};
#endif // CONSOLERENDERER_H
--
1.9.1
More information about the Vlmc-devel
mailing list