cache: heavily reworked exporting for new system

Also cleans up cache in general and moves it to the Task infrastructure.
This commit is contained in:
itsmattkc
2020-05-19 23:35:17 +10:00
parent cd847a89ce
commit 87e7564222
18 changed files with 414 additions and 263 deletions
+17
View File
@@ -38,11 +38,28 @@ public:
public slots:
virtual bool Run() override;
protected:
virtual QFuture<void> DownloadFrame(FramePtr frame, const QByteArray &hash) override;
virtual void FrameDownloaded(const QByteArray& hash, const QLinkedList<rational>& times) override;
private:
QHash<QByteArray, FramePtr> rendered_frame_;
QHash<rational, FramePtr> time_map_;
QList< QFuture<bool> > write_frame_futures_;
ColorManager* color_manager_;
ExportParams params_;
Encoder* encoder_;
ColorProcessorPtr color_processor_;
int64_t frame_time_;
};
OLIVE_NAMESPACE_EXIT