pub enum Compression {
None,
Lzw,
Deflate,
PackBits,
}Expand description
How pixel data is compressed (TIFF 6.0 §Section 8, plus §Deflate).
Variants§
None
Stored uncompressed.
Lzw
LZW, TIFF’s dialect.
Deflate
The Deflate extension, both the official and the old Adobe tag.
PackBits
PackBits run-length encoding, which baseline TIFF requires.
Implementations§
Source§impl Compression
impl Compression
Sourcepub fn from_tag(value: u32) -> Result<Self>
pub fn from_tag(value: u32) -> Result<Self>
The scheme for a Compression tag value.
§Errors
Returns PixelsError::Unsupported for a scheme this codec does not
implement — CCITT fax and old-style JPEG, principally. That is an
unsupported layout, not an exotic tag, so it is reported rather than
skipped: the pixels cannot be produced without it.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
impl Copy for Compression
Source§impl Debug for Compression
impl Debug for Compression
impl Eq for Compression
Source§impl Hash for Compression
impl Hash for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnsafeUnpin for Compression
impl UnwindSafe for Compression
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