Struct x264::Setup

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

Builds a new encoder.

Implementations§

Creates a new builder with the specified preset and tune.

Makes the first pass faster.

The video’s framerate, represented as a rational number.

The value is in frames per second.

The encoder’s timebase, used in rate control with timestamps.

The value is in seconds per tick.

Enable/disable Annex B start codes. Defaults to true.

Annex B start codes are not used by containers based on the ISO BMFF (Base Media File Format), such as MP4 and MOV.

Approximately restricts the bitrate.

The value is in metric kilobits per second.

The lowest profile, with guaranteed compatibility with all decoders.

A useless middleground between the baseline and high profiles.

The highest profile, which almost all encoders support.

Set the maximum number of frames between keyframes.

Set the minimum number of frames between keyframes.

Set the scenecut threshold. Set this to zero to guarantee a keyframe every max_keyframe_interval.

Build the encoder.

Trait Implementations§

Returns the “default value” for a 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.