Class: Exif::Tag::MakerNote::SonyAFMode

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

Overview

0xb043 - AF Mode

Constant Summary collapse

AFMode =
{
  0  => "Default",
  1  => "Multi AF",
  2  => "Center AF",
  3  => "Spot AF",
  4  => "Flexible Spot AF",
  6  => "Touch AF",
  14 => "Manual Focus",
  15 => "Face Detected"
}

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



516
517
518
# File 'lib/exifparser/makernote/sony.rb', line 516

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