Class: Exif::Tag::MakerNote::ExposureDifference

Inherits:
Base
  • Object
show all
Defined in:
lib/exifparser/makernote/nikon2.rb

Overview

0x000e - ExposureDifference

Instance Attribute Summary

Attributes inherited from Base

#IFD, #count, #data, #dataPos, #pos, #tagID

Instance Method Summary collapse

Methods inherited from Base

#formatExposureTime, #formatFNumber, #formatFocalLength, #formatLatLon, #initialize, #inspect, #name, #processData, #value

Constructor Details

This class inherits a constructor from Exif::Tag::Base

Instance Method Details

#to_sObject



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/exifparser/makernote/nikon2.rb', line 125

def to_s
  case @formatted
  when [0xf7, 0x01, 0x0c, 0x00]
    "-2/3EV"
  when [0xf9, 0x01, 0x0c, 0x00]
    "-1/2EV"
  when [0xfc, 0x01, 0x0c, 0x00]
    "-1/3EV"
  when [0x00, 0x01, 0x0c, 0x00]
    "+0EV"
  when [0x04, 0x01, 0x0c, 0x00]
    "+1/3EV"
  when [0x06, 0x01, 0x0c, 0x00]
    "+1/2EV"
  when [0x08, 0x01, 0x0c, 0x00]
    "+2/3EV"
  else
    ""
  end
end