Struct x264::Setup
[−]
[src]
pub struct Setup { /* fields omitted */ }
Builds a new encoder.
Methods
impl Setup
[src]
pub fn preset(
preset: Preset,
tune: Tune,
fast_decode: bool,
zero_latency: bool
) -> Self
[src]
preset: Preset,
tune: Tune,
fast_decode: bool,
zero_latency: bool
) -> Self
Creates a new builder with the specified preset and tune.
pub fn fastfirstpass(self) -> Self
[src]
Makes the first pass faster.
pub fn fps(self, num: u32, den: u32) -> Self
[src]
The video's framerate, represented as a rational number.
The value is in frames per second.
pub fn timebase(self, num: u32, den: u32) -> Self
[src]
The encoder's timebase, used in rate control with timestamps.
The value is in seconds per tick.
pub fn annexb(self, annexb: bool) -> Self
[src]
Please file an issue if you know what this does, because I have no idea.
pub fn bitrate(self, bitrate: i32) -> Self
[src]
Approximately restricts the bitrate.
The value is in metric kilobits per second.
pub fn baseline(self) -> Self
[src]
The lowest profile, with guaranteed compatibility with all decoders.
pub fn main(self) -> Self
[src]
A useless middleground between the baseline and high profiles.
pub fn high(self) -> Self
[src]
The highest profile, which almost all encoders support.
pub fn build<C>(self, csp: C, width: i32, height: i32) -> Result<Encoder> where
C: Into<Encoding>,
[src]
C: Into<Encoding>,
Build the encoder.