pub struct ThumbnailConfig {
pub width: u32,
pub height: u32,
pub format: ThumbnailFormat,
pub quality: u8,
pub count: usize,
pub interval_strategy: ThumbnailStrategy,
}Expand description
Configuration for thumbnail generation.
Fields§
§width: u32Width of each thumbnail in pixels.
height: u32Height of each thumbnail in pixels.
format: ThumbnailFormatOutput image format.
quality: u8Quality hint (0–100). Interpretation depends on the format.
count: usizeNumber of thumbnails to generate (ignored for AtTimestamps).
interval_strategy: ThumbnailStrategyStrategy for selecting frame timestamps.
Implementations§
Source§impl ThumbnailConfig
impl ThumbnailConfig
Sourcepub fn default_web() -> Self
pub fn default_web() -> Self
Creates a sensible default config suitable for web use (320×180 JPEG).
Sourcepub fn sprite_sheet(count: usize) -> Self
pub fn sprite_sheet(count: usize) -> Self
Creates a config appropriate for building a sprite sheet with the given thumbnail count.
Trait Implementations§
Source§impl Clone for ThumbnailConfig
impl Clone for ThumbnailConfig
Source§fn clone(&self) -> ThumbnailConfig
fn clone(&self) -> ThumbnailConfig
Returns a duplicate 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 ThumbnailConfig
impl RefUnwindSafe for ThumbnailConfig
impl Send for ThumbnailConfig
impl Sync for ThumbnailConfig
impl Unpin for ThumbnailConfig
impl UnsafeUnpin for ThumbnailConfig
impl UnwindSafe for ThumbnailConfig
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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