pub struct Frame { /* private fields */ }
Implementations§
Source§impl Frame
impl Frame
pub fn image_descriptor(&self) -> &ImageDescriptor
pub fn local_color_map(&self) -> &Option<ColorMap>
Sourcepub fn raster_data(&self) -> &Vec<u8> ⓘ
pub fn raster_data(&self) -> &Vec<u8> ⓘ
Normal ColorMap index color mapping. Color maps / graphic control extension block usage is necessary to retrieve the pixel colors in rgba.
Sourcepub fn rgba_raster_data(&self) -> &Option<Vec<u8>>
pub fn rgba_raster_data(&self) -> &Option<Vec<u8>>
This is not a gif89a specification field, present only if requested in the decoding process. Every byte of the raster data expanded to 4 bytes (R G B A). Color maps / graphic control extension block has already been used internally to obtain this raster data representation.
pub fn graphic_control_extension(&self) -> &Option<GraphicControlExtension>
pub fn new( image_descriptor: ImageDescriptor, local_color_map: Option<ColorMap>, raster_data: Vec<u8>, rgba_raster_data: Option<Vec<u8>>, graphic_control_extension: Option<GraphicControlExtension>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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