pub struct ThumbnailExtConfig {
pub base: ThumbnailConfig,
pub quality_profile: ThumbnailQualityProfile,
pub generate_sprite_sheet: bool,
pub generate_vtt: bool,
pub generate_animated: bool,
pub animated_frame_duration_ms: u64,
pub animated_max_frames: usize,
}Expand description
Extended thumbnail configuration with quality profile support.
Fields§
§base: ThumbnailConfigBase configuration.
quality_profile: ThumbnailQualityProfileQuality profile.
generate_sprite_sheet: boolWhether to generate a sprite sheet.
generate_vtt: boolWhether to generate a WebVTT file for the sprite sheet.
generate_animated: boolWhether to generate an animated preview.
animated_frame_duration_ms: u64Frame duration for animated thumbnails (milliseconds).
animated_max_frames: usizeMaximum number of frames in the animated thumbnail.
Implementations§
Source§impl ThumbnailExtConfig
impl ThumbnailExtConfig
Sourcepub fn from_profile(profile: ThumbnailQualityProfile, count: usize) -> Self
pub fn from_profile(profile: ThumbnailQualityProfile, count: usize) -> Self
Creates a new extended config from a quality profile.
Sourcepub fn with_animated(self, max_frames: usize, frame_duration_ms: u64) -> Self
pub fn with_animated(self, max_frames: usize, frame_duration_ms: u64) -> Self
Enables animated thumbnail generation.
Sourcepub fn without_sprite_sheet(self) -> Self
pub fn without_sprite_sheet(self) -> Self
Disables sprite sheet generation.
Trait Implementations§
Source§impl Clone for ThumbnailExtConfig
impl Clone for ThumbnailExtConfig
Source§fn clone(&self) -> ThumbnailExtConfig
fn clone(&self) -> ThumbnailExtConfig
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 ThumbnailExtConfig
impl RefUnwindSafe for ThumbnailExtConfig
impl Send for ThumbnailExtConfig
impl Sync for ThumbnailExtConfig
impl Unpin for ThumbnailExtConfig
impl UnsafeUnpin for ThumbnailExtConfig
impl UnwindSafe for ThumbnailExtConfig
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