pub struct TranscodedAnimation {
pub bytes: Vec<u8>,
pub input: AnimationInfo,
pub output_canvas: CanvasSize,
pub frame_count: u32,
pub total_duration: Duration,
}Expand description
Result of a sequential animated-WebP transcode.
Fields§
§bytes: Vec<u8>Newly encoded animated WebP bytes.
input: AnimationInfoMetadata read from the stored source sequence and retained by encoding.
output_canvas: CanvasSizeCanvas dimensions of the encoded sequence.
frame_count: u32Number of frames decoded and encoded.
total_duration: DurationSum of the source frame durations passed through to the encoder.
Trait Implementations§
Source§impl Clone for TranscodedAnimation
impl Clone for TranscodedAnimation
Source§fn clone(&self) -> TranscodedAnimation
fn clone(&self) -> TranscodedAnimation
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 moreSource§impl Debug for TranscodedAnimation
impl Debug for TranscodedAnimation
Source§impl PartialEq for TranscodedAnimation
impl PartialEq for TranscodedAnimation
impl StructuralPartialEq for TranscodedAnimation
Auto Trait Implementations§
impl Freeze for TranscodedAnimation
impl RefUnwindSafe for TranscodedAnimation
impl Send for TranscodedAnimation
impl Sync for TranscodedAnimation
impl Unpin for TranscodedAnimation
impl UnsafeUnpin for TranscodedAnimation
impl UnwindSafe for TranscodedAnimation
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