-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathExifIds.cs
executable file
·128 lines (118 loc) · 2.79 KB
/
ExifIds.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
using System;
namespace ExifLib
{
public static class JpegId
{
public const int START = 0xFF;
public const int SOI = 0xD8;
public const int SOS = 0xDA;
public const int EOI = 0xD9;
public const int COM = 0xFE;
public const int JFIF = 0xE0;
public const int EXIF = 0xE1;
public const int IPTC = 0xED;
}
public enum ExifIFD
{
Exif = 0x8769,
Gps = 0x8825
}
public enum ExifId
{
Unknown = -1,
ImageWidth = 0x100,
ImageHeight = 0x101,
Orientation = 0x112,
XResolution = 0x11A,
YResolution = 0x11B,
ResolutionUnit = 0x128,
DateTime = 0x132,
Description = 0x10E,
Make = 0x10F,
Model = 0x110,
Software = 0x131,
Artist = 0x13B,
ThumbnailOffset = 0x201,
ThumbnailLength = 0x202,
ExposureTime = 0x829A,
FNumber = 0x829D,
Copyright = 0x8298,
FlashUsed = 0x9209,
UserComment = 0x9286
}
public enum ExifGps
{
Version = 0x0,
LatitudeRef = 0x1,
Latitude = 0x2,
LongitudeRef = 0x3,
Longitude = 0x4,
AltitudeRef = 0x5,
Altitude = 0x6,
TimeStamp = 0x7,
Satellites = 0x8,
Status = 0x9,
MeasureMode = 0xA,
DOP = 0xB,
SpeedRef = 0xC,
Speed = 0xD,
TrackRef = 0xE,
Track = 0xF,
ImgDirectionRef = 0x10,
ImgDirection = 0x11,
MapDatum = 0x12,
DestLatitudeRef = 0x13,
DestLatitude = 0x14,
DestLongitudeRef = 0x15,
DestLongitude = 0x16,
DestBearingRef = 0x17,
DestBearing = 0x18,
DestDistanceRef = 0x19,
DestDistance = 0x1A,
ProcessingMethod = 0x1B,
AreaInformation = 0x1C,
DateStamp = 0x1D,
Differential = 0x1E
}
public enum ExifOrientation
{
TopLeft = 1,
BottomRight = 3,
TopRight = 6,
BottomLeft = 8,
Undefined = 9
}
public enum ExifUnit
{
Undefined = 1,
Inch = 2,
Centimeter = 3
}
/// <summary>
/// As per http://www.exif.org/Exif2-2.PDF
/// </summary>
[Flags]
public enum ExifFlash
{
No = 0x0,
Fired = 0x1,
StrobeReturnLightDetected = 0x6,
On = 0x8,
Off = 0x10,
Auto = 0x18,
FlashFunctionPresent = 0x20,
RedEyeReduction = 0x40
}
public enum ExifGpsLatitudeRef
{
Unknown = 0,
North,
South
}
public enum ExifGpsLongitudeRef
{
Unknown = 0,
East,
West
}
}