pub struct ConvertOptions {
pub src: PathBuf,
pub out: PathBuf,
pub encoder: String,
pub crf: u32,
pub preset: String,
pub out_size: Option<(u32, u32)>,
pub scaler: String,
pub gif_fps: u32,
pub target_bytes: Option<u64>,
}Fields§
§src: PathBuf§out: PathBuf§encoder: String“auto” or an ffmpeg encoder name (see Settings.encoder / export::codec_args).
crf: u32§preset: String§out_size: Option<(u32, u32)>Rescale to this size (None = keep), with ffmpeg flags scaler (“neighbor” | “bilinear” | “bicubic”
| “lanczos” | “area” | “spline”).
scaler: String§gif_fps: u32GIF outputs: frame rate (default 15) and palette generation for quality.
target_bytes: Option<u64>Compression target in bytes. Some = bitrate mode: the video bitrate is derived from the source duration (minus a fixed audio allowance) and CRF is ignored. None = quality (CRF) mode.
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§fn clone(&self) -> ConvertOptions
fn clone(&self) -> ConvertOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnwindSafe for ConvertOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more