framehashcache: remove code for saving integer-based frames to cache

Since we don't allow non-float cached frames now, there's no need to have
this code complicating the codebase.
This commit is contained in:
itsmattkc
2020-06-10 14:12:26 +10:00
parent 71ec148e76
commit a9a13c4b0c
6 changed files with 51 additions and 110 deletions
+2 -2
View File
@@ -233,10 +233,10 @@ void RenderWorker::ProcessNodeEvent(const Node *node, const TimeRange &range, No
if (node->id() == QStringLiteral("org.olivevideoeditor.Olive.videoinput")) {
QByteArray hash = RenderBackend::HashNode(node, video_params(), range.in());
QString fn = FrameHashCache::CachePathName(hash, video_params_.format());
QString fn = FrameHashCache::CachePathName(hash);
if (QFileInfo::exists(fn)) {
FramePtr f = FrameHashCache::LoadCacheFrame(hash, video_params_.format());
FramePtr f = FrameHashCache::LoadCacheFrame(hash);
QVariant cached = CachedFrameToTexture(f);