pub struct DecodedFrame {
pub pixels: FramePixels,
pub duration: Duration,
}Expand description
DecodedFrame is one complete frame as a decoder produced it, before it becomes an image.
Fields§
§pixels: FramePixelspixels is where the frame lives: CPU memory or a texture on the request’s device.
duration: Durationduration is how long the frame stays on screen; zero for a still image or when the file
gives no delay.
Implementations§
Source§impl DecodedFrame
impl DecodedFrame
Sourcepub fn still(pixels: FramePixels) -> Self
pub fn still(pixels: FramePixels) -> Self
still is a frame with no on-screen duration, the shape of every still image.
Auto Trait Implementations§
impl !RefUnwindSafe for DecodedFrame
impl !UnwindSafe for DecodedFrame
impl Forget for DecodedFrame
impl Freeze for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnsafeUnpin for DecodedFrame
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