#[repr(u32)]pub enum InterlaceType {
UndefinedInterlace = 0,
NoInterlace = 1,
LineInterlace = 2,
PlaneInterlace = 3,
PartitionInterlace = 4,
Unknown = 4_294_967_295,
}Expand description
InterlaceType specifies the ordering of the red, green, and blue pixel information in the image. Interlacing is usually used to make image information available to the user faster by taking advantage of the space vs time tradeoff. For example, interlacing allows images on the Web to be recognizable sooner and satellite images to accumulate/render with image resolution increasing over time.
Use LineInterlace or PlaneInterlace to create an interlaced GIF or progressive JPEG image.
Variants§
UndefinedInterlace = 0
Unset value.
NoInterlace = 1
Don’t interlace image (RGBRGBRGBRGBRGBRGB…)
LineInterlace = 2
Use scanline interlacing (RRR…GGG…BBB…RRR…GGG…BBB…)
PlaneInterlace = 3
Use plane interlacing (RRRRRR…GGGGGG…BBBBBB…)
PartitionInterlace = 4
Similar to plane interlaing except that the different planes are saved to individual files (e.g. image.R, image.G, and image.B)
Unknown = 4_294_967_295
Trait Implementations§
Source§impl Clone for InterlaceType
impl Clone for InterlaceType
Source§fn clone(&self) -> InterlaceType
fn clone(&self) -> InterlaceType
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InterlaceType
impl Debug for InterlaceType
Source§impl From<InterlaceType> for u32
impl From<InterlaceType> for u32
Source§fn from(enum_value: InterlaceType) -> Self
fn from(enum_value: InterlaceType) -> Self
Source§impl From<u32> for InterlaceType
impl From<u32> for InterlaceType
Source§impl FromPrimitive for InterlaceType
impl FromPrimitive for InterlaceType
Source§impl PartialEq for InterlaceType
impl PartialEq for InterlaceType
impl Copy for InterlaceType
impl Eq for InterlaceType
impl StructuralPartialEq for InterlaceType
Auto Trait Implementations§
impl Freeze for InterlaceType
impl RefUnwindSafe for InterlaceType
impl Send for InterlaceType
impl Sync for InterlaceType
impl Unpin for InterlaceType
impl UnwindSafe for InterlaceType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)