Skip to main content

Module export

Module export 

Source
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§

FrameBudget
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.
StreamSources
Opens one crate::video_stream::VideoStream per cursor and keeps decoding forward while requests stay within the sequential gap, seeking otherwise.
SurfaceFrame
A decoder surface and the import that turns it into a GPU source.

Enums§

ExportError
Why an export stopped.
ExportRenderer
The renderer an export draws with.
SourceFrame
A decoded source frame: planes in memory, or a platform surface the GPU renderer imports.
SourceFrameCache
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.
SourceStream
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§

SourceFrames
Decoded frames of the project’s sources, by need.
SurfaceImport
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.
VideoSink
Where rendered pictures go: the video encoder.

Functions§

export_video
Renders every frame of exporter into sink, decoding sources through sources.
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; lease keeps what the planes need until the renderer’s work on them completes.