Class: Exif::Tag::MakerNote::SonyWhiteBalance

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

Overview

0x0115 - White balance

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



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/exifparser/makernote/sony.rb', line 89

def to_s
  case @formatted
  when 0x00
    "Auto"
  when 0x01
    "Color Temperature/Color Filter"
  when 0x10
    "Daylight"
  when 0x20
    "Cloudy"
  when 0x30
    "Shade"
  when 0x40
    "Tungsten"
  when 0x50
    "Flash"
  when 0x60
    "Fluorescent"
  when 0x70
    "Custom"
  else
    "Unknown"
  end
end