pub struct SoftwarePipeline { /* private fields */ }Expand description
Software rendering pipeline with proper style inheritance
Implementations§
Source§impl SoftwarePipeline
impl SoftwarePipeline
Sourcepub fn with_dimensions(width: f32, height: f32) -> Self
pub fn with_dimensions(width: f32, height: f32) -> Self
Create with specific dimensions
Sourcepub fn set_dpi_scale(&mut self, scale: f32)
pub fn set_dpi_scale(&mut self, scale: f32)
Set DPI scale factor (default is 0.9 for libass compatibility) Use 1.0 for 96 DPI, 0.9 for empirically matched libass rendering
Trait Implementations§
Source§impl Default for SoftwarePipeline
impl Default for SoftwarePipeline
Source§impl Pipeline for SoftwarePipeline
impl Pipeline for SoftwarePipeline
Source§fn prepare_script(
&mut self,
script: &Script<'_>,
analysis: Option<&ScriptAnalysis<'_>>,
) -> Result<(), RenderError>
fn prepare_script( &mut self, script: &Script<'_>, analysis: Option<&ScriptAnalysis<'_>>, ) -> Result<(), RenderError>
Prepare the pipeline with a script
Source§fn process_events(
&mut self,
events: &[&Event<'_>],
time_cs: u32,
context: &RenderContext,
) -> Result<Vec<IntermediateLayer>, RenderError>
fn process_events( &mut self, events: &[&Event<'_>], time_cs: u32, context: &RenderContext, ) -> Result<Vec<IntermediateLayer>, RenderError>
Process events into intermediate layers
Source§fn compute_dirty_regions(
&self,
events: &[&Event<'_>],
time_cs: u32,
prev_time_cs: u32,
) -> Result<Vec<DirtyRegion>, RenderError>
fn compute_dirty_regions( &self, events: &[&Event<'_>], time_cs: u32, prev_time_cs: u32, ) -> Result<Vec<DirtyRegion>, RenderError>
Compute dirty regions for incremental rendering
Auto Trait Implementations§
impl !RefUnwindSafe for SoftwarePipeline
impl !UnwindSafe for SoftwarePipeline
impl Freeze for SoftwarePipeline
impl Send for SoftwarePipeline
impl Sync for SoftwarePipeline
impl Unpin for SoftwarePipeline
impl UnsafeUnpin for SoftwarePipeline
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().