pub struct AnimationFrame {
pub frame_x: usize,
pub frame_y: usize,
pub width: usize,
pub height: usize,
pub duration: usize,
pub alpha_blending: bool,
pub disopse: bool,
pub frame: Vec<u8>,
pub alpha: Option<Vec<u8>>,
}Expand description
One animation frame entry parsed from an ANMF chunk.
Fields§
§frame_x: usizeFrame x offset on the animation canvas in pixels.
frame_y: usizeFrame y offset on the animation canvas in pixels.
width: usizeFrame width in pixels.
height: usizeFrame height in pixels.
duration: usizeFrame duration in milliseconds.
alpha_blending: boolWhether the frame should be alpha-blended onto the canvas.
disopse: boolWhether the frame should be disposed to background after display.
frame: Vec<u8>Raw VP8 or VP8L frame payload.
alpha: Option<Vec<u8>>Optional raw ALPH payload associated with the frame.
Auto Trait Implementations§
impl Freeze for AnimationFrame
impl RefUnwindSafe for AnimationFrame
impl Send for AnimationFrame
impl Sync for AnimationFrame
impl Unpin for AnimationFrame
impl UnsafeUnpin for AnimationFrame
impl UnwindSafe for AnimationFrame
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