Struct x264::Setup [−][src]
pub struct Setup { /* fields omitted */ }
Builds a new encoder.
Methods
impl Setup
[src]
impl Setup
pub fn preset(
preset: Preset,
tune: Tune,
fast_decode: bool,
zero_latency: bool
) -> Self
[src]
pub fn preset(
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]
pub fn fastfirstpass(self) -> Self
Makes the first pass faster.
pub fn fps(self, num: u32, den: u32) -> Self
[src]
pub fn fps(self, num: u32, den: u32) -> Self
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]
pub fn timebase(self, num: u32, den: u32) -> Self
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]
pub fn annexb(self, annexb: bool) -> Self
Please file an issue if you know what this does, because I have no idea.
pub fn bitrate(self, bitrate: i32) -> Self
[src]
pub fn bitrate(self, bitrate: i32) -> Self
Approximately restricts the bitrate.
The value is in metric kilobits per second.
pub fn baseline(self) -> Self
[src]
pub fn baseline(self) -> Self
The lowest profile, with guaranteed compatibility with all decoders.
pub fn main(self) -> Self
[src]
pub fn main(self) -> Self
A useless middleground between the baseline and high profiles.
pub fn high(self) -> Self
[src]
pub fn high(self) -> Self
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]
pub fn build<C>(self, csp: C, width: i32, height: i32) -> Result<Encoder> where
C: Into<Encoding>,
Build the encoder.