pub enum Compression {
None,
CcittRle,
CcittGroup3Fax,
CcittGroup4Fax,
Lzw,
OldJpeg,
Jpeg,
Deflate,
PackBits,
}Expand description
A compression scheme applied to a strip or tile of image data.
The discriminants are documented with their on-disk Compression tag values.
Variants§
None
1 — no compression; samples are packed into bytes as tightly as possible.
CcittRle
2 — CCITT Group 3 1-Dimensional Modified Huffman run-length encoding (TIFF 6.0 §10).
CcittGroup3Fax
3 — CCITT T.4 (Group 3) bilevel fax encoding (TIFF 6.0 §11).
CcittGroup4Fax
4 — CCITT T.6 (Group 4) bilevel fax encoding (TIFF 6.0 §11).
Lzw
5 — LZW (TIFF 6.0 §13).
OldJpeg
6 — the deprecated old-style JPEG process (TIFF 6.0 §22).
Jpeg
7 — JPEG (the redefined “new-style” process; TIFF Technical Note 2).
Deflate
8 — Deflate/zlib (Adobe). Post-6.0 extension; out of the current campaign’s scope.
PackBits
32773 — PackBits, a simple byte-oriented run-length scheme (TIFF 6.0 §9).
Implementations§
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
Source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Compression
Source§impl Debug for Compression
impl Debug for Compression
Source§impl Default for Compression
impl Default for Compression
Source§fn default() -> Compression
fn default() -> Compression
Returns the “default value” for a type. Read more
impl Eq for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
Source§fn eq(&self, other: &Compression) -> bool
fn eq(&self, other: &Compression) -> bool
Tests for
self and other values to be equal, and is used by ==.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