pub struct MultiFrames<'enc, 'prl, 'mm, U>(/* private fields */)
where
'prl: 'enc,
'mm: 'enc;Expand description
A wrapper type for encoding multiple frames
Implementations§
Source§impl<U: PixelType> MultiFrames<'_, '_, '_, U>
impl<U: PixelType> MultiFrames<'_, '_, '_, U>
Sourcepub fn add_frame<T: PixelType>(
self,
frame: &EncoderFrame<'_, T>,
) -> Result<Self, EncodeError>
pub fn add_frame<T: PixelType>( self, frame: &EncoderFrame<'_, T>, ) -> Result<Self, EncodeError>
Sourcepub fn add_jpeg_frame(self, data: &[u8]) -> Result<Self, EncodeError>
pub fn add_jpeg_frame(self, data: &[u8]) -> Result<Self, EncodeError>
Add a JPEG raw frame to the encoder
§Errors
Return EncodeError if the internal encoder fails to add a jpeg frame
Sourcepub fn encode(self) -> Result<EncoderResult<U>, EncodeError>
pub fn encode(self) -> Result<EncoderResult<U>, EncodeError>
Encode a JPEG XL image from the frames
§Errors
Return EncodeError if the internal encoder fails to encode
Auto Trait Implementations§
impl<'enc, 'prl, 'mm, U> !RefUnwindSafe for MultiFrames<'enc, 'prl, 'mm, U>
impl<'enc, 'prl, 'mm, U> !Sync for MultiFrames<'enc, 'prl, 'mm, U>
impl<'enc, 'prl, 'mm, U> !UnwindSafe for MultiFrames<'enc, 'prl, 'mm, U>
impl<'enc, 'prl, 'mm, U> Freeze for MultiFrames<'enc, 'prl, 'mm, U>
impl<'enc, 'prl, 'mm, U> Send for MultiFrames<'enc, 'prl, 'mm, U>where
U: Send,
impl<'enc, 'prl, 'mm, U> Unpin for MultiFrames<'enc, 'prl, 'mm, U>where
U: Unpin,
impl<'enc, 'prl, 'mm, U> UnsafeUnpin for MultiFrames<'enc, 'prl, 'mm, U>
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