pub struct WebpEncodeSettings {
pub quality: u8,
pub max_fps: u32,
pub max_width: Option<u32>,
pub lossless: bool,
pub compression_level: u8,
}Expand description
Encoder settings for the animated WebP cover derived from a clip’s MP4 preview.
The Default turns encoder effort off (compression level 0) so a
full-resolution clip encodes well under the ffmpeg timeout, since full
effort can take minutes.
Fields§
§quality: u8Lossy encoder quality, 0-100 (higher is better and larger). Ignored when
lossless is set.
max_fps: u32Cap on the output frame rate; a faster source is downsampled to this.
max_width: Option<u32>Optional cap on the output width in pixels: Some(w) scales a wider
source down keeping its aspect ratio (never upscaling), while None
keeps the source resolution.
lossless: boolEncode losslessly (much larger); off by default.
compression_level: u8Encoder effort, 0-6 (higher is smaller and slower). 0 by default,
because full effort can take minutes on a full-resolution clip and
exceed the transcode timeout.
Trait Implementations§
Source§impl Clone for WebpEncodeSettings
impl Clone for WebpEncodeSettings
Source§fn clone(&self) -> WebpEncodeSettings
fn clone(&self) -> WebpEncodeSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WebpEncodeSettings
Source§impl Debug for WebpEncodeSettings
impl Debug for WebpEncodeSettings
Source§impl Default for WebpEncodeSettings
impl Default for WebpEncodeSettings
impl Eq for WebpEncodeSettings
Source§impl PartialEq for WebpEncodeSettings
impl PartialEq for WebpEncodeSettings
Source§fn eq(&self, other: &WebpEncodeSettings) -> bool
fn eq(&self, other: &WebpEncodeSettings) -> bool
self and other values to be equal, and is used by ==.