Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( CanonContinuousDriveValues = map[int]string{ 0: "Single", 1: "Continuous", 2: "Movie", 3: "Continuous, Speed Priority", 4: "Continuous, Low", 5: "Continuous, High", 6: "Silent Single", 9: "Single, Silent", 10: "Continuous, Silent", } CanonFocusModeValues = map[int]string{ 0: "One-shot AF", 1: "AI Servo AF", 2: "AI Focus AF", 3: "Manual Focus (3)", 4: "Single", 5: "Continuous", 6: "Manual Focus (6)", 16: "Pan Focus", 256: "AF + MF", 512: "Movie Snap Focus", 519: "Movie Servo AF", } CanonExposureModeValues = map[int]string{ 0: "Easy", 1: "Program AE", 2: "Shutter speed priority AE", 3: "Aperture-priority AE", 4: "Manual", 5: "Depth-of-field AE", 6: "M-Dep", 7: "Bulb", 8: "Flexible-priority AE", } CanonRecordModeValues = map[int]string{ 1: "JPEG", 2: "CRW+THM", 3: "AVI+THM", 4: "TIF", 5: "TIF+JPEG", 6: "CR2", 7: "CR2+JPEG", 9: "MOV", 10: "MP4", 11: "CRM", 12: "CR3", 13: "CR3+JPEG", } CanonMeteringModeValues = map[int]string{ 0: "Default", 1: "Spot", 2: "Average", 3: "Evaluative", 4: "Partial", 5: "Center-weighted average", } CanonAESettingValues = map[int]string{ 0: "Normal AE", 1: "Exposure Compensation", 2: "AE Lock", 3: "AE Lock + Exposure Compensation", 4: "No AE", } )
Canon specific makernote values
var ( NoFlashFired = FlashMode(0) UnkownExposureMode = ExposureMode(0) UnknownMeteringMode = MeteringMode(0) )
Unknown variables
var FlashValues = map[FlashMode]string{
0: "No Flash",
1: "Fired",
5: "Fired, Return not detected",
7: "Fired, Return detected",
8: "On, Did not fire",
9: "On, Fired",
13: "On, Return not detected",
15: "On, Return detected",
16: "Off, Did not fire",
20: "Off, Did not fire, Return not detected",
24: "Auto, Did not fire",
25: "Auto, Fired",
29: "Auto, Fired, Return not detected",
31: "Auto, Fired, Return detected",
32: "No flash function",
48: "Off, No flash function",
65: "Fired, Red-eye reduction",
69: "Fired, Red-eye reduction, Return not detected",
71: "Fired, Red-eye reduction, Return detected",
73: "On, Red-eye reduction",
77: "On, Red-eye reduction, Return not detected",
79: "On, Red-eye reduction, Return detected",
80: "Off, Red-eye reduction",
88: "Auto, Did not fire, Red-eye reduction",
89: "Auto, Fired, Red-eye reduction",
93: "Auto, Fired, Red-eye reduction, Return not detected",
95: "Auto, Fired, Red-eye reduction, Return detected",
}
FlashValues - Derived from https://sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html#Flash (23/09/2019)
var OrientationValues = map[Orientation]string{
1: "Horizontal (normal)",
2: "Mirror horizontal",
3: "Rotate 180",
4: "Mirror vertical",
5: "Mirror horizontal and rotate 270 CW",
6: "Rotate 90 CW",
7: "Mirror horizontal and rotate 90 CW",
8: "Rotate 270 CW",
}
OrientationValues - Image orientation values
Functions ¶
This section is empty.
Types ¶
type DublinCore ¶
type DublinCore struct { Creator string `xmp:"dc:creator"` Description string `xmp:"dc:description"` Format string `xmp:"dc:format"` Rights string `xmp:"dc:rights"` Source string `xmp:"dc:source"` Subject []string `xmp:"dc:subject"` Title string `xmp:"dc:title"` }
DublinCore - /// Modified DublinCore 17/04/2019 https://godoc.org/trimmer.io/go-xmp/models/dc#DublinCore
type ExposureBias ¶
type ExposureBias [2]int64
ExposureBias - [0] Numerator [1] Denominator
func NewExposureBias ¶
func NewExposureBias(num, denom int64) ExposureBias
NewExposureBias - Set ExposureBias from Numerator and Denominator
func (ExposureBias) String ¶
func (eb ExposureBias) String() string
String - String value of Exposure Bias
type ExposureMode ¶
type ExposureMode uint8
ExposureMode - Mode in which the Exposure was taken.
func (ExposureMode) String ¶
func (em ExposureMode) String() string
String - Return Exposure Mode as a string
type FlashMode ¶
type FlashMode uint8
FlashMode - Mode in which the camera Flash was used. (bool) - true if flash was fired (uint8) - value of FlashMode
type MeteringMode ¶
type MeteringMode uint8
MeteringMode - Mode in which the Photo was metered.
func NewMeteringMode ¶
func NewMeteringMode(m int) MeteringMode
NewMeteringMode - Create new Metering Mode
func (MeteringMode) String ¶
func (mm MeteringMode) String() string
String - Return Metering Mode as a string
type Orientation ¶
type Orientation uint8
Orientation - Orientation of Image from exif
func NewOrientation ¶
func NewOrientation(i int) Orientation
NewOrientation - Create new Image Orientation from Exif
func (Orientation) String ¶
func (o Orientation) String() string
String - Return an Orientation as a string
type ShutterSpeed ¶
type ShutterSpeed [2]int64
ShutterSpeed - [0] Numerator [1] Denominator
func NewShutterSpeed ¶
func NewShutterSpeed(num, denom int64) ShutterSpeed
NewShutterSpeed - Set ShutterSpeed from Numerator and Denominator
func (ShutterSpeed) String ¶
func (ss ShutterSpeed) String() string
String - return a ShutterSpeed as a string
type XmpBase ¶
type XmpBase struct { CreateDate time.Time `xmp:"xmp:CreateDate"` CreatorTool string `xmp:"xmp:CreatorTool"` Identifier string `xmp:"xmp:Identifier"` Label string `xmp:"xmp:Label"` MetadataDate time.Time `xmp:"xmp:MetadataDate"` ModifyDate time.Time `xmp:"xmp:ModifyDate"` Rating int `xmp:"xmp:Rating"` }
XmpBase - /// Modified XmpBase 17/04/2019 https://godoc.org/trimmer.io/go-xmp/models/xmp_base#XmpBase