Struct jpegxl_rs::MultiFrames[][src]

pub struct MultiFrames<'a, U>(_, _);

A wrapper type for encoding multiple frames

Implementations

impl<'a, U: PixelType> MultiFrames<'a, U>[src]

pub fn add_frame<T: PixelType>(
    &self,
    frame: &EncoderFrame<'_, T>
) -> Result<&Self, EncodeError>
[src]

Add a frame to the encoder

Errors

Return EncodeError if the internal encoder fails to add a frame

pub fn add_jpeg_frame(&self, data: &[u8]) -> Result<&Self, EncodeError>[src]

Add a JPEG raw frame to the encoder

Errors

Return EncodeError if the internal encoder fails to add a jpeg frame

pub fn encode(&self) -> Result<EncoderResult<U>, EncodeError>[src]

Encode a JPEG XL image from the frames

Errors

Return EncodeError if the internal encoder fails to encode

Auto Trait Implementations

impl<'a, U> !RefUnwindSafe for MultiFrames<'a, U>

impl<'a, U> !Send for MultiFrames<'a, U>

impl<'a, U> !Sync for MultiFrames<'a, U>

impl<'a, U> Unpin for MultiFrames<'a, U> where
    U: Unpin

impl<'a, U> !UnwindSafe for MultiFrames<'a, U>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.