Footage cache (#3271): faster OpenEXR reads and disk plane hits

- The reader reads the next batch of chunks while the one before
  decompresses, reads chunks that follow each other in the file in one
  request, starts with a small batch so decoding begins early, places
  the planes in parallel, and converts half samples a slice at a time.
- A plane entry stores a half channel as half floats when every value
  round-trips bit for bit (NaN planes and float data stay f32), with a
  plain byte-plane shuffle; one entry per channel, read in parallel on a
  hit. Old multi-plane entries (format 5) read as misses.
- The planes of one decode go to the disk writer as one job that shares
  the plane store's set instead of a copy per channel; the queue counts
  their bytes once the store lets go of them.
- The plane store loses its unused level, and one eviction loop serves
  the budget and the memory accountant; dropping for bytes keeps
  remembered failures.
This commit is contained in:
vangel76 committed 2026-11-08 06:01:48 +01:00
1 parent 6f498a09eb
commit dfe9aedfe4
7 files changed
+473 -228

No files matched your search

Generated
+2
View File
@@ -1762,6 +1762,7 @@ dependencies = [
"filmcraft-mpegts",
"filmcraft-time",
"gif",
"half",
"image",
"log",
"rayon",
@@ -1874,6 +1875,7 @@ dependencies = [
"effectcraft-raster",
"effectcraft-text",
"effectcraft-time",
"half",
"kurbo",
"log",
"lz4_flex",