← back to roto on ba3a.dev

RasterBackedSequenceCacheCodec

open class RasterBackedSequenceCacheCodec<T : Any>(toRaster: (T) -> Raster, fromRaster: (Raster) -> T) : CacheCodec<List<T>>

A sequence of per-frame values that each convert to and from one Raster, stored through RasterSequenceCacheCodec: masks, label maps.

Inheritors

Constructors

Link copied to clipboard
constructor(toRaster: (T) -> Raster, fromRaster: (Raster) -> T)

Functions

Link copied to clipboard
open override fun read(entry: Path): List<T>

Reads back what write stored in entry; throws an IOException when the content is not what it left.

Link copied to clipboard
open override fun write(value: List<T>, entry: Path)

Stores value in entry, an empty folder.