pub struct WebpEncodeSettings {
pub quality: u8,
pub max_fps: u32,
pub max_width: Option<u32>,
pub lossless: bool,
pub compression: bool,
}Expand description
Encoder settings for the animated WebP cover derived from a clip’s MP4 preview.
The Default turns encoder effort off so a full-resolution clip encodes
well under the ffmpeg timeout, since full effort can take minutes. The file
is larger as a result, but stays under the 25 MB ceiling some players such
as Symfonium place on embedded/sidecar art. A single hardcoded default is
used this phase behind one --animated-covers toggle; per-knob tuning is
deliberately not surfaced on the CLI.
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: boolSpend extra encoder effort: a smaller file, but far slower. Off by
default, because libwebp_anim at 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 ==.