overhauled render classes to support video AND audio

Major refactoring work to try sharing as much code as possible between the
video renderers and audio renderers, as well as make them as
platform-independent as possible.
This commit is contained in:
itsmattkc
2019-11-15 13:50:58 +09:00
parent 9a44e656b5
commit 40b3879440
26 changed files with 628 additions and 299 deletions
+9 -1
View File
@@ -12,7 +12,6 @@ class RenderBackend : public QObject
Q_OBJECT
public:
RenderBackend(QObject* parent = nullptr);
virtual ~RenderBackend() override;
Q_DISABLE_COPY_MOVE(RenderBackend)
@@ -68,6 +67,12 @@ protected:
bool GenerateData(const TimeRange& range);
void InitWorkers();
virtual NodeInput* GetDependentInput() = 0;
virtual void ConnectWorkerToThis(RenderWorker* worker) = 0;
ViewerOutput* viewer_node() const;
DecoderCache* decoder_cache();
@@ -109,6 +114,9 @@ private:
qint64 cache_time_;
QString cache_id_;
private slots:
void ThreadRequestedSibling(NodeDependency dep);
};
#endif // RENDERBACKEND_H