class Exif::Tag::MakerNote::SpecialMode

0x0200 - SpecialMode

Public Instance Methods

processData() click to toggle source
# File lib/exifparser/makernote/olympus.rb, line 30
def processData
  @formatted = []
  partition_data(@count) do |data|
    @formatted.push _formatData(data)
  end
end
to_s() click to toggle source
# 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