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