Struct exif::Tag[][src]

pub struct Tag(pub Context, pub u16);

A tag of a TIFF field.

Some well-known tags are provided as associated constants of this type. The constant names follow the Exif specification but not the Rust naming conventions.

Methods

impl Tag
[src]

Returns the context of the tag.

Examples

use exif::{Context, Tag};
assert_eq!(Tag::DateTime.context(), Context::Tiff);
assert_eq!(Tag::ExposureTime.context(), Context::Exif);

Returns the tag number.

Examples

use exif::Tag;
assert_eq!(Tag::DateTime.number(), 0x132);

Returns the description of the tag.

Returns the default value of the tag. None is returned if it is not defined in the standard or it depends on the context.

impl Tag
[src]

ExifIFDPointer: Tag = Tag(Context::Tiff, 34665)

A pointer to the Exif IFD. This is used for the internal structure of Exif data and will not be returned to the user.

GPSInfoIFDPointer: Tag = Tag(Context::Tiff, 34853)

A pointer to the GPS IFD. This is used for the internal structure of Exif data and will not be returned to the user.

InteropIFDPointer: Tag = Tag(Context::Exif, 40965)

A pointer to the interoperability IFD. This is used for the internal structure of Exif data and will not be returned to the user.

ImageWidth: Tag = Tag(Context::Tiff, 256)

ImageLength: Tag = Tag(Context::Tiff, 257)

BitsPerSample: Tag = Tag(Context::Tiff, 258)

Compression: Tag = Tag(Context::Tiff, 259)

PhotometricInterpretation: Tag = Tag(Context::Tiff, 262)

ImageDescription: Tag = Tag(Context::Tiff, 270)

Make: Tag = Tag(Context::Tiff, 271)

Model: Tag = Tag(Context::Tiff, 272)

StripOffsets: Tag = Tag(Context::Tiff, 273)

Orientation: Tag = Tag(Context::Tiff, 274)

SamplesPerPixel: Tag = Tag(Context::Tiff, 277)

RowsPerStrip: Tag = Tag(Context::Tiff, 278)

StripByteCounts: Tag = Tag(Context::Tiff, 279)

XResolution: Tag = Tag(Context::Tiff, 282)

YResolution: Tag = Tag(Context::Tiff, 283)

PlanarConfiguration: Tag = Tag(Context::Tiff, 284)

ResolutionUnit: Tag = Tag(Context::Tiff, 296)

TransferFunction: Tag = Tag(Context::Tiff, 301)

Software: Tag = Tag(Context::Tiff, 305)

DateTime: Tag = Tag(Context::Tiff, 306)

Artist: Tag = Tag(Context::Tiff, 315)

WhitePoint: Tag = Tag(Context::Tiff, 318)

PrimaryChromaticities: Tag = Tag(Context::Tiff, 319)

TileOffsets: Tag = Tag(Context::Tiff, 324)

TileByteCounts: Tag = Tag(Context::Tiff, 325)

JPEGInterchangeFormat: Tag = Tag(Context::Tiff, 513)

JPEGInterchangeFormatLength: Tag = Tag(Context::Tiff, 514)

YCbCrCoefficients: Tag = Tag(Context::Tiff, 529)

YCbCrSubSampling: Tag = Tag(Context::Tiff, 530)

YCbCrPositioning: Tag = Tag(Context::Tiff, 531)

ReferenceBlackWhite: Tag = Tag(Context::Tiff, 532)

Copyright: Tag = Tag(Context::Tiff, 33432)

ExposureTime: Tag = Tag(Context::Exif, 33434)

FNumber: Tag = Tag(Context::Exif, 33437)

ExposureProgram: Tag = Tag(Context::Exif, 34850)

SpectralSensitivity: Tag = Tag(Context::Exif, 34852)

PhotographicSensitivity: Tag = Tag(Context::Exif, 34855)

OECF: Tag = Tag(Context::Exif, 34856)

SensitivityType: Tag = Tag(Context::Exif, 34864)

StandardOutputSensitivity: Tag = Tag(Context::Exif, 34865)

RecommendedExposureIndex: Tag = Tag(Context::Exif, 34866)

ISOSpeed: Tag = Tag(Context::Exif, 34867)

ISOSpeedLatitudeyyy: Tag = Tag(Context::Exif, 34868)

ISOSpeedLatitudezzz: Tag = Tag(Context::Exif, 34869)

ExifVersion: Tag = Tag(Context::Exif, 36864)

DateTimeOriginal: Tag = Tag(Context::Exif, 36867)

DateTimeDigitized: Tag = Tag(Context::Exif, 36868)

OffsetTime: Tag = Tag(Context::Exif, 36880)

OffsetTimeOriginal: Tag = Tag(Context::Exif, 36881)

OffsetTimeDigitized: Tag = Tag(Context::Exif, 36882)

ComponentsConfiguration: Tag = Tag(Context::Exif, 37121)

CompressedBitsPerPixel: Tag = Tag(Context::Exif, 37122)

ShutterSpeedValue: Tag = Tag(Context::Exif, 37377)

ApertureValue: Tag = Tag(Context::Exif, 37378)

BrightnessValue: Tag = Tag(Context::Exif, 37379)

ExposureBiasValue: Tag = Tag(Context::Exif, 37380)

MaxApertureValue: Tag = Tag(Context::Exif, 37381)

SubjectDistance: Tag = Tag(Context::Exif, 37382)

MeteringMode: Tag = Tag(Context::Exif, 37383)

LightSource: Tag = Tag(Context::Exif, 37384)

Flash: Tag = Tag(Context::Exif, 37385)

FocalLength: Tag = Tag(Context::Exif, 37386)

SubjectArea: Tag = Tag(Context::Exif, 37396)

MakerNote: Tag = Tag(Context::Exif, 37500)

UserComment: Tag = Tag(Context::Exif, 37510)

SubSecTime: Tag = Tag(Context::Exif, 37520)

SubSecTimeOriginal: Tag = Tag(Context::Exif, 37521)

SubSecTimeDigitized: Tag = Tag(Context::Exif, 37522)

Temperature: Tag = Tag(Context::Exif, 37888)

Humidity: Tag = Tag(Context::Exif, 37889)

Pressure: Tag = Tag(Context::Exif, 37890)

WaterDepth: Tag = Tag(Context::Exif, 37891)

Acceleration: Tag = Tag(Context::Exif, 37892)

CameraElevationAngle: Tag = Tag(Context::Exif, 37893)

FlashpixVersion: Tag = Tag(Context::Exif, 40960)

ColorSpace: Tag = Tag(Context::Exif, 40961)

PixelXDimension: Tag = Tag(Context::Exif, 40962)

PixelYDimension: Tag = Tag(Context::Exif, 40963)

RelatedSoundFile: Tag = Tag(Context::Exif, 40964)

FlashEnergy: Tag = Tag(Context::Exif, 41483)

SpatialFrequencyResponse: Tag = Tag(Context::Exif, 41484)

FocalPlaneXResolution: Tag = Tag(Context::Exif, 41486)

FocalPlaneYResolution: Tag = Tag(Context::Exif, 41487)

FocalPlaneResolutionUnit: Tag = Tag(Context::Exif, 41488)

SubjectLocation: Tag = Tag(Context::Exif, 41492)

ExposureIndex: Tag = Tag(Context::Exif, 41493)

SensingMethod: Tag = Tag(Context::Exif, 41495)

FileSource: Tag = Tag(Context::Exif, 41728)

SceneType: Tag = Tag(Context::Exif, 41729)

CFAPattern: Tag = Tag(Context::Exif, 41730)

CustomRendered: Tag = Tag(Context::Exif, 41985)

ExposureMode: Tag = Tag(Context::Exif, 41986)

WhiteBalance: Tag = Tag(Context::Exif, 41987)

DigitalZoomRatio: Tag = Tag(Context::Exif, 41988)

FocalLengthIn35mmFilm: Tag = Tag(Context::Exif, 41989)

SceneCaptureType: Tag = Tag(Context::Exif, 41990)

GainControl: Tag = Tag(Context::Exif, 41991)

Contrast: Tag = Tag(Context::Exif, 41992)

Saturation: Tag = Tag(Context::Exif, 41993)

Sharpness: Tag = Tag(Context::Exif, 41994)

DeviceSettingDescription: Tag = Tag(Context::Exif, 41995)

SubjectDistanceRange: Tag = Tag(Context::Exif, 41996)

ImageUniqueID: Tag = Tag(Context::Exif, 42016)

CameraOwnerName: Tag = Tag(Context::Exif, 42032)

BodySerialNumber: Tag = Tag(Context::Exif, 42033)

LensSpecification: Tag = Tag(Context::Exif, 42034)

LensMake: Tag = Tag(Context::Exif, 42035)

LensModel: Tag = Tag(Context::Exif, 42036)

LensSerialNumber: Tag = Tag(Context::Exif, 42037)

Gamma: Tag = Tag(Context::Exif, 42240)

GPSVersionID: Tag = Tag(Context::Gps, 0)

GPSLatitudeRef: Tag = Tag(Context::Gps, 1)

GPSLatitude: Tag = Tag(Context::Gps, 2)

GPSLongitudeRef: Tag = Tag(Context::Gps, 3)

GPSLongitude: Tag = Tag(Context::Gps, 4)

GPSAltitudeRef: Tag = Tag(Context::Gps, 5)

GPSAltitude: Tag = Tag(Context::Gps, 6)

GPSTimeStamp: Tag = Tag(Context::Gps, 7)

GPSSatellites: Tag = Tag(Context::Gps, 8)

GPSStatus: Tag = Tag(Context::Gps, 9)

GPSMeasureMode: Tag = Tag(Context::Gps, 10)

GPSDOP: Tag = Tag(Context::Gps, 11)

GPSSpeedRef: Tag = Tag(Context::Gps, 12)

GPSSpeed: Tag = Tag(Context::Gps, 13)

GPSTrackRef: Tag = Tag(Context::Gps, 14)

GPSTrack: Tag = Tag(Context::Gps, 15)

GPSImgDirectionRef: Tag = Tag(Context::Gps, 16)

GPSImgDirection: Tag = Tag(Context::Gps, 17)

GPSMapDatum: Tag = Tag(Context::Gps, 18)

GPSDestLatitudeRef: Tag = Tag(Context::Gps, 19)

GPSDestLatitude: Tag = Tag(Context::Gps, 20)

GPSDestLongitudeRef: Tag = Tag(Context::Gps, 21)

GPSDestLongitude: Tag = Tag(Context::Gps, 22)

GPSDestBearingRef: Tag = Tag(Context::Gps, 23)

GPSDestBearing: Tag = Tag(Context::Gps, 24)

GPSDestDistanceRef: Tag = Tag(Context::Gps, 25)

GPSDestDistance: Tag = Tag(Context::Gps, 26)

GPSProcessingMethod: Tag = Tag(Context::Gps, 27)

GPSAreaInformation: Tag = Tag(Context::Gps, 28)

GPSDateStamp: Tag = Tag(Context::Gps, 29)

GPSDifferential: Tag = Tag(Context::Gps, 30)

GPSHPositioningError: Tag = Tag(Context::Gps, 31)

InteroperabilityIndex: Tag = Tag(Context::Interop, 1)

Trait Implementations

impl Debug for Tag
[src]

Formats the value using the given formatter. Read more

impl Copy for Tag
[src]

impl Clone for Tag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Tag
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Tag
[src]

impl Hash for Tag
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Tag
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Tag

impl Sync for Tag