Struct libwebp::boxed::WebpYuvBox

source ·
pub struct WebpYuvBox { /* private fields */ }
Expand description

A variant of WebpBox for return values from WebPDecodeYUV.

See WebPDecodeYUV for examples.

Implementations§

Creates WebpYuvBox from raw pointers.

Safety
  • y, u, v must be non-null.
  • The pointees must be valid as [u8].
  • The pointees must be exclusively accessible.
  • The head pointer of y must be freeable via WebPFree.
  • The pointees of u and v must be within the allocated area designated by the head pointer of y.

Turns WebpYuvBox into raw pointers without freeing anything.

Immutably deferences to the y slice.

Mutably deferences to the y slice.

Immutably deferences to the u slice.

Mutably deferences to the u slice.

Immutably deferences to the v slice.

Mutably deferences to the v slice.

Immutably, simultaneously dereferences to the y, u, and v slices.

Mutably, simultaneously dereferences to the y, u, and v slices.

Turns into a y pointer, discarding u, v slices.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.