pub struct Render { /* private fields */ }
Expand description
The result of rendering a keyframe.
Implementations§
source§impl Render
impl Render
sourcepub fn keyframe_index(&self) -> usize
pub fn keyframe_index(&self) -> usize
Returns the keyframe index.
sourcepub fn orientation(&self) -> u32
pub fn orientation(&self) -> u32
Returns the orientation of the image.
sourcepub fn stream(&self) -> ImageStream<'_>
pub fn stream(&self) -> ImageStream<'_>
Creates a stream that writes to borrowed buffer.
The stream will include black and alpha channels, if exists, in addition to color channels. Orientation is applied.
sourcepub fn image_all_channels(&self) -> FrameBuffer
pub fn image_all_channels(&self) -> FrameBuffer
Creates a buffer with interleaved channels, with orientation applied.
All extra channels are included. Use stream
if only color, black and
alpha channels are needed.
sourcepub fn image_planar(&self) -> Vec<FrameBuffer>
pub fn image_planar(&self) -> Vec<FrameBuffer>
Creates a separate buffer by channel, with orientation applied.
All extra channels are included.
sourcepub fn color_channels(&self) -> &[ImageBuffer]
pub fn color_channels(&self) -> &[ImageBuffer]
Returns the color channels.
Orientation is not applied.
sourcepub fn extra_channels(&self) -> (&[ExtraChannel], &[ImageBuffer])
pub fn extra_channels(&self) -> (&[ExtraChannel], &[ImageBuffer])
Returns the extra channels, potentially including alpha and black channels.
Orientation is not applied.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Render
impl RefUnwindSafe for Render
impl Send for Render
impl Sync for Render
impl Unpin for Render
impl UnwindSafe for Render
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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