github.com/boki/go-xmp@v1.0.1/models/exif/enum.go (about) 1 // Copyright (c) 2017-2018 Alexander Eichhorn 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"): you may 4 // not use this file except in compliance with the License. You may obtain 5 // a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations 13 // under the License. 14 15 // http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf 16 17 package exif 18 19 type ColorSpace int 20 21 const ( 22 ColorSpaceSRGB ColorSpace = 1 23 ColorSpaceUncalibrated ColorSpace = 0xffff 24 ) 25 26 type Component int 27 28 const ( 29 ComponentNone Component = 0 30 ComponentY Component = 1 31 ComponentCb Component = 2 32 ComponentCr Component = 3 33 ComponentR Component = 4 34 ComponentG Component = 5 35 ComponentB Component = 6 36 ) 37 38 type ExposureProgram int 39 40 const ( 41 ExposureProgramUndefined ExposureProgram = 0 42 ExposureProgramManual ExposureProgram = 1 43 ExposureProgramNormalProgram ExposureProgram = 2 44 ExposureProgramAperturePriority ExposureProgram = 3 45 ExposureProgramShutterPriority ExposureProgram = 4 46 ExposureProgramCreative ExposureProgram = 5 47 ExposureProgramAction ExposureProgram = 6 48 ExposureProgramPortrait ExposureProgram = 7 49 ExposureProgramLandscape ExposureProgram = 8 50 ExposureProgramBulb ExposureProgram = 9 51 ) 52 53 type SensitivityType int 54 55 const ( 56 SensitivityTypeUnknown SensitivityType = 0 // Unknown 57 SensitivityTypeSOS SensitivityType = 1 // Standard output sensitivity (SOS) 58 SensitivityTypeREI SensitivityType = 2 // Recommended exposure index (REI) 59 SensitivityTypeISO SensitivityType = 3 // ISOspeed 60 SensitivityTypeSOS_REI SensitivityType = 4 // Standard output sensitivity (SOS) and recommended exposure index (REI) 61 SensitivityTypeSOS_ISO SensitivityType = 5 // Standard output sensitivity (SOS) and ISOspeed 62 SensitivityTypeREI_ISO SensitivityType = 6 // Recommended exposure index (REI) and ISO speed 63 SensitivityTypeSOS_REI_ISO SensitivityType = 7 // Standard output sensitivity (SOS) and recommended exposure index (REI) and ISO speed 64 ) 65 66 type MeteringMode int 67 68 const ( 69 MeteringModeUnknown MeteringMode = 0 70 MeteringModeAverage MeteringMode = 1 71 MeteringModeCenterWeightedAverage MeteringMode = 2 72 MeteringModeSpot MeteringMode = 3 73 MeteringModeMultiSpot MeteringMode = 4 74 MeteringModePattern MeteringMode = 5 75 MeteringModePartial MeteringMode = 6 76 MeteringModeother MeteringMode = 255 77 ) 78 79 type LightSource int 80 81 const ( 82 LightSourceUnknown LightSource = 0 83 LightSourceDaylight LightSource = 1 84 LightSourceFluorescent LightSource = 2 85 LightSourceTungsten LightSource = 3 86 LightSourceFlash LightSource = 4 87 LightSourceFineWeather LightSource = 9 88 LightSourceCloudyWeather LightSource = 10 89 LightSourceShade LightSource = 11 90 LightSourceDaylightFluorescent LightSource = 12 // D 5700 - 7100K 91 LightSourceDayWhiteFluorescent LightSource = 13 // N 4600 - 5500K 92 LightSourceCoolWhiteFluorescent LightSource = 14 // W 3800 - 4500K 93 LightSourceWhiteFluorescent LightSource = 15 // WW 3250 - 3800K 94 LightSourceWarmWhiteFluorescent LightSource = 16 // L 2600 - 3250K 95 LightSourceStandardA LightSource = 17 96 LightSourceStandardB LightSource = 18 97 LightSourceStandardC LightSource = 19 98 LightSourceD55 LightSource = 20 99 LightSourceD65 LightSource = 21 100 LightSourceD75 LightSource = 22 101 LightSourceD50 LightSource = 23 102 LightSourceISOStudioTungsten LightSource = 24 103 LightSourceOther LightSource = 255 104 ) 105 106 type SensingMode int 107 108 const ( 109 SensingModeUndefined SensingMode = 1 // Not defined 110 SensingModeOneChip SensingMode = 2 // One-chip color area sensor 111 SensingModeTwoChip SensingMode = 3 // Two-chip color area sensor 112 SensingModeThreeChip SensingMode = 4 // Three-chip color area sensor 113 SensingModeArea SensingMode = 5 // Color sequential area sensor 114 SensingModeTrilinear SensingMode = 7 // Trilinear sensor 115 SensingModeLinear SensingMode = 8 // Color sequential linear sensor 116 ) 117 118 type FileSourceType int 119 120 const ( 121 FileSourceOther FileSourceType = 0 122 FileSourceScannerTransparent FileSourceType = 1 123 FileSourceScannerReflex FileSourceType = 2 124 FileSourceDSC FileSourceType = 3 125 ) 126 127 type RenderMode int 128 129 const ( 130 RenderModeNormal RenderMode = 0 131 RenderModeCustom RenderMode = 1 132 ) 133 134 type ExposureMode int 135 136 const ( 137 ExposureModeAuto ExposureMode = 0 138 ExposureModeManual ExposureMode = 1 139 ExposureModeBracket ExposureMode = 2 140 ) 141 142 type WhiteBalanceMode int 143 144 const ( 145 WhiteBalanceAuto WhiteBalanceMode = 0 146 WhiteBalanceManual WhiteBalanceMode = 1 147 ) 148 149 type SceneCaptureType int 150 151 const ( 152 SceneCaptureTypeStandard SceneCaptureType = 0 153 SceneCaptureTypeLandscape SceneCaptureType = 1 154 SceneCaptureTypePortrait SceneCaptureType = 2 155 SceneCaptureTypeNight SceneCaptureType = 3 156 ) 157 158 type GainMode int 159 160 const ( 161 GainModeNone GainMode = 0 162 GainModeLowUp GainMode = 1 163 GainModeHighUp GainMode = 2 164 GainModeLowDown GainMode = 3 165 GainModeHighDown GainMode = 4 166 ) 167 168 type ContrastMode int 169 170 const ( 171 ContrastModeNormal ContrastMode = 0 172 ContrastModeSoft ContrastMode = 1 173 ContrastModeHard ContrastMode = 2 174 ) 175 176 type SaturationMode int 177 178 const ( 179 SaturationModeNormal SaturationMode = 0 180 SaturationModeLow SaturationMode = 1 181 SaturationModeHigh SaturationMode = 2 182 ) 183 184 type SharpnessMode int 185 186 const ( 187 SharpnessModeNormal SharpnessMode = 0 188 SharpnessModeSoft SharpnessMode = 1 189 SharpnessModeHard SharpnessMode = 2 190 ) 191 192 type SubjectDistanceMode int 193 194 const ( 195 SubjectDistanceUnknown SubjectDistanceMode = 0 196 SubjectDistanceMacro SubjectDistanceMode = 1 // macro mode 197 SubjectDistanceClose SubjectDistanceMode = 2 // 1-3 m 198 SubjectDistanceDistant SubjectDistanceMode = 3 // >3m 199 ) 200 201 type InteropMode string 202 203 const ( 204 InteropModeR98 InteropMode = "R98" 205 InteropModeTHM InteropMode = "THM" 206 InteropModeR03 InteropMode = "R03" 207 ) 208 209 type FlashMode int 210 211 const ( 212 FlashModeUnknown FlashMode = 0 213 FlashModeFire FlashMode = 1 214 FlashModeSuppress FlashMode = 2 215 FlashModeAudo FlashMode = 3 216 ) 217 218 type FlashReturnMode int 219 220 const ( 221 FlashReturnModeDisabled FlashReturnMode = 0 // no strobe return detection 222 FlashReturnModeNo FlashReturnMode = 2 // strobe return light not detected 223 FlashReturnModeYes FlashReturnMode = 3 // strobe return light detected 224 )