pub struct WebpEncodeSettings {
pub quality: u8,
pub max_fps: u32,
pub max_width: 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 targets a small, broadly compatible file: a couple of
megabytes, well under the 25 MB ceiling some players (e.g. 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: u32Cap on the output width in pixels; a wider source scales down keeping its aspect ratio, and a narrower one is never upscaled.
lossless: boolEncode losslessly (much larger); off by default.
compression: boolSpend extra effort compressing (smaller file, slower encode); on by default.
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 ==.