pub struct AnimationTranscodeOptions {
pub decode_limits: DecodeLimits,
pub resize: ResizeOptions,
pub encoder_config: EncoderConfigOverrides,
pub animation: AnimationMuxOverrides,
}Expand description
Compression and resize inputs for transcode_animated_webp.
The source animation’s loop count and raw background color are always copied to the output. Product-level quality defaults, output-selection policies, and process-wide resource budgets belong to the caller.
Fields§
§decode_limits: DecodeLimitsLimits for the one input animation sequence.
resize: ResizeOptionsFull-canvas resize operation derived from the source animation canvas.
encoder_config: EncoderConfigOverridesExplicit per-frame libwebp configuration overrides.
animation: AnimationMuxOverridesExplicit libwebp animation-mux configuration overrides.
Implementations§
Source§impl AnimationTranscodeOptions
impl AnimationTranscodeOptions
Sourcepub fn new(resize: ResizeOptions) -> Self
pub fn new(resize: ResizeOptions) -> Self
Creates a request with the supplied resize operation and no compression overrides beyond libwebp’s initialized defaults.
Trait Implementations§
Source§impl Clone for AnimationTranscodeOptions
impl Clone for AnimationTranscodeOptions
Source§fn clone(&self) -> AnimationTranscodeOptions
fn clone(&self) -> AnimationTranscodeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnimationTranscodeOptions
impl RefUnwindSafe for AnimationTranscodeOptions
impl Send for AnimationTranscodeOptions
impl Sync for AnimationTranscodeOptions
impl Unpin for AnimationTranscodeOptions
impl UnsafeUnpin for AnimationTranscodeOptions
impl UnwindSafe for AnimationTranscodeOptions
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