Footage cache (#3271): decoded OpenEXR channels persist in the disk cache

A plane kind in the disk cache (planes/): named f32 planes, bit-exact, keyed by the source
file's path and identity, the channel set, the level and the rows; listing their source file,
so a changed file or Reload Footage drops them (the sweep covers planes). The plane store reads
them before decoding and queues what it decoded (encoded on the writer thread, refused when the
disk has no room or the file was dropped since the decode began). The footage source gets the
disk cache with set_disk_cache.
This commit is contained in:
vangel76 committed 2026-11-08 03:00:29 +01:00
1 parent 2ff51655e3
commit 8a3b15d41b
8 files changed
+260 -13

No files matched your search

@@ -130,6 +130,7 @@ impl Session {
self.disk_cache = None;
self.disk_watch = Default::default();
self.layer_cache.set_disk(None);
self.footage.set_disk_cache(None);
return;
};
// Tests: the Roto/Object Matte segment store below is one per process, so a test that
@@ -154,6 +155,7 @@ impl Session {
self.disk_cache = None;
self.disk_watch = Default::default();
self.layer_cache.set_disk(None);
self.footage.set_disk_cache(None);
return;
}
},
@@ -169,6 +171,8 @@ impl Session {
// Used at once (no file is looked at first: each entry checks the source files it lists
// when it is read, #3184).
self.layer_cache.set_disk(Some(dc.clone()));
// Decoded footage channels (OpenEXR planes) persist there too (#3271).
self.footage.set_disk_cache(Some(dc.clone()));
// Roto Brush / Object Matte segmentations persist there too (held weakly: switching the
// disk cache off drops it).
let store: std::sync::Arc<dyn effectcraft_effects::roto::SegStore> = dc.clone();