Class: Exif::Tag::MakerNote::SonyColorMode

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

Overview

0xb029 - Color Mode

Constant Summary collapse

ColorMode =
{
  0   => "Standard",
  1   => "Vivid Color",
  2   => "Portrait",
  3   => "Landscape",
  4   => "Sunset",
  5   => "Night View/Portrait",
  6   => "Black & White",
  7   => "AdobeRGB",
  12  => "Neutral",
  100 => "Neutral",
  101 => "Clear",
  102 => "Deep",
  103 => "Light",
  104 => "Night View",
  105 => "Autumn Leaves"
}

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



397
398
399
# File 'lib/exifparser/makernote/sony.rb', line 397

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