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 image(&self) -> FrameBuffer
pub fn image(&self) -> FrameBuffer
Creates a buffer with interleaved channels, with orientation applied.
Extra channels other than black and alpha are not included.
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.
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) -> &[SimpleGrid<f32>]
pub fn color_channels(&self) -> &[SimpleGrid<f32>]
Returns the color channels.
Orientation is not applied.
sourcepub fn color_channels_mut(&mut self) -> &mut [SimpleGrid<f32>]
pub fn color_channels_mut(&mut self) -> &mut [SimpleGrid<f32>]
Returns the mutable slice to the color channels.
Orientation is not applied.
sourcepub fn extra_channels(&self) -> &[ExtraChannel]
pub fn extra_channels(&self) -> &[ExtraChannel]
Returns the extra channels, potentially including alpha and black channels.
Orientation is not applied.
sourcepub fn extra_channels_mut(&mut self) -> &mut [ExtraChannel]
pub fn extra_channels_mut(&mut self) -> &mut [ExtraChannel]
Returns the mutable slice to the extra channels, potentially including alpha and black channels.
Orientation is not applied.