Skip to main content

TiffCommonTag

Enum TiffCommonTag 

Source
#[repr(u16)]
pub enum TiffCommonTag {
Show 85 variants PanaWidth = 2, PanaLength = 3, NefWB0 = 12, NrwWB = 20, NefSerial = 29, Cr2PowerShotWB = 41, NewSubFileType = 254, Cr2OldOffset = 129, NefMeta1 = 140, NefMeta2 = 150, NefWB1 = 151, Cr2OldWB = 164, NefKey = 167, ImageWidth = 256, ImageLength = 257, BitsPerSample = 258, SampleFormat = 339, RowsPerStrip = 278, XResolution = 282, YResolution = 283, ResolutionUnit = 296, Artist = 315, Compression = 259, PhotometricInt = 262, Make = 271, Model = 272, StripOffsets = 273, Orientation = 274, SamplesPerPixel = 277, StripByteCounts = 279, PanaOffsets = 280, GrayResponse = 291, Software = 305, Predictor = 317, TileWidth = 322, TileLength = 323, TileOffsets = 324, TileByteCounts = 325, SubIFDs = 330, PefBlackLevels = 512, PefWB = 513, PefHuffman = 544, Xmp = 700, DcrWB = 1_021, DcrLinearization = 2_317, EpsonWB = 3_712, KodakWB = 3_840, RafOldWB = 12_272, Cr2ColorData = 16_385, SonyCurve = 28_688, SonyOffset = 29_184, SonyLength = 29_185, SonyKey = 29_217, KodakIFD = 33_424, LeafMetadata = 34_310, ExifIFDPointer = 34_665, Makernote = 37_500, SrwSensorAreas = 40_976, Cr2Id = 50_648, DNGVersion = 50_706, Linearization = 50_712, BlackLevels = 50_714, WhiteLevel = 50_717, ColorMatrix1 = 50_721, ColorMatrix2 = 50_722, AsShotNeutral = 50_728, DNGPrivateArea = 50_740, Cr2StripeWidths = 50_752, ActiveArea = 50_829, MaskedAreas = 50_830, TimeCodes = 51_043, FrameFrate = 51_044, TStop = 51_058, RafRawSubIFD = 61_440, RafImageWidth = 61_441, RafImageLength = 61_442, RafBitsPerSample = 61_443, RafWBGRB = 61_454, KdcWB = 64_042, KdcWidth = 64_768, KdcLength = 64_769, KdcOffset = 64_772, KdcIFD = 65_024, CFAPattern = 33_422, CFARepeatPatternDim = 33_421,
}
Expand description

Common tags, generally used in root IFD or SubIFDs

Variants§

§

PanaWidth = 2

§

PanaLength = 3

§

NefWB0 = 12

§

NrwWB = 20

§

NefSerial = 29

§

Cr2PowerShotWB = 41

§

NewSubFileType = 254

§

Cr2OldOffset = 129

§

NefMeta1 = 140

§

NefMeta2 = 150

§

NefWB1 = 151

§

Cr2OldWB = 164

§

NefKey = 167

§

ImageWidth = 256

§

ImageLength = 257

§

BitsPerSample = 258

§

SampleFormat = 339

§

RowsPerStrip = 278

§

XResolution = 282

§

YResolution = 283

§

ResolutionUnit = 296

§

Artist = 315

§

Compression = 259

§

PhotometricInt = 262

§

Make = 271

§

Model = 272

§

StripOffsets = 273

§

Orientation = 274

§

SamplesPerPixel = 277

§

StripByteCounts = 279

§

PanaOffsets = 280

§

GrayResponse = 291

§

Software = 305

§

Predictor = 317

§

TileWidth = 322

§

TileLength = 323

§

TileOffsets = 324

§

TileByteCounts = 325

§

SubIFDs = 330

§

PefBlackLevels = 512

§

PefWB = 513

§

PefHuffman = 544

§

Xmp = 700

§

DcrWB = 1_021

§

DcrLinearization = 2_317

§

EpsonWB = 3_712

§

KodakWB = 3_840

§

RafOldWB = 12_272

§

Cr2ColorData = 16_385

§

SonyCurve = 28_688

§

SonyOffset = 29_184

§

SonyLength = 29_185

§

SonyKey = 29_217

§

KodakIFD = 33_424

§

LeafMetadata = 34_310

§

ExifIFDPointer = 34_665

§

Makernote = 37_500

§

SrwSensorAreas = 40_976

§

Cr2Id = 50_648

§

DNGVersion = 50_706

§

Linearization = 50_712

§

BlackLevels = 50_714

§

WhiteLevel = 50_717

§

ColorMatrix1 = 50_721

§

ColorMatrix2 = 50_722

§

AsShotNeutral = 50_728

§

DNGPrivateArea = 50_740

§

Cr2StripeWidths = 50_752

§

ActiveArea = 50_829

§

MaskedAreas = 50_830

§

TimeCodes = 51_043

§

FrameFrate = 51_044

§

TStop = 51_058

§

RafRawSubIFD = 61_440

§

RafImageWidth = 61_441

§

RafImageLength = 61_442

§

RafBitsPerSample = 61_443

§

RafWBGRB = 61_454

§

KdcWB = 64_042

§

KdcWidth = 64_768

§

KdcLength = 64_769

§

KdcOffset = 64_772

§

KdcIFD = 65_024

§

CFAPattern = 33_422

§

CFARepeatPatternDim = 33_421

Implementations§

Source§

impl TiffCommonTag

Source

pub fn n(value: u16) -> Option<Self>

Trait Implementations§

Source§

impl Clone for TiffCommonTag

Source§

fn clone(&self) -> TiffCommonTag

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TiffCommonTag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<TiffCommonTag> for u16

Source§

fn from(val: TiffCommonTag) -> u16

Converts to this type from the input type.
Source§

impl PartialEq for TiffCommonTag

Source§

fn eq(&self, other: &TiffCommonTag) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u16> for TiffCommonTag

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for TiffCommonTag

Source§

impl StructuralPartialEq for TiffCommonTag

Source§

impl TiffTag for TiffCommonTag

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more