Enum CompressionMethod
#[non_exhaustive]
#[repr(u16)]
pub enum CompressionMethod
See TIFF compression tags for reference.
Variants
-
None = 1 -
Huffman = 2 -
Fax3 = 3 -
Fax4 = 4 -
LZW = 5 -
JPEG = 6 -
ModernJPEG = 7 -
Deflate = 8 -
OldDeflate = 0x80B2 -
PackBits = 0x8005 -
ZSTD = 0xC350 -
WebP = 0xC351 -
Unknown(u16) A custom compression method
Implementations
impl CompressionMethod
const fn from_u16(val: u16) -> Option<Self>const fn from_u16_exhaustive(unknown: u16) -> Selfconst fn to_u16(&self) -> u16
Trait Implementations
impl Clone for CompressionMethod
fn clone(&self) -> Self
impl Copy for CompressionMethod
impl Debug for CompressionMethod
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for CompressionMethod
impl Hash for CompressionMethod
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for CompressionMethod
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for CompressionMethod
impl TiffValue for CompressionMethod
const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN;const FIELD_TYPE: Type = Type::SHORT;fn count(&self) -> usizefn data(&self) -> Cow<'_, [u8]>