cache: began base implementation of "shifting" the cache

Should be a fairly important optimization to make.
This commit is contained in:
itsmattkc
2020-06-02 01:38:12 +10:00
parent 6acfe995fa
commit 11bfe61208
8 changed files with 154 additions and 0 deletions
+6
View File
@@ -87,6 +87,12 @@ QString ViewerOutput::Description() const
return tr("Interface between a Viewer panel and the node system.");
}
void ViewerOutput::ShiftCache(const rational &from, const rational &to)
{
video_frame_cache_.Shift(from, to);
audio_playback_cache_.Shift(from, to);
}
void ViewerOutput::InvalidateCache(const TimeRange &range, NodeInput *from, NodeInput *source)
{
emit GraphChangedFrom(source);
+2
View File
@@ -54,6 +54,8 @@ public:
virtual QList<CategoryID> Category() const override;
virtual QString Description() const override;
void ShiftCache(const rational& from, const rational& to);
NodeInput* texture_input() const {
return texture_input_;
}