#[non_exhaustive]pub enum ExportOp {
EmitFrame(VideoFrame),
EmitAudio(Vec<f32>),
Raw {
format: &'static str,
payload: Vec<u8>,
},
EmitText(TextRun),
}Expand description
Output action at render time.
A crate::render::SceneSampler emits one or more of these per
sampled timestamp. Raster exports typically see a single
EmitFrame; vector exports (PDF) see a sequence of structured
drawing operations so the structural content survives.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmitFrame(VideoFrame)
Send a decoded video frame to the output.
EmitAudio(Vec<f32>)
Send a block of audio samples. Interleaved F32, scene-bus rate.
Raw
Raw format-specific output — the exporter gives this meaning.
PDF exporters stuff PDF operators in here (Tj glyph shows,
Do image draws, RG/f/S colour + fill/stroke).
EmitText(TextRun)
Emit a structured text run (font / glyph / position) so the downstream exporter can write selectable text instead of a rasterised glyph bitmap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExportOp
impl RefUnwindSafe for ExportOp
impl Send for ExportOp
impl Sync for ExportOp
impl Unpin for ExportOp
impl UnsafeUnpin for ExportOp
impl UnwindSafe for ExportOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more