Class: Exif::Tag::MakerNote::SpecialMode
- Defined in:
- lib/exifparser/makernote/olympus.rb
Overview
0x0200 - SpecialMode
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, #value
Constructor Details
This class inherits a constructor from Exif::Tag::Base
Instance Method Details
#processData ⇒ Object
30 31 32 33 34 35 |
# File 'lib/exifparser/makernote/olympus.rb', line 30 def processData @formatted = [] partition_data(@count) do |data| @formatted.push _formatData(data) end end |
#to_s ⇒ Object
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 |
# File 'lib/exifparser/makernote/olympus.rb', line 37 def to_s buf = "Picture taking mode: " case @formatted[0] when 0 buf << 'Normal,' when 1 buf << 'Unknown,' when 2 buf << 'Fast,' when 3 buf << 'Panorama,' else buf << 'Unknown,' end buf << " Sequence number: #{@formatted[1]}," buf << " Panorama direction: " case @formatted[2] when 1 buf << 'left to right' when 2 buf << 'right to left' when 3 buf << 'bottom to top' when 4 buf << 'top to bottom' else buf << 'unknown' end end |