finished hashing algorithm for cache
This commit is contained in:
@@ -127,6 +127,8 @@ void Block::Refresh()
|
||||
// Update out point by adding this clip's length to the just calculated in point
|
||||
out_point_ = in_point_ + length();
|
||||
|
||||
InvalidateCache(nullptr, in_point_, out_point_);
|
||||
|
||||
emit Refreshed();
|
||||
}
|
||||
|
||||
|
||||
@@ -103,3 +103,14 @@ void ClipBlock::InvalidateCache(NodeInput *from, const rational &start_range, co
|
||||
Node::InvalidateCache(from, start_range, end_range);
|
||||
}
|
||||
}
|
||||
|
||||
QList<NodeDependency> ClipBlock::RunDependencies(NodeOutput *output, const rational &time)
|
||||
{
|
||||
QList<NodeDependency> deps;
|
||||
|
||||
if (output == texture_output() && texture_input_->IsConnected()) {
|
||||
deps.append(NodeDependency(texture_input_->get_connected_output(), SequenceToMediaTime(time)));
|
||||
}
|
||||
|
||||
return deps;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
|
||||
virtual void InvalidateCache(NodeInput *from, const rational &start_range, const rational &end_range) override;
|
||||
|
||||
virtual QList<NodeDependency> RunDependencies(NodeOutput *output, const rational &time) override;
|
||||
|
||||
protected:
|
||||
virtual QVariant Value(NodeOutput* output, const rational& time) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user