Class: Exif::Tag::MakerNote::SonyFocusMode

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

Overview

0xb042 - Focus Mode

Constant Summary collapse

FocusMode =
{
  1 => "AF-S",
  2 => "AF-C",
  4 => "Permanent-AF"
}

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



496
497
498
# File 'lib/exifparser/makernote/sony.rb', line 496

def to_s
  FocusMode.has_key?(@formatted) ? FocusMode[@formatted] : @formatted.to_s + " (Unknown)"
end