finished hashing algorithm for cache

This commit is contained in:
itsmattkc
2019-09-02 19:51:31 +10:00
parent b563b9e783
commit e87ed9dd3d
12 changed files with 124 additions and 44 deletions
+8 -1
View File
@@ -83,6 +83,11 @@ public:
void SetDivider(const int& divider);
/**
* @brief Return whether a frame with this hash already exists
*/
bool HasHash(const QByteArray& hash);
/**
* @brief Return current instance of a RenderThread (or nullptr if there is none)
*
@@ -126,7 +131,7 @@ private:
/**
* @brief Return the path of the cached image at this time
*/
QString CachePathName(const rational& time);
QString CachePathName(const QByteArray &hash);
/**
* @brief Internal list of RenderProcessThreads
@@ -175,6 +180,8 @@ private:
RenderTexturePtr master_texture_;
QMap<rational, QByteArray> time_hash_map_;
private slots:
void ThreadCallback();