Class: Exif::Tag::Exif::Flash

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

Overview

0x9209 - Flash

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



1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
# File 'lib/exifparser/tag.rb', line 1096

def to_s
  case @formatted
  when 0x0000
    'Flash did not fire.'
  when 0x0001
    'Flash fired.'
  when 0x0005
    'Strobe return light not detected.'
  when 0x0007
    'Strobe return light detected.'
  when 0x0009
    'Flash fired, compulsory flash mode.'
  when 0x000d
    'Flash fired, compulsory flash mode, return light not detected.'
  when 0x000f
    'Flash fired, compulsory flash mode, return light detected.'
  when 0x0010
    'Flash did not fire, compulsory flash mode.'
  when 0x0018
    'Flash did not fire, auto mode.'
  when 0x0019
    'Flash fired, auto mode.'
  when 0x001d
    'Flash fired, auto mode, return light not detected.'
  when 0x001f
    'Flash fired, auto mode, return light detected.'
  when 0x0020
    'No flash function.'
  when 0x0041
    'Flash fired, red-eye reduction mode.'
  when 0x0045
    'Flash fired, red-eye reduction mode, return light not detected.'
  when 0x0047
    'Flash fired, red-eye reduction mode, return light detected.'
  when 0x0049
    'Flash fired, compulsory flash mode.'
  when 0x004d
    'Flash fired, compulsory flash mode, return light not detected.'
  when 0x004f
    'Flash fired, compulsory flash mode, return light detected.'
  when 0x0059
    'Flash fired, auto mode, red-eye reduction mode.'
  when 0x005d
    'Flash fired, auto mode, return light not detected, red-eye reduction mode.'
  when 0x005f
    'Flash fired, auto mode, return light detected, red-eye reduction mode.'
  else
    "reserved"
  end
end