Class: Exif::Tag::MakerNote::White

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

Overview

0x1002 - White

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



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/exifparser/makernote/fujifilm.rb', line 63

def to_s
  case @formatted
  when 0
    'Auto'
  when 256
    'Daylight'
  when 512
    'Cloudy'
  when 768
    'DaylightColor-fluorescence'
  when 769
    'DaywhiteColor-fluorescence'
  when 770
    'WhiteColor-fluorescence'
  when 1024
    'Incandescence'
  when 3840
    'Custom white balance'
  else
    'Unknown'
  end
end