#[non_exhaustive]pub struct EncodeReady { /* private fields */ }Expand description
Pixel data bundled with matching metadata, ready for encoding.
The only way to create an EncodeReady is through finalize_for_output,
which guarantees that the pixels and metadata are consistent.
Use into_parts() to destructure if needed, but
the default path keeps them coupled.
Implementations§
Source§impl EncodeReady
impl EncodeReady
Sourcepub fn pixels(&self) -> PixelSlice<'_>
pub fn pixels(&self) -> PixelSlice<'_>
Borrow the pixel data.
Sourcepub fn metadata(&self) -> &OutputMetadata
pub fn metadata(&self) -> &OutputMetadata
Borrow the output metadata.
Sourcepub fn into_parts(self) -> (PixelBuffer, OutputMetadata)
pub fn into_parts(self) -> (PixelBuffer, OutputMetadata)
Consume and split into pixel buffer and metadata.
Auto Trait Implementations§
impl Freeze for EncodeReady
impl RefUnwindSafe for EncodeReady
impl Send for EncodeReady
impl Sync for EncodeReady
impl Unpin for EncodeReady
impl UnsafeUnpin for EncodeReady
impl UnwindSafe for EncodeReady
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