Struct x264_framing::Setup
[−]
[src]
pub struct Setup { /* fields omitted */ }
Used to build the encoder.
Methods
impl Setup
[src]
fn preset(
preset: Preset,
tune: Tune,
fast_decode: bool,
zero_latency: bool
) -> Self
preset: Preset,
tune: Tune,
fast_decode: bool,
zero_latency: bool
) -> Self
Begin with a preset.
In most cases, no further customization is necessary.
fn fastfirstpass(self) -> Self
The first pass will be faster, probably.
fn width(self, width: c_int) -> Self
The width of the video, in pixels. Set this!
fn height(self, height: c_int) -> Self
The height of the video, in pixels. Set this!
fn fps(self, num: u32, den: u32) -> Self
The video's FPS, represented as a rational number.
fn timebase(self, num: u32, den: u32) -> Self
The encoder's time base, used in rate control with timestamps.
fn annexb(self, annexb: bool) -> Self
If you need to know what this is, you already do.
fn bitrate(self, bitrate: c_int) -> Self
Approximately restricts the bitrate to somewhere in a huge ballpark.
fn baseline(self) -> Self
Use the baseline profile, in the event that your decoders are crippled.
fn main(self) -> Self
Please don't use this.
fn high(self) -> Self
Tells the encoder to use the high profile.
This restricts its wizardry to something lesser decoders can understand. You shouldn't need to do this most of the time, but do it anyway if you're paranoid.
fn build<F: Format>(self) -> Result<Encoder<F>, Error>
Builds the encoder.