Repository navigation
Cellar v1.1.1
Two fixes found while building a video editor on Cellar:
- Cellar loads in an AudioWorklet. Importing the library made a text decoder at once, and an AudioWorklet has none, so a worklet that imported Cellar never registered. Nothing is taken from the host until it is used; a worklet reads a ring from its
process()withdrainorpeek, never a wait. - Large frames handed to the browser.
VideoFrame.copyTo,GPUQueue.writeTextureand OPFS refuse memory that can grow, and a body larger than a quarter ofsegmentByteswas placed in memory that can. A body reserved withreserveFlags({ fixed: true })now always lies in fixed memory, up to a whole segment; one larger is refused at once. A 4K frame needs segments of 32 MiB, not 128 MiB.