Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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