pub struct GifFrameMeta {
pub delay_cs: u16,
pub disposal: DisposalMethod,
pub transparent: Option<u8>,
pub x: u16,
pub y: u16,
pub w: u16,
pub h: u16,
pub interlaced: bool,
pub local_palette: Option<Vec<[u8; 3]>>,
}Available on crate feature
gif only.Expand description
Per-frame descriptor metadata (before LZW decode / compositing).
Fields§
§delay_cs: u16Frame delay in centiseconds.
disposal: DisposalMethodWhat happens to this frame’s rectangle before the next one is drawn.
transparent: Option<u8>The palette index drawn as transparent, if any.
x: u16Left edge of the frame’s rectangle on the canvas.
y: u16Top edge of the frame’s rectangle on the canvas.
w: u16Width of the frame’s rectangle.
h: u16Height of the frame’s rectangle.
interlaced: boolWhether rows are stored in the four-pass interlaced order.
local_palette: Option<Vec<[u8; 3]>>The frame’s own colour table, overriding the global one.
Trait Implementations§
Source§impl Clone for GifFrameMeta
impl Clone for GifFrameMeta
Source§impl Debug for GifFrameMeta
impl Debug for GifFrameMeta
impl Eq for GifFrameMeta
Source§impl PartialEq for GifFrameMeta
impl PartialEq for GifFrameMeta
impl StructuralPartialEq for GifFrameMeta
Auto Trait Implementations§
impl Forget for GifFrameMeta
impl Freeze for GifFrameMeta
impl Move for GifFrameMeta
impl RefUnwindSafe for GifFrameMeta
impl Send for GifFrameMeta
impl Sync for GifFrameMeta
impl Unpin for GifFrameMeta
impl UnsafeUnpin for GifFrameMeta
impl UnwindSafe for GifFrameMeta
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> 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