Struct x264::Image

source ·
pub struct Image<'a> { /* private fields */ }
Expand description

Input image data to be given to the encoder.

Implementations§

Makes a new image with the given information.

Panics

Panics if the plane is invalid.

Makes a new packed BGR image.

Makes a new packed RGB image.

Makes a new packed BGRA image.

Makes a new image with the given planes and colorspace.

Unsafety

The caller must ensure that the plane fulfils all the invariants that x264 expects it to fulfil. I don’t actually know what all of those are, but the source of Encoder::new is my best guess.

The width of the image.

The height of the image.

The encoding of the image.

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.