pub struct MultiPassEncoder { /* private fields */ }Expand description
Multi-pass encoder controller.
Implementations§
Source§impl MultiPassEncoder
impl MultiPassEncoder
Sourcepub fn new(config: MultiPassConfig) -> Self
pub fn new(config: MultiPassConfig) -> Self
Creates a new multi-pass encoder controller.
Sourcepub fn pass_count(&self) -> u32
pub fn pass_count(&self) -> u32
Gets the total number of passes.
Sourcepub fn has_more_passes(&self) -> bool
pub fn has_more_passes(&self) -> bool
Checks if more passes are needed.
Sourcepub fn current_pass(&self) -> u32
pub fn current_pass(&self) -> u32
Gets the current pass number.
Sourcepub fn current_encoder_flags(&self) -> Vec<String>
pub fn current_encoder_flags(&self) -> Vec<String>
Gets the encoder flags for the current pass.
Sourcepub fn is_current_analysis_pass(&self) -> bool
pub fn is_current_analysis_pass(&self) -> bool
Checks if the current pass is an analysis pass.
Auto Trait Implementations§
impl Freeze for MultiPassEncoder
impl RefUnwindSafe for MultiPassEncoder
impl Send for MultiPassEncoder
impl Sync for MultiPassEncoder
impl Unpin for MultiPassEncoder
impl UnsafeUnpin for MultiPassEncoder
impl UnwindSafe for MultiPassEncoder
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 more