ifd

package
v0.0.0-...-1f36970 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: BSD-2-Clause Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const (
	GPSVersionID        exif.TagID = 0x0000
	GPSLatitudeRef      exif.TagID = 0x0001
	GPSLatitude         exif.TagID = 0x0002
	GPSLongitudeRef     exif.TagID = 0x0003
	GPSLongitude        exif.TagID = 0x0004
	GPSAltitudeRef      exif.TagID = 0x0005
	GPSAltitude         exif.TagID = 0x0006
	GPSTimeStamp        exif.TagID = 0x0007
	GPSSatellites       exif.TagID = 0x0008
	GPSStatus           exif.TagID = 0x0009
	GPSMeasureMode      exif.TagID = 0x000a
	GPSDOP              exif.TagID = 0x000b
	GPSSpeedRef         exif.TagID = 0x000c
	GPSSpeed            exif.TagID = 0x000d
	GPSTrackRef         exif.TagID = 0x000e
	GPSTrack            exif.TagID = 0x000f
	GPSImgDirectionRef  exif.TagID = 0x0010
	GPSImgDirection     exif.TagID = 0x0011
	GPSMapDatum         exif.TagID = 0x0012
	GPSDestLatitudeRef  exif.TagID = 0x0013
	GPSDestLatitude     exif.TagID = 0x0014
	GPSDestLongitudeRef exif.TagID = 0x0015
	GPSDestLongitude    exif.TagID = 0x0016
	GPSDestBearingRef   exif.TagID = 0x0017
	GPSDestBearing      exif.TagID = 0x0018
	GPSDestDistanceRef  exif.TagID = 0x0019
	GPSDestDistance     exif.TagID = 0x001a
	GPSProcessingMethod exif.TagID = 0x001b
	GPSAreaInformation  exif.TagID = 0x001c
	GPSDateStamp        exif.TagID = 0x001d
	GPSDifferential     exif.TagID = 0x001e
)

GPSInfo Tags; GPSInfo Ifd

View Source
const (
	IfdIop              = "Iop"
	IfdIopID exif.TagID = 0xA005
)

IfdIop Name and TagID

View Source
const (
	IfdRoot              = "IFD"
	IfdRootID exif.TagID = 0x0000
)

IfdRoot Name and TagID

View Source
const (
	ProcessingSoftware          exif.TagID = 0x000b
	NewSubfileType              exif.TagID = 0x00fe
	SubfileType                 exif.TagID = 0x00ff
	ImageWidth                  exif.TagID = 0x0100
	ImageLength                 exif.TagID = 0x0101
	BitsPerSample               exif.TagID = 0x0102
	Compression                 exif.TagID = 0x0103
	PhotometricInterpretation   exif.TagID = 0x0106
	Thresholding                exif.TagID = 0x0107
	CellWidth                   exif.TagID = 0x0108
	CellLength                  exif.TagID = 0x0109
	FillOrder                   exif.TagID = 0x010a
	DocumentName                exif.TagID = 0x010d
	ImageDescription            exif.TagID = 0x010e
	Make                        exif.TagID = 0x010f
	Model                       exif.TagID = 0x0110
	StripOffsets                exif.TagID = 0x0111
	Orientation                 exif.TagID = 0x0112
	SamplesPerPixel             exif.TagID = 0x0115
	RowsPerStrip                exif.TagID = 0x0116
	StripByteCounts             exif.TagID = 0x0117
	XResolution                 exif.TagID = 0x011a
	YResolution                 exif.TagID = 0x011b
	PlanarConfiguration         exif.TagID = 0x011c
	GrayResponseUnit            exif.TagID = 0x0122
	GrayResponseCurve           exif.TagID = 0x0123
	T4Options                   exif.TagID = 0x0124
	T6Options                   exif.TagID = 0x0125
	ResolutionUnit              exif.TagID = 0x0128
	PageNumber                  exif.TagID = 0x0129
	TransferFunction            exif.TagID = 0x012d
	Software                    exif.TagID = 0x0131
	DateTime                    exif.TagID = 0x0132
	Artist                      exif.TagID = 0x013b
	HostComputer                exif.TagID = 0x013c
	Predictor                   exif.TagID = 0x013d
	WhitePoint                  exif.TagID = 0x013e
	PrimaryChromaticities       exif.TagID = 0x013f
	ColorMap                    exif.TagID = 0x0140
	HalftoneHints               exif.TagID = 0x0141
	TileWidth                   exif.TagID = 0x0142
	TileLength                  exif.TagID = 0x0143
	TileOffsets                 exif.TagID = 0x0144
	TileByteCounts              exif.TagID = 0x0145
	SubIFDs                     exif.TagID = 0x014a
	InkSet                      exif.TagID = 0x014c
	InkNames                    exif.TagID = 0x014d
	NumberOfInks                exif.TagID = 0x014e
	DotRange                    exif.TagID = 0x0150
	TargetPrinter               exif.TagID = 0x0151
	ExtraSamples                exif.TagID = 0x0152
	SampleFormat                exif.TagID = 0x0153
	SMinSampleValue             exif.TagID = 0x0154
	SMaxSampleValue             exif.TagID = 0x0155
	TransferRange               exif.TagID = 0x0156
	ClipPath                    exif.TagID = 0x0157
	XClipPathUnits              exif.TagID = 0x0158
	YClipPathUnits              exif.TagID = 0x0159
	Indexed                     exif.TagID = 0x015a
	JPEGTables                  exif.TagID = 0x015b
	OPIProxy                    exif.TagID = 0x015f
	JPEGProc                    exif.TagID = 0x0200
	JPEGInterchangeFormat       exif.TagID = 0x0201
	JPEGInterchangeFormatLength exif.TagID = 0x0202
	JPEGRestartInterval         exif.TagID = 0x0203
	JPEGLosslessPredictors      exif.TagID = 0x0205
	JPEGPointTransforms         exif.TagID = 0x0206
	JPEGQTables                 exif.TagID = 0x0207
	JPEGDCTables                exif.TagID = 0x0208
	JPEGACTables                exif.TagID = 0x0209
	YCbCrCoefficients           exif.TagID = 0x0211
	YCbCrSubSampling            exif.TagID = 0x0212
	YCbCrPositioning            exif.TagID = 0x0213
	ReferenceBlackWhite         exif.TagID = 0x0214
	XMLPacket                   exif.TagID = 0x02bc
	Rating                      exif.TagID = 0x4746
	RatingPercent               exif.TagID = 0x4749
	ImageID                     exif.TagID = 0x800d
	CFARepeatPatternDim         exif.TagID = 0x828d
	CFAPattern                  exif.TagID = 0x828e
	BatteryLevel                exif.TagID = 0x828f
	Copyright                   exif.TagID = 0x8298
	ExposureTime                exif.TagID = 0x829a // IFD/EXIF and IFD
	FNumber                     exif.TagID = 0x829d
	IPTCNAA                     exif.TagID = 0x83bb
	ImageResources              exif.TagID = 0x8649
	ExifTag                     exif.TagID = 0x8769
	InterColorProfile           exif.TagID = 0x8773
	ExposureProgram             exif.TagID = 0x8822
	SpectralSensitivity         exif.TagID = 0x8824
	GPSTag                      exif.TagID = 0x8825
	ISOSpeedRatings             exif.TagID = 0x8827
	OECF                        exif.TagID = 0x8828
	Interlace                   exif.TagID = 0x8829
	SensitivityType             exif.TagID = 0x8830
	TimeZoneOffset              exif.TagID = 0x882a
	SelfTimerMode               exif.TagID = 0x882b
	RecommendedExposureIndex    exif.TagID = 0x8832
	DateTimeOriginal            exif.TagID = 0x9003
	DateTimeDigitized           exif.TagID = 0x9004
	CompressedBitsPerPixel      exif.TagID = 0x9102
	ShutterSpeedValue           exif.TagID = 0x9201
	ApertureValue               exif.TagID = 0x9202
	BrightnessValue             exif.TagID = 0x9203
	ExposureBiasValue           exif.TagID = 0x9204
	MaxApertureValue            exif.TagID = 0x9205
	SubjectDistance             exif.TagID = 0x9206
	MeteringMode                exif.TagID = 0x9207
	LightSource                 exif.TagID = 0x9208
	Flash                       exif.TagID = 0x9209
	FocalLength                 exif.TagID = 0x920a
	FlashEnergy                 exif.TagID = 0x920b
	SpatialFrequencyResponse    exif.TagID = 0x920c
	Noise                       exif.TagID = 0x920d
	FocalPlaneXResolution       exif.TagID = 0x920e
	FocalPlaneYResolution       exif.TagID = 0x920f
	FocalPlaneResolutionUnit    exif.TagID = 0x9210
	ImageNumber                 exif.TagID = 0x9211
	SecurityClassification      exif.TagID = 0x9212
	ImageHistory                exif.TagID = 0x9213
	SubjectLocation             exif.TagID = 0x9214
	ExposureIndex               exif.TagID = 0x9215
	TIFFEPStandardID            exif.TagID = 0x9216
	SensingMethod               exif.TagID = 0x9217
	XPTitle                     exif.TagID = 0x9c9b
	XPComment                   exif.TagID = 0x9c9c
	XPAuthor                    exif.TagID = 0x9c9d
	XPKeywords                  exif.TagID = 0x9c9e
	XPSubject                   exif.TagID = 0x9c9f
	PrintImageMatching          exif.TagID = 0xc4a5
	DNGVersion                  exif.TagID = 0xc612
	DNGBackwardVersion          exif.TagID = 0xc613
	UniqueCameraModel           exif.TagID = 0xc614
	LocalizedCameraModel        exif.TagID = 0xc615
	CFAPlaneColor               exif.TagID = 0xc616
	CFALayout                   exif.TagID = 0xc617
	LinearizationTable          exif.TagID = 0xc618
	BlackLevelRepeatDim         exif.TagID = 0xc619
	BlackLevel                  exif.TagID = 0xc61a
	BlackLevelDeltaH            exif.TagID = 0xc61b
	BlackLevelDeltaV            exif.TagID = 0xc61c
	WhiteLevel                  exif.TagID = 0xc61d
	DefaultScale                exif.TagID = 0xc61e
	DefaultCropOrigin           exif.TagID = 0xc61f
	DefaultCropSize             exif.TagID = 0xc620
	ColorMatrix1                exif.TagID = 0xc621
	ColorMatrix2                exif.TagID = 0xc622
	CameraCalibration1          exif.TagID = 0xc623
	CameraCalibration2          exif.TagID = 0xc624
	ReductionMatrix1            exif.TagID = 0xc625
	ReductionMatrix2            exif.TagID = 0xc626
	AnalogBalance               exif.TagID = 0xc627
	AsShotNeutral               exif.TagID = 0xc628
	AsShotWhiteXY               exif.TagID = 0xc629
	BaselineExposure            exif.TagID = 0xc62a
	BaselineNoise               exif.TagID = 0xc62b
	BaselineSharpness           exif.TagID = 0xc62c
	BayerGreenSplit             exif.TagID = 0xc62d
	LinearResponseLimit         exif.TagID = 0xc62e
	CameraSerialNumber          exif.TagID = 0xc62f
	LensInfo                    exif.TagID = 0xc630
	ChromaBlurRadius            exif.TagID = 0xc631
	AntiAliasStrength           exif.TagID = 0xc632
	ShadowScale                 exif.TagID = 0xc633
	DNGPrivateData              exif.TagID = 0xc634
	MakerNoteSafety             exif.TagID = 0xc635
	CalibrationIlluminant1      exif.TagID = 0xc65a
	CalibrationIlluminant2      exif.TagID = 0xc65b
	BestQualityScale            exif.TagID = 0xc65c
	RawDataUniqueID             exif.TagID = 0xc65d
	OriginalRawFileName         exif.TagID = 0xc68b
	OriginalRawFileData         exif.TagID = 0xc68c
	ActiveArea                  exif.TagID = 0xc68d
	MaskedAreas                 exif.TagID = 0xc68e
	AsShotICCProfile            exif.TagID = 0xc68f
	AsShotPreProfileMatrix      exif.TagID = 0xc690
	CurrentICCProfile           exif.TagID = 0xc691
	CurrentPreProfileMatrix     exif.TagID = 0xc692
	ColorimetricReference       exif.TagID = 0xc6bf
	CameraCalibrationSignature  exif.TagID = 0xc6f3
	ProfileCalibrationSignature exif.TagID = 0xc6f4
	AsShotProfileName           exif.TagID = 0xc6f6
	NoiseReductionApplied       exif.TagID = 0xc6f7
	ProfileName                 exif.TagID = 0xc6f8
	ProfileHueSatMapDims        exif.TagID = 0xc6f9
	ProfileHueSatMapData1       exif.TagID = 0xc6fa
	ProfileHueSatMapData2       exif.TagID = 0xc6fb
	ProfileToneCurve            exif.TagID = 0xc6fc
	ProfileEmbedPolicy          exif.TagID = 0xc6fd
	ProfileCopyright            exif.TagID = 0xc6fe
	ForwardMatrix1              exif.TagID = 0xc714
	ForwardMatrix2              exif.TagID = 0xc715
	PreviewApplicationName      exif.TagID = 0xc716
	PreviewApplicationVersion   exif.TagID = 0xc717
	PreviewSettingsName         exif.TagID = 0xc718
	PreviewSettingsDigest       exif.TagID = 0xc719
	PreviewColorSpace           exif.TagID = 0xc71a
	PreviewDateTime             exif.TagID = 0xc71b
	RawImageDigest              exif.TagID = 0xc71c
	OriginalRawFileDigest       exif.TagID = 0xc71d
	SubTileBlockSize            exif.TagID = 0xc71e
	RowInterleaveFactor         exif.TagID = 0xc71f
	ProfileLookTableDims        exif.TagID = 0xc725
	ProfileLookTableData        exif.TagID = 0xc726
	OpcodeList1                 exif.TagID = 0xc740
	OpcodeList2                 exif.TagID = 0xc741
	OpcodeList3                 exif.TagID = 0xc74e
	NoiseProfile                exif.TagID = 0xc761
)

RootIFD TagIDs

Variables

View Source
var GPSIfd = IfdItem{GPSPath, ifdGPSID, ifdGPS}

GPSIfd is the GPS IFD "IFD/GPS" for GPSInfo

View Source
var GPSIfdTags = map[exif.TagID]exif.Tag{
	GPSVersionID:        exif.NewTag("GPSVersionID", exif.TypeByte),
	GPSLatitudeRef:      exif.NewTag("GPSLatitudeRef", exif.TypeASCII),
	GPSLatitude:         exif.NewTag("GPSLatitude", exif.TypeRational),
	GPSLongitudeRef:     exif.NewTag("GPSLongitudeRef", exif.TypeASCII),
	GPSLongitude:        exif.NewTag("GPSLongitude", exif.TypeRational),
	GPSAltitudeRef:      exif.NewTag("GPSAltitudeRef", exif.TypeByte),
	GPSAltitude:         exif.NewTag("GPSAltitude", exif.TypeRational),
	GPSTimeStamp:        exif.NewTag("GPSTimeStamp", exif.TypeRational),
	GPSSatellites:       exif.NewTag("GPSSatellites", exif.TypeASCII),
	GPSStatus:           exif.NewTag("GPSStatus", exif.TypeASCII),
	GPSMeasureMode:      exif.NewTag("GPSMeasureMode", exif.TypeASCII),
	GPSDOP:              exif.NewTag("GPSDOP", exif.TypeRational),
	GPSSpeedRef:         exif.NewTag("GPSSpeedRef", exif.TypeASCII),
	GPSSpeed:            exif.NewTag("GPSSpeed", exif.TypeRational),
	GPSTrackRef:         exif.NewTag("GPSTrackRef", exif.TypeASCII),
	GPSTrack:            exif.NewTag("GPSTrack", exif.TypeRational),
	GPSImgDirectionRef:  exif.NewTag("GPSImgDirectionRef", exif.TypeASCII),
	GPSImgDirection:     exif.NewTag("GPSImgDirection", exif.TypeRational),
	GPSMapDatum:         exif.NewTag("GPSMapDatum", exif.TypeASCII),
	GPSDestLatitudeRef:  exif.NewTag("GPSDestLatitudeRef", exif.TypeASCII),
	GPSDestLatitude:     exif.NewTag("GPSDestLatitude", exif.TypeRational),
	GPSDestLongitudeRef: exif.NewTag("GPSDestLongitudeRef", exif.TypeASCII),
	GPSDestLongitude:    exif.NewTag("GPSDestLongitude", exif.TypeRational),
	GPSDestBearingRef:   exif.NewTag("GPSDestBearingRef", exif.TypeASCII),
	GPSDestBearing:      exif.NewTag("GPSDestBearing", exif.TypeRational),
	GPSDestDistanceRef:  exif.NewTag("GPSDestDistanceRef", exif.TypeASCII),
	GPSDestDistance:     exif.NewTag("GPSDestDistance", exif.TypeRational),
	GPSProcessingMethod: exif.NewTag("GPSProcessingMethod", exif.TypeUndefined),
	GPSAreaInformation:  exif.NewTag("GPSAreaInformation", exif.TypeUndefined),
	GPSDateStamp:        exif.NewTag("GPSDateStamp", exif.TypeASCII),
	GPSDifferential:     exif.NewTag("GPSDifferential", exif.TypeShort),
}

GPSIfdTags is a map of the the exif.TagID to exif.Tag contained in the GPSInfo ifd

View Source
var (
	GPSPath = IfdPath{IfdRootID}
)

GPSPath is the GPS Ifd Path

IopIfd is the IFD/Iop IFD for Interoperability Information

View Source
var (
	IopPath = IfdPath{IfdRootID}
)

IopPath is the IFD/Iop Ifd Path

RootIfd is the Root IFD "IFD0" for ExifData

View Source
var RootIfdTags = map[exif.TagID]exif.Tag{}/* 205 elements not displayed */

RootIfdTags is a map of the the exif.TagID to exif.Tag for "IFD"

View Source
var (
	RootPath = IfdPath{}
)

RootPath is the Root Ifd Path

Functions

This section is empty.

Types

type IfdItem

type IfdItem struct {
	IfdPath IfdPath
	TagID   exif.TagID
	Name    string
}

IfdItem is a container to define each IFD

func (IfdItem) Valid

func (ifd IfdItem) Valid() bool

Valid returns true if the IfdItem has a Name

type IfdPath

type IfdPath []exif.TagID

IfdPath is an array of TagID representing an IFD

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL