improved backend encapsulation

Various backend improvements are included in this commit, mostly for the
benefit of exporting. These include:
- Moving more non-GL code from OpenGL derivatives into base classes
- An "export mode" that changes the cache behavior of video backends
- Using the Viewer's UUID introduced a few commits ago
- No longer hardcoding the pixel format/render mode in the backend (since
  they'll inevitably differ when exporting vs previewing)
- Improved signalling for frames that are completed
This commit is contained in:
itsmattkc
2019-12-20 04:35:31 +11:00
parent 757aaa21c4
commit 8ace197d66
10 changed files with 142 additions and 109 deletions
+4 -6
View File
@@ -25,10 +25,10 @@ public:
void SetViewerNode(ViewerOutput* viewer_node);
void SetCacheName(const QString& s);
bool IsInitiated();
ViewerOutput* viewer_node() const;
public slots:
virtual void InvalidateCache(const rational &start_range, const rational &end_range);
@@ -47,6 +47,8 @@ protected:
virtual void DecompileInternal() = 0;
virtual bool CanRender();
rational GetSequenceLength();
const QVector<QThread*>& threads();
@@ -76,8 +78,6 @@ protected:
virtual void ConnectWorkerToThis(RenderWorker* worker) = 0;
ViewerOutput* viewer_node() const;
bool ViewerIsConnected() const;
const QString& cache_id() const;
@@ -121,8 +121,6 @@ private:
*/
QString error_;
QString cache_name_;
qint64 cache_time_;
QString cache_id_;
QList<Node*> source_node_list_;