Expand description
Exports driven on the host’s own threads: frame needs, decoded sources, the store the renderer reads, and the encoder sink.
Re-exports§
pub use crate::encode::PlaneBuffer;
Structs§
- Frame
Budget - A shared byte budget for one export, still run or preview. Clones see the same budget; the work reads it before every frame and evicts to fit.
- GpuSource
- A source picture on the GPU, with the work it still waits on before it may be sampled.
- Stream
Sources - Opens one
crate::video_stream::VideoStreamper cursor and keeps decoding forward while requests stay within the sequential gap, seeking otherwise. - Surface
Frame - A decoder surface and the import that turns it into a GPU source.
Enums§
- Export
Error - Why an export stopped.
- Export
Renderer - The renderer an export draws with.
- Source
Frame - A decoded source frame: planes in memory, or a platform surface the GPU renderer imports.
- Source
Frame Cache - Prepared frames for whichever renderer runs. Decoded source frames prepared for one renderer, kept within a byte budget: what an export or a preview renders from.
- Source
Stream - What a source decodes from: a video stream, or a still shown at every time.
Constants§
- MAX_
EXPORT_ REFILLS - Steps an export may wait on the same frame, refilling between them, before it fails: a frame still missing after this many refills will not arrive.
- MIN_
FRAME_ BYTES - Fewest bytes a budget halves to. A cache following the budget keeps at least its last frame’s
working set on top of this (
super::SourceFrameCache::follow), so the floor only bounds how much a run of memory warnings can take, not what a frame of any size needs.
Traits§
- Source
Frames - Decoded frames of the project’s sources, by need.
- Surface
Import - Turns a platform decoder’s surfaces into GPU sources: the GPU renderer’s path for frames that stay on the GPU, made by the platform that decodes them.
- Video
Sink - Where rendered pictures go: the video encoder.
Functions§
- export_
video - Renders every frame of
exporterintosink, decoding sources throughsources. - prepare_
cpu - Lends a decoded frame’s planes to the CPU renderer, drawn at
size. - prepare_
gpu - Uploads a decoded frame for the GPU renderer, drawn at
size. - prepare_
gpu_ planes - Prepares a frame whose planes are already GPU textures, drawn at
size;leasekeeps what the planes need until the renderer’s work on them completes.