began support of timeline tracks/channels

This commit is contained in:
itsmattkc
2019-08-15 23:40:22 +10:00
parent fb7c7f1bdb
commit 7d9d12ee0b
25 changed files with 831 additions and 373 deletions
+4 -1
View File
@@ -25,7 +25,6 @@
RendererProcessor::RendererProcessor() :
started_(false)
{
}
QString RendererProcessor::Name()
@@ -45,6 +44,8 @@ QString RendererProcessor::Description()
void RendererProcessor::Process(const rational &time)
{
Q_UNUSED(time)
/*
// Ensure we have started
Start();
@@ -52,6 +53,8 @@ void RendererProcessor::Process(const rational &time)
qWarning() << tr("An error occurred starting the Renderer node");
return;
}
*/
}
void RendererProcessor::Release()
+9 -9
View File
@@ -67,6 +67,15 @@ public:
*/
void SetParameters(const int& width, const int& height, const olive::PixelFormat& format);
/**
* @brief Return current instance of a RenderThread (or nullptr if there is none)
*
* This function attempts a dynamic_cast on QThread::currentThread() to RendererThread, which will return nullptr if
* the cast fails (e.g. if this function is called from the main thread rather than a RendererThread).
*/
static RendererThread *CurrentThread();
private:
/**
* @brief Allocate and start the multithreaded backend
*/
@@ -77,15 +86,6 @@ public:
*/
void Stop();
/**
* @brief Return current instance of a RenderThread (or nullptr if there is none)
*
* This function attempts a dynamic_cast on QThread::currentThread() to RendererThread, which will return nullptr if
* the cast fails (e.g. if this function is called from the main thread rather than a RendererThread).
*/
static RendererThread *CurrentThread();
private:
QVector<RendererThreadPtr> threads_;
bool started_;